Wednesday, September 28, 2016

Creating a sales order with a One time customer

When using the BAPI_SALESORDER_CREATEFROMDAT2 bapi and you want to use a one time customer you need to link the ORDER_PARTNERS table with the PARTNERADDRESSES table.

This is done as follows;
ORDER_PARTNERS-ADDR_LINK = '1'.
PARTNERADDRESSES-ADDR_NO = '1'.

This will link the two tables and allow you to pass address and email information into the sales order for the one time customer.

2 comments: