Ansicht
Dokumentation

BAPI_SALESDOCUMENT_CHANGE - BAPI Change Sales Document

BAPI_SALESDOCUMENT_CHANGE - BAPI Change Sales Document

Addresses (Business Address Services)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this method, you can change or delete sales documents.

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

This is a general rule:

1. You only need to enter the fields you wish to change.

2. Select these with an X in the relevant checkboxes.

3. Fill in the UPDATE field with a U.

4. You must always enter key fields if you make a change, inculding in
the checkbox.

5. The configuration is an exception. If you change it, you must
fill it in completely.

Maintain the quantities and dates via schedule line data.

7. Possible UPDATEFLAGS:
U = Change
D = Delete
I = Insert

Example

1.Completely delete sales document

2.Delete sales document item

3.Changes to sales documents

4.Change configuration

Notes

1.Miminum entries:

The sales document number must definitely be created in the structure
SALESDOCUMENT.
Key fields must always be entered when making a change.
The Update indicator in ORDER_HEADER_INX must always be entered.

2.Commit control The BAPI does not do a database Commit. As a result, the application being used must call up Commit, so that changes can be carried out on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.





Parameters

ITEM_IN
ITEM_INX
ORDER_HEADER_IN
ORDER_HEADER_INX
RETURN
SALESDOCUMENT
SALES_CFGS_BLOB
SALES_CFGS_INST
SALES_CFGS_PART_OF
SALES_CFGS_REF
SALES_CFGS_VALUE
SCHEDULE_IN
SCHEDULE_INX
SIMULATION

Exceptions

Function Group

VBAK

BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2054 Date: 20240523 Time: 173007     sap01-206 ( 28 ms )