cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create Customer by BAPI or by Function Module

Former Member
0 Kudos

Hi all,

I am new to this forum...

Please can anyone tell me how to Create Customer by BAPI or by Function Module.....?

I have tried many of the function modules posted in the threads.. but it couldn't help me out...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

we have acheived this by writing a function module which calls a BDC session to create the customer via XD01.

Former Member
0 Kudos

SD_CUSTOMER_MAINTAIN_ALL or BAPI_CUSTOMER_CREATEFROMDATA

alex_zheng
Contributor
0 Kudos

Hi Kunal,

Unfortunately, there is no BAPI nor functionmodule to maintain customer or vendor master data.

Moreover, there is no known plan to develop such functionality in the near future releases.

The only official solution is batchinput and idoc (CREMAS).

Feel free to look at note 384462, and 306275.

Thanks,

Alex

Sandra_Rossi
Active Contributor
0 Kudos

> The only official solution is batchinput and idoc (CREMAS).

Note that when an IDoc exists, it is often possible to call the function module that is just behind it (see WE57 transaction). SAP would not support that direct call, but if you need to contact SAP support about an issue, you can create the IDoc manually and there's no reason that this issue doesn't arise.

The only difference with the IDocs is that you don't have any IDoc stored in the database, and even no log in database (so you won't be able to see anything in WE02, etc.).

Note that it is important to know if this function module does a database commit or not: you can look at the BDFG transaction (I assume there's no BAPI related as it is the initial assumption of my post) to see if IDoc packet processing is allowed or not: if packet processing is allowed, there's no database commit in the function module, otherwise there's one.