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

BAPI to create customer

Former Member
0 Likes
705

hello everyone,

I want to build a procedure which calls bapi to create customers in WebAS so that provide user to operate( cerate, edit, delete, etc customer and material,table: KNA1,MARA) in web environment( browser). But in 'BAPI_CUSTOMER_CREATE',it calls a transaction 'XD01',a dialog program that need to input parameters.

Then i try to use BAPI_CUSTOMER_CREATEFROMDATA1 instead.

Input parameters:

PI_PERSONALDATA: Lastname->Liu, City->London, Postl_Cod1->89073, Country->UK, Langu_p->EN, Currency->EUR.

PI_COPYREFERENCE: Salesorg->0001, Distr_Chan->01, Division->01, Ref_Custmr->Wang

but appear error : 882 Internal error: Exteral no. assignment for reference customer/customer.

This Reference Customer 'wang' i have created with BAPI_CUSTOMER_CREATE.

up to now I cannot create yet more customer with BAPI_CUSTOMER_CREATEFROMDATA1.

Who can help me, tell me the correct input parameters?

Thanks.

Message was edited by: Yaning Liu

3 REPLIES 3
Read only

Former Member
0 Likes
523

Hi,

Are you trying to pass the Customer number as well?

Regards,

Ravi

Read only

Former Member
0 Likes
523

Hi Liu,

I think the customer 'Wang' was not created properly in the database. You can check in XD03 transaction to see the same if there or not.

If that is the case, then i think you must have forgot to use the bapi BAPI_TRANSACTION_COMMIT after BAPI_CUSTOMER_CREATE when you created the customer 'Wang'.

Regards,

Ravi Kanth

Read only

Lakshmant1
Active Contributor
0 Likes
523

Hi Yaning,

Check url

Hope this helps

Thanks

Lakshman