cancel
Showing results for 
Search instead for 
Did you mean: 

bapi to read customer data

Former Member
0 Kudos

Hi all,

I want to download the fields which are mandatory while creating customer through xd01.so I need a bapi to read the mandatory fields while creating customer.

please give me badi name.

TKS,

Dharani.P

Edited by: dharanija pallamreddy on Jan 4, 2010 10:28 AM

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member

Hi,

sorry there is no BAPI to read customer master data very accurate.

There is no BAPI at all to maintain such master data

there is unfortunately no function module to retrieve customer master field settings !!

Starting with ECC 2005, you may look at class CMD_EI_API for the maintenance and even checks before saving. this could avoid direct errors

Fore reading the customer master data, the class CMD_EI_API_EXTRACT is the right one.

For the field settings, it is much more difficult but you may look at CMD_EI_API_CHECK. there are some interesting methods for each kind of checks and more precisely STRUCTURE_REQ_ENTRIES_CHECK.

Hope this helped.

BR

Alain

Former Member
0 Kudos

Parameters: p_bukrs like KNB1-BUKRS,

            p_kunnr like KNA1-KUNNR.

Data: ty_kna1 type kna1,

      ty_knb1 type knb1.

Data: int_kna1 like ty_kna1,

      int_knb1 like ty_knb1.

CALL FUNCTION 'CUSTOMER_READ'

  EXPORTING

    I_BUKRS         = p_bukrs

    I_KUNNR         = p_kunnr

IMPORTING

   E_KNA1          = int_Kna1

   E_KNB1          = int_knb1

EXCEPTIONS

   NOT_FOUND       = 1

   OTHERS          = 2

          .

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
0 Kudos

BAPI_CUSTOMER_GETDETAIL2

Former Member
0 Kudos

Hi

former_member193382
Active Contributor
0 Kudos

Hi,

Are you looking for BAPI or BADi.

If you need a BAPI then it depends on what data you want to read.

Try this : BAPI_CUSTOMER_GETDETAIL1.

Similarly if to validate mandatory fields, check this BADi : CUSTOMER_ADD_DATA and use method SAVE_DATA.

Hope it helps.

Regards,

Raj

Former Member
0 Kudos

Hi,

Try This FM SD_CUSTOMER_MAINTAIN_ALL

Regards

Former Member
0 Kudos

Try this BAPI :BAPI_CUSTOMER_CREATEFROMDATA

Regards,

Venu Madhav