Ansicht
Dokumentation
WPOCC_CHECK_CHANGEABLE_PO - Check Purchase Orders to Be Changed
PERFORM Short Reference General Material DataThis documentation is copyright by SAP AG.
Functionality
This function module checks the changeability of purchase order data at header and item level.
Every purchase order contained in the Changing_Header or Changing_Items tables is checked to see whether it has been released and whether any follow-on documents (order history) exist. If it has already been released or if an order history already exists, you get an Error_Status 'W'. An Error_Status at header level is transferred to any items that exist.
The setting of the delivery completed indicator (EKPO-ELIKZ) is checked at item level. If an error occurs during the check, the error is shown by the Error_Status 'E'.
If an Error_Status has been set, it is logged in the E_ERROR_MESSAGES error table.
Example
Notes
IMPORTANT: The internal table,CHANGING_HEADER, must be sorted by document number. There must be no multiple entries of document numbers in the table.
The same is true for the CHANGING_ITEMS table. This table, however, must be sorted by document number, document items and schedule lines. Multiple entries are not permitted.
If the optional tables I_EKKO and I_EKPO exist, they must also be sorted correctly.
Further information
To check header data (release, order history) the function module calls the related function module WPOCC_CHECK_CHANGEABLE_PO_HEAD.
Parameters
CHANGING_HEADERCHANGING_ITEMS
E_ERROR_MESSAGES
I_EKKO
I_EKPO
Exceptions
ERROR_IN_APPLICATIONFunction Group
WPOCCCPI1466 during Backup TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 1691 Date: 20240523 Time: 145053 sap01-206 ( 41 ms )