Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI to create customer

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

Tags:
Not what you were looking for? View more on this topic or Ask a question