Ansicht
Dokumentation

FSH_API_SALESDOCUMENT_CHANGE - Sales order: Change Sales Order

FSH_API_SALESDOCUMENT_CHANGE - Sales order: Change Sales Order

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to change or delete sales orders.

You can change header, item, schedule line and configuration data.

In general, note that you should:

  • Only specify fields that should be changed
  • Select these fields by entering an X in the checkboxes
  • Enter a U in the UPDATEFLAG field
  • Always specify key fields when changing the data, including in the checkboxes
  • The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
  • Maintain quantities and dates in the schedule line data
  • Possible UPDATEFLAGS:
  • U = change

  • D = delete

  • I = add

Example

Delete the whole order

Delete order items

Change the order

Change the configuration

Notes

Further information

Note

Minimum entry:

You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.

Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.





Parameters

BEHAVE_WHEN_ERROR
CONDITIONS_IN
CONDITIONS_INX
CONTRACT_DATA_IN
CONTRACT_DATA_INX
EXTENSIONEX
EXTENSIONIN
FSH_ORDER_HEADER_IN
FSH_ORDER_HEADER_INX
FSH_ORDER_ITEM_EX
FSH_ORDER_ITEM_IN
FSH_ORDER_ITEM_INX
FSH_ORDER_SCHEDULES_IN
FSH_ORDER_SCHEDULES_INX
FSH_VAS_ITEM_CHNG_IN
FSH_VAS_ITEM_CHNG_INX
FSH_VAS_TEXT_CHNG
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
NO_STATUS_BUF_INIT
ORDER_CFGS_BLOB
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_REF
ORDER_CFGS_REFINST
ORDER_CFGS_VALUE
ORDER_CFGS_VK
ORDER_HEADER_IN
ORDER_HEADER_INX
ORDER_ITEM_IN
ORDER_ITEM_INX
ORDER_KEYS
ORDER_TEXT
PARTNERADDRESSES
PARTNERCHANGES
PARTNERS
RETURN
SALESDOCUMENT
SCHEDULE_LINES
SCHEDULE_LINESX
SIMULATION

Exceptions

Function Group

FSH_SD_API

Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5839 Date: 20240523 Time: 093604     sap01-206 ( 43 ms )