SAP Function WPOCC_CHECK_CHANGEABLE_PO_HEAD - Check Purchase Orders to Be Changed

Parameter Reference Type Length Default Optional Text
I_OPCODE WOD4_FRGKZ C 1 X
I_SEL_REL I I 4 0 X

Parameter Reference Length Optional Text
CHANGING_HEADER WPOCP_CHANGE_HEADER 190 Header Data to Be Changed
E_EKBE EKBE 455 X Purchasing Document History
E_EKES EKES 166 X Vendor Confirmations
E_ERROR_MESSAGES WPOCP_ERROR_MESSAGE 243 X Error Messages
I_EKKO EKKO 765 X Purchasing Document Header

Exception Text
ERROR_IN_APPLICATION Error in Application

Functionality
The function module is used to check the release status of the purchaseorders selected. The indicator FRGKZ is set. If you do not explicitlyset the optional import parameter i_opcode, the entries will only bechanged. If you do set the parameter, entries will be deleted dependingon their release status.
The function module is also used to check whether follow-on documentsexist for purchase orders that have already been released. If they doexist, the indicator HISTKZ is set. If you are only interested in therelease status of the purchase orders, you can avoid this option byexplicitly setting the optional parameter I_SEL_REL = 1.
If one of these two indicators has been set, this is noted in theError_Status as a warning and is logged accordingly in theE_ERROR_MESSAGES error table.

Notes
IMPORTANT: The internal table CHANGING_HEADER must be sorted bydocument number. No document number must appear more than once in thetable.
If it exists, the optional table I_EKKO must also be sorted correctly.

Further information
The function module is part of the module WPOCC_CHECK_CHANGEABLE_PO.

Description
This parameter determines the effect of the release status of purchaseorders on the contents of the table to be imported.

Value range
Use the following values:

  • 0 = all the purchase orders in the table to be imported are still
  • available after leaving the function module.
    • 1 = only purchase orders that have been released remain, all others are
    • deleted.
      • 2 = only purchase orders that have not been released remain, all the
      • others are deleted.

        Default
        The default setting is 0.

        Description
        Change this indicator to a value other than zero (1,2,...) if you areinterested in finding out the release status of purchase orders. Thesystem will not check for any purchase order histories (follow-ondocuments) that may exist.

        Default
        The default value is 0.
        When the value is set to zero, the release status and any follow-ondocuments are checked.