Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to Update Customer master data

Former Member
0 Kudos

Hi,

I have a requirement to set Industry Code (KNA1-BRAN1~5) by using BAPI. I went through the BAPI list but found no relevant one. BAPI_CUSTOMER_CHANGEFROMDATA1 does not meet my requirement since there's no industry code in its input parameter.

Any idea on this?

The field Industry Code is under Marketing tab in the T.CODE XD03.

Regards,

Duke

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

Hi,

Please search in SCN you will find lot more information reagrding updation of customer master. I would prefer LSMW direct input method.

Regards,

Nagaraj

6 REPLIES 6

former_member404244
Active Contributor
0 Kudos

Hi,

Please search in SCN you will find lot more information reagrding updation of customer master. I would prefer LSMW direct input method.

Regards,

Nagaraj

0 Kudos

@Nagaraj

Thank you for your quick response. This requirement is trigger by creation or changing a customer, so LMSW is not suitable in this situation.

0 Kudos

Class CMD_EI_API is the best option to update Customer master data.


    CALL METHOD cmd_ei_api=>maintain
      EXPORTING
        is_master_data = lt_customers
      IMPORTING
        es_error       = lt_error.

You should be very careful passing data to these deep structures.

0 Kudos

Thanks Vangaveti. I think I will try this way.

Former Member
0 Kudos

HI,

Try with this FM,

bapi BAPI_CUSTOMER_GETDETAIL1

or

you can Call transaction BAPI, go to alphabetical order and look for Customer

Former Member
0 Kudos

Best way to update customer master is BDC