Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

BAPI - Sales Order Exercise - Ex

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 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