Application Development and Automation 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: 
Read only

Create customer record in SAP via BAPI

Former Member
0 Likes
1,751

Can someone tell me whether they had successfully created a customer in SAP from an external system? I did a research and saw a few bapi: BAPI_CUSTOMER_CREATEFROMDATA, BAPI_CUSTOMER_CREATEFROMDATA1, BAPI_CUSTOMER_CREATE. I've tried to populate the structures in these BAPI with customer data but has lots of issues with it. If you have successfully created a customer using theses bapis or some other way, please advise.

Thanks,

Tina

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,626

BAPI_CUSTOMER_CREATEFROMDATA is obsolete as of release 40C, and BAPI_CUSTOMER_CREATE is a dialog BAPI(can't be used from outside R/3).

You should use BAPI_CUSTOMER_CREATEFROMDATA1.

check this thread..

G@urav.

Can someone tell me whether they had successfully created a customer in SAP from an external system? I did a research and saw a few bapi: BAPI_CUSTOMER_CREATEFROMDATA, BAPI_CUSTOMER_CREATEFROMDATA1, BAPI_CUSTOMER_CREATE. I've tried to populate the structures in these BAPI with customer data but has lots of issues with it. If you have successfully created a customer using theses bapis or some other way, please advise.

Thanks,

Tina

5 REPLIES 5
Read only

Former Member
0 Likes
1,627

BAPI_CUSTOMER_CREATEFROMDATA is obsolete as of release 40C, and BAPI_CUSTOMER_CREATE is a dialog BAPI(can't be used from outside R/3).

You should use BAPI_CUSTOMER_CREATEFROMDATA1.

check this thread..

G@urav.

Read only

0 Likes
1,626

Have you use BAPI_CUSTOMER_CREATFROMDATA1? if so, can you tell me which fields in all the structures of this bapi BAPI_CUSTOMER_CREATEFROMDATA1 you pass data to? The issue I have is, if I pass data to PI_PERSONALDATA structure, I have an error saying the language field is required. When I enter data to the language field, I have error 'Double creation of company and user address not created'. It seems like I get an error if I don't enter anything and get the error when enter something. Please advise.

Read only

0 Likes
1,626

Are you passing PI_COMPANYDATA as well?

This method of the "Customer" business object is used to create a customer in SAP R/3 on the basis of entered personal data (import parameter PI_PERSONALDATA) or entered company data (import parameter PI_COMPANYDATA). Only one structure (personal data or company data) can be transferred to the BAPI with entries.

Check this link for more understanding.

http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1

G@urav.

Read only

0 Likes
1,626

The message displayed was not accurate. For example, it told me language in personal data structure is missing so I enter the data there. After you replied and asked about personal data and company data, I realized that the message was misleading so enter the language field in company structure, with then did create the customer successfully. Thank you!

Read only

0 Likes
1,626

Thanks, your info is useful.