Ansicht
Dokumentation

APO_ODETTE_FLAG - BAdI: Activate Additional Odette Processing Logic

APO_ODETTE_FLAG - BAdI: Activate Additional Odette Processing Logic

rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Use

You use the Business Add-In (BAdI) /SAPAPO/ODETTE_FLAG to enhance the current ODETTE logic, so that a date from the past is assigned to additional schedule lines that need to be created because of a planned date and planned cumulative quantity. This means that the schedule line that is to be created is created for the past date in addition to the schedule line that already exists for this date.

This BAdI belongs to the APO-PPS-CDS application component.

When the parameter ODETTE_BACKORDER_IN_PAST in this BAdI has the value X, the enhanced ODETTE logic is activated before the standard logic.
This enhanced logic ensures that at least one new schedule line is created if the cumulative quantity determined is less than the planned cumulative quantity.
The schedule line date for these schedule lines is not the date the delivery schedule was received as transferred in the current Idoc. These schedule items draw values for the date, time, quantity, and so on from schedule items that have already been created.

Note
When the conventional ODETTE logic is used, the release creation date transferred in the IDoc is used to create new schedule lines.

Determining the difference in cumulative quantities using ODETTE logic with planned date and planned cumulative quantity
The system selects all the scheduling agreement releases and their schedule lines that have been created for the determined sales scheduling agreement.
The system continues searching until it either
  1. determines a suitable delivery schedule that has been created manually
  2. selects a scheduling agreement release for which the Valid from date of the scheudling agrement or the Date the delivery schedule was received is less than the planned date.
When a scheduling agreement has been selected with a 'date' (see above) before the planned date, another selection is made.
This selection finds another scheduling agreement release, which has a date before the 2nd selected release.
Both these scheduling agreement releases make up the base quantity with which the ODETTE logic works. During later checks, further releases or schedule lines might be deleted from this quantity.
The remaining quantity is then used to calculate the difference in cumulative quantities.

The parameter ODETTE_BACKORDER_IN_PAST must have the value X in this BAdI, so that the enhanced ODETTE logic is used.

There us a default implementation class for this BAdI, which annotates the necessary example coding for activating the ODETTE logic.

The Business Add-In is not active by default.

For more information about implementing this BAdI, see the SAP Library: Basis Components -> ABAP Workbench -> Changing the SAP Standard Standard -> Business Add-Ins -> Implementing Business Add-Ins.






CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3299 Date: 20240524 Time: 003602     sap01-206 ( 62 ms )