‎2006 Apr 04 11:06 AM
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
‎2006 Apr 04 11:12 AM
Hi,
Are you trying to pass the Customer number as well?
Regards,
Ravi
‎2006 Apr 04 11:16 AM
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
‎2006 Apr 04 11:19 AM