BAPI function to create sales order details for a customer in your organization.
In this example to create a sales order, perform the following tasks:
Step1: Generate a BAPI/RFC mapplet in
Data Integration
for the bapi_salesorder_createfromdat1 BAPI function.
Log in to
Data Integration
and generate a BAPI/RFC mapplet that contains the metadata of the bapi_salesorder_createfromdat1 BAPI function.
Step: 2 Configure a mapping using the generated mapplet.
Perform the following steps to configure a mapping:
Specify source objects to enter the order header data from the ORDER_HEADER_IN structure, the partner data using the ORDER_PARTNERS table, and item data using the ORDER_ITEMS_IN table as input parameters.
Add the Mapplet transformation. Draw a link to connect the flat file Source transformation to the Mapplet transformation. Draw the following links:
ORDER_HEADER_IN source object to the Scalar_Input input port of the BAPI mapplet.
ORDER_ITEMS_IN source object to the Table_Input_Order_Items_IN input port of the BAPI mapplet.
ORDER_PARTNERS source object to the Table_Input_Order_partners input port of the BAPI mapplet.
Configure the mapplet transformation.
Select the generated mapplet. Verify that you specify an SAP RFC/BAPI Interface connection for the mapplet.
Map the incoming source fields with the BAPI parameter properties.
Configure a flat file object to which you can write the sales order details. Draw a link to connect the Table Output in the Mapplet transformation to the flat file Target transformation. Create multiple flat file target objects to write the sales order. Create the following target objects and map them to the associated output ports in the BAPI mapplet:
ORDER_CFGS_BLOB, ORDER_CFGS_INST, ORDER_CFGS_PART_OF, ORDER_CFGS_REF, and ORDER_CFGS_VALUE to write item configuration data.
ORDER_ITEMS_OUT to write detailed item data.
ORDER_CCARD to write the credit card details.
ORDER_SCHEDULE_EX to write the structure of VBEP with English field names.
Scalar_Output to write the Scalar_Output from the mapplet.
Error_Output to write the Error_Output from the mapplet.