on 01-04-2010 9:18 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BAPI_CUSTOMER_GETDETAIL2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try This FM SD_CUSTOMER_MAINTAIN_ALL
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this BAPI :BAPI_CUSTOMER_CREATEFROMDATA
Regards,
Venu Madhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.