0% found this document useful (0 votes)
100 views

Pi - Opt - Personaldata Pi - Companydata Pi - Opt - Companydata Pi - Consumeren

This document provides instructions for using the BAPI_CUSTOMER_CREATEFROMDATA1 function to create a new customer record in SAP. It lists the mandatory fields that must be provided for the personal and company address, including last name, name, city, postal code, street, country, language and currency. It also notes that a reference customer must be provided in PI_COPYREFERENCE in order to copy additional non-address fields from an existing customer record.

Uploaded by

usman96
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Pi - Opt - Personaldata Pi - Companydata Pi - Opt - Companydata Pi - Consumeren

This document provides instructions for using the BAPI_CUSTOMER_CREATEFROMDATA1 function to create a new customer record in SAP. It lists the mandatory fields that must be provided for the personal and company address, including last name, name, city, postal code, street, country, language and currency. It also notes that a reference customer must be provided in PI_COPYREFERENCE in order to copy additional non-address fields from an existing customer record.

Uploaded by

usman96
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'

EXPORTING

PI_PERSONALDATA = BAPIKNA101_1

 PI_OPT_PERSONALDATA =
 PI_COMPANYDATA =
 PI_OPT_COMPANYDATA =
 PI_CONSUMEREN =

PI_COPYREFERENCE = BAPIKNA102

 PI_CREDIT_CONTROL_FLAG =

IMPORTING

CUSTOMERNO = BAPIKNA103

RETURN = BAPIRETURN1

These are the mandatory address fields (either for PI_PERSONALDATA or PI_COMPANYDATA):

- LASTNAME (if you have a personal address)

- NAME (if you have a company address)

- CITY

- POSTL_COD1

- STREET

- COUNTRY

- LANGU_P

- CURRENCY

- TITLE : You can update that table by table view V_TSAD3 (trx SM30). See the table TSAD3T.

Furthermore, you <b>must</b> provide a reference customer in order to create a new debitor
(PI_COPYREFERENCE, all fields must be filled and this reference customer must exist for this sales
area). All debitor-specific data (<> address data) are copied from the reference customer. This is
sample like using transaction XD01 with a template debitor.

You might also like