SAP Function SPP01_SALESORDER_CHANGE - Change sales order

Parameter Reference Type Length Default Optional Text
IF_DELETE CHAR1 C 1 X Single-character flag
IF_ORD_REASON AUGRU C 3 X Order reason (reason for the business transaction)
IF_PO_NUMBER BSTKD C 35 X Customer purchase order number
IF_REQ_DATE EDATU_VBAK D 8 X Requested delivery date
IF_SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales document
IF_SHIPTO KUNNR C 10 X Customer number
IF_SIMULATE_FLAG CHAR1 C 1 X Simulate flag
IS_CUSTADDRESS SPPCUSTADD u 213 X Customer address
IS_CUSTSALES SPPCUSTSTR u 78 X customer sales data

Parameter Reference Type Length Text
EF_ORDER_VALUE NETWR_AK P 8 Net Value of the Sales Order in Document Currency
ES_SHIPTO_ADDRESS SPPCUSTADD u 213 Ship-to Party's View of the Customer Master Record

Parameter Reference Length Optional Text
ET_RETURN BAPIRET2 548 X Return parameter
ET_SCHEDULES_OUT SPPSCHED 35 X structure for order schedule lines
ET_SIMULATE SPPORDER 179 X simulate results
IT_ORDER SPPORDER 179 X order details
IT_SERIAL_NUMBERS MATERIAL_SERIAL_NUM 162 X Material Serial Numbers
IT_TEXTS SPPTEXT 190 X Communication fields: SD texts

Functionality
This function allows changes to existing orders. The following changescan be done to an order.
1) Change required quantities and dates for an item.
2) Change required date at header level.
3) Insert new items for an order.
4) Delete items from an order.
5) Delete the whole order.