Ansicht
Dokumentation

SAPAPO/COMPSCHEDLIN - BAdI: Compare Two Time Series

SAPAPO/COMPSCHEDLIN - BAdI: Compare Two Time Series

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

This Business Add-In (BAdI) is used in the component Production Planning and Detailed Scheduling SCM-APO-PPS.

This BAdI is called up in the function module /SAPAPO/COMPARE_SCHEDULE_LINES.

You use this BAdI to enhance the standard comparison of two time series by adding additional time intervals to be used in the variance calculation. You can define these intervals (for example weekly or monthly intervals) yourself.

You use this BAdI to define your own intervals and to check whether schedule lines (from confirmations and due delivery schedules) lie withtin the intervals you have defined yourself for example.

The BAdI consists of the following methods which are called up at different times within the deviation calculation:

  • INITIALIZE,,,,Initialization of the Comparison
  • CHECK_INTERVAL,,Check Interval
  • GET_NEXT_INTERVAL,,Determine Next Interval
  • CHANGE_RESULT,,Change Result of the Check

You can implement these methods if you want to use your own deviation calculation for intervals that you have defined yourself.

Within the BAdI you must implement the corresponding methods for each additional determination type.

If the deviation ET_DEVIATIONS has already been defined within the method INITIALIZE then the user can leave standard processing by setting the parameter EV_DO_EXIT to X.

Note
If this parameter is not set, standard processing is triggered and for further processing you have to implement at least the methods CHECK_INTERVAL and GET_NEXT_INTERVAL.
The methods INITIALIZE and CHANGE_RESULT are not absolutely necessary.

Define the determination type:

  1. In the table /SAPAPO/DETSTATB define a new determination type for the calling application (APPLICATION_KEY).
    In the field DETSTAT_BASE enter any two digit abbreviation that has not already been used by the application.
    The key of the calling application must be 1 (Confirmation Status Determination). You can also enter multiple additional determination types.
  2. In the text table /SAPAPO/DETSTATT you can enter a language-dependent description for this determination type if you wish.
  3. In the confirmation profile or in the function responsible for the application, choose the newly created determination type. (Execute function)

This BAdI is not active in the standard.
This BAdI is filter-dependent in the standard.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Methods
Initialization of the Comparison
Check Interval
Determine Next Interval
Change the Result of the Check

Interface
/SAPAPO/IF_EX_COMPSCHEDLIN






TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 5859 Date: 20240607 Time: 071949     sap01-206 ( 73 ms )