Ansicht
Dokumentation

/SAPPO/BAPI_ORDER_SAVE - Save Postprocessing Orders

/SAPPO/BAPI_ORDER_SAVE - Save Postprocessing Orders

Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to create and change postprocessing orders.

Create postprocessing orders

You can use the BAPIs /SAPPO/BAPI_ORDER_SET_CONTEXT, /SAPPO/BAPI_ORDER_CREATE and /SAPPO/BAPI_ORDER_SAVE to create postprocessing orders.

You can use two different call up sequences:

  • /SAPPO/BAPI_ORDER_SET_CONTEXT
  • DO
  • /SAPPO/BAPI_ORDER_CREATE
  • ENDDO
  • /SAPPO/BAPI_ORDER_SAVE
  • BAPI_TRANSACTION_COMMIT

or

  • /SAPPO/BAPI_ORDER_SET_CONTEXT
  • DO
  • /SAPPO/BAPI_ORDER_CREATE
  • /SAPPO/BAPI_ORDER_SAVE
  • ENDDO
  • BAPI_TRANSACTION_COMMIT

The creation process is initiated by /SAPPO/BAPI_ORDER_SET_CONTEXT, which first deletes the global memory of the function group and then sets the context data in the global memory, which is relevant for further processing.

/SAPPO/BAPI_ORDER_CREATE creates the postprocessing orders in the global memory.

/SAPPO/BAPI_ORDER_SAVE persists the postprocessing orders created in the memory and then deletes them from the global memory.

You can use /SAPPO/BAPI_ORDER_REFRESH to delete the postprocessing orders from the global memory.

Change postprocessing orders

You can use the BAPIs /SAPPO/BAPI_ORDER_OPEN, /SAPPO/BAPI_ORDER_SET, /SAPPO/BAPI_ORDER_SAVE and /SAPPO/BAPI_ORDER_CLOSE to change postprocessing orders.

You must use the following call up sequence:

  • /SAPPO/BAPI_ORDER_OPEN
  • DO
  • /SAPPO/BAPI_ORDER_SET
  • /SAPPO/BAPI_ORDER_SAVE
  • BAPI_TRANSACTION_COMMIT
  • ENDDO
  • /SAPPO/BAPI_ORDER_CLOSE

After you call up /SAPPO/BAPI_PO_ORDER_OPEN, you can read the global memory of the function group using the BAPIs /SAPPO/BAPI_ORDER_GET_DETAIL and /SAPPO/BAPI_ORDER_GET_DETAILS.

The BAPI /SAPPO/BAPI_PO_ORDER_OPEN locks the postprocessing orders to be opened for postprocessing, reads them from the database, and writes them to the global memory.

The BAPI /SAPPO/BAPI_PO_ORDER_SET updates the global memory. You must specify the postprocessing orders to be changed and the new values for the changeable fields in the parameter ALLOWEDUPDATEFIELDS. Note that you must also enter the old contents for fields that cannot be changed. For more information, see the documentation for the parameter.

The BAPI /SAPPO/BAPI_PO_ORDER_SAVE persists the global memory.

The BAPI /SAPPO/BAPI_PO_ORDER_CLOSE deletes the global memory and removes the locks.

Notes

Create postprocessing orders

Customer enhancements

Business Add-Ins (BAdIs) are available for this method. They can be found in the implementation guide (IMG) for the Postprocessing Office under Business Add-Ins (BAdIs) -> General BAdIs -> BADI : Create Postprocessing Orderand under Business Add-Ins (BAdIs) -> BAdIs for BAPIs-> BAdI for Creating Postprocessing Orders by BAPIs.

Notifications

Change postprocessing orders

Authorization check

The system checks whether the change activity is allowed for the postprocessing orders to be opened.

Customer enhancements

A Business Add-In (BAdI) is available for this method, which you can find in the implementation guide (IMG) for the Postprocessing Officeunder Business Add-Ins (BAdIs) -> BAdIs for BAPIs-> BAdI for Changing Postprocessing Orders by BAPIs.

For more information about customer enhancements, see the SAP Library under Cross-Application Components -> Business Framework Architecture (CA-BFA) -> Further Development, Modifications -> Customer Enhancement and Modification of BAPIs -> Customer Enhancement of BAPIs.

Notifications

Messages are returned in the return parameter. For information about the return values and their meaning, see the parameter list documentation.

Further information

For more information on postprocessing orders, see the SAP Library under SAPNetWeaver-> Application Platform (SAP Web Application Server) -> Cross Services -> Postprocessing Office (CA-GTF-TS-PPO).





Parameters

PROCESSEXTENSION
RETURN

Exceptions

Function Group

PO/SAPLBAPI_ORDER

PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6107 Date: 20240328 Time: 194301     sap01-206 ( 100 ms )