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

BAPI - Sales Order Exercise - Ex

The document describes a requirement to upload data from an input file to create sales orders in SAP. It should use BAPI_SALESORDER_CREATEFROMDAT2 to create the orders, then display them in an ALV grid along with selection screen data at the top. Double clicking an order in the ALV should display that corresponding order details. Sample input file data and references are also provided.

Uploaded by

SUDHARSANA S
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
214 views

BAPI - Sales Order Exercise - Ex

The document describes a requirement to upload data from an input file to create sales orders in SAP. It should use BAPI_SALESORDER_CREATEFROMDAT2 to create the orders, then display them in an ALV grid along with selection screen data at the top. Double clicking an order in the ALV should display that corresponding order details. Sample input file data and references are also provided.

Uploaded by

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

BAPI – Exercise

Requirement
Upload the data from the input file and create sales orders in SAP. The created orders should be displayed
through ALV.

Selection screen
Sales organization (VBAK-VKORG), Distribution Channel (VBAK-VTWEG), Division (VBAK-SPART),
Sales document type (VBAK-AUART), Input file name

Input File
The file has customer and material details. All the records having same sold to/ship to should be grouped
into one sales order.

Function Module BAPI_SALESORDER_CREATEFROMDAT2 can be used to create the sales order.

Output
Display the following fields in the output through ALV
Sold to
Ship to
Order number
Number of items in the order
Message

Sold to: From the input file


Ship to: From the input file
Order number: Order created in SAP (VBAK-VBELN)
Number of items in the order: Number of records grouped in each order, i.e. sum of all the records from the
input file that are grouped in one order
Message: If the order creation fails, give the message “Order not created” in this column.

The selection screen data should be displayed on the top of ALV


On double clicking any record in the ALV, the corresponding order should be displayed.

Sample data:
Input file - C:\input.xls

"input file.xls"
Input file sample

For reference
https://answers.sap.com/questions/3204971/bapisalesordercreatefromdat2-sample.html
https://www.stechies.com/to-create-sales-order-using-bapi-fm-bapisalesordercreatefrom_2/
http://saptechnical.com/Tutorials/BAPI/SalesOrder/Index.htm

You might also like