Ansicht
Dokumentation

EXIT_SAPMKPT4_020 -

EXIT_SAPMKPT4_020 -

BAL Application Log Documentation   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This customer exit lets you change the data records selected by the transactions KP97 (Copy planning) or KP98 (Copy actual to plan) before executing the update. This is an enhancement to the standard functionality of these transactions.

Interface description for the module

The interface of this module consists of three parameters IS_PARX, ID_PQPLAN und CT_KPLV2. The first two parameters supply you with useful additional information, while the actual changes to the planning records occur in the table parameter CT_KPLV2.

  • The field bar IS_PARX contains the relevant control parameters for the transaction and the copying transaction. It is structured as follows:
Fieldname Description
FLG_MODUS Indicator: Copying type
"P": Copy planning(KP97)
"A": Copy Actual to Plan(KP98)
KOKRS Controlling area
VRGNG Planning transaction
FLG_TEST Indicator: Test run
"X": Test run
" ": Live run
FLG_UPDATE Indicator:
"X": Reset and overwrite data
" ": Do not change data
SGJAHR Reference: Fiscal year
SPERAB Reference: First period
SPERBI Reference: Last period
SVERSN Reference: Version
TGJAHR Target: Fiscal year
TPERAB Target: First period
TPERBI Target: Last period
TVERSN Target: Version

  • The quantity/price indicator is stored in parameter ID_PQPLAN.

    'Q': Quantity
    'P': Price
    'B': Both quantities and prices
  • Table CT_KPLV2 contains the read plan- and actual records, and refers to structure RKPLV2 in the DDIC. This contains a description of the individual fields. Note that all changes made in this table are transferred, and, if required, updated in the planning interface.

Example

Access and handling of the interface data occurs just as for function module EXIT_SAPMKPT4_010. You should therefore note the example coding stored for this module in Include LXKPT4F01.






PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3846 Date: 20240420 Time: 165640     sap01-206 ( 41 ms )