Case: Inbound file or idoc is expected to create a Sales Order in the System. Identify the required flow.

Solution:
Read the Input Data
Prepare data – header and item for the FM BAPI_SALESORDER_CREATEFROMDAT2
Call FM BAPI_SALESORDER_CREATEFROMDAT2 by passing values
Check for return table with error message – if there are no errors, call FM BAPI_TRANSACTION_COMMIT .

~S