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 or FM for Customer Edit XD02

Former Member
0 Kudos

Hi gurus,

Does anyone know if there is a BAPI or FM for updating customer master data (XD02) without resorting to BDC/LSMW processing ?. 

I have tried BAPI_CUSTOMER_CHANGEFROMDATA1 but it seems nobody knows which are the mandatory fields.

I have read a lot of threads that mention two more options :

  1. FM SD_CUSTOMER_MAINTAIN_ALL - is it valid to use ? if so, can you share with me some code example plelase...
  2. CMD_EI_API - can you share with me some code example plelase...

Thanks a lot.

Isaac

1 ACCEPTED SOLUTION

former_member215575
Active Participant
0 Kudos

Hi Isaac,


Isaac Huerta Segovia wrote:

FM SD_CUSTOMER_MAINTAIN_ALL - is it valid to use ? if so, can you share with me some code example plelase...

Refer   comments on the same in thread


Isaac Huerta Segovia wrote:


CMD_EI_API - can you share with me some code example plelase...

Refer code example in thread

7 REPLIES 7

former_member202818
Active Contributor
0 Kudos

0 Kudos

Thank you Sreekanth Pavoor, but none of the BAPIS shown in the thread you answer helped me to achieve my goal.

custodio_deoliveira
Active Contributor
0 Kudos

Hi Isaac,

In short the mandatory fields for BAPI_CUSTOMER_CHANGEFROMDATA1 are the same mandatory fields if you were doing a BDC or manually updating a customer in tcode XD02, so it will vary depending on configuration, enhancements, etc. It's the best option IMO.

0 Kudos

Thank you Custodio but depends of the combination of the fields populated the BAPI returns an error message.

former_member215575
Active Participant
0 Kudos

Hi Isaac,


Isaac Huerta Segovia wrote:

FM SD_CUSTOMER_MAINTAIN_ALL - is it valid to use ? if so, can you share with me some code example plelase...

Refer   comments on the same in thread


Isaac Huerta Segovia wrote:


CMD_EI_API - can you share with me some code example plelase...

Refer code example in thread

0 Kudos

Thank you Sravan. It is a very helpful answer.

0 Kudos

A very helpful answer too it's shown at the following docu :