Ansicht
Dokumentation

S2P_PLN_CALC_FACTORY - BAdI: Defining User-Specific Logic for Missing Parts Calculation

S2P_PLN_CALC_FACTORY - BAdI: Defining User-Specific Logic for Missing Parts Calculation

ROGBILLS - Synchronize billing plans   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

You implement this Business Add-In (BAdI) if you want to use your own logic for calculating missing quantities in automatic Supply-to-Production. Depending on the supply segment, you can use your own missing quantities calculation or the standard one. The receipts and requirements relevant for the missing quantities calculation are provided by the BAdI.

Before you implement the Business Add-In, you have to create a class which adopts the missing quantities calculation. This class is derived from the abstract class CL_PLNG_CALCULATION_S2L.

If the BAdI Method CREATE_PLNG_CALCULATION does not provide an instance for the missing quantities calculation the standard logic is used.

First, create a class in the customer namespace which you derive from the class CL_PLNG_CALCULATION_S2L. (The standard logic for the missing quantities calculation is implemented in class CL_STD_PLNG_CALCULATION_S2L).

The class you created receives the following attributes:

  • STEPS
  • SUMMARY

Implement the following Methods:

Implement the Business Add-Ins

Create an implementation of the Business Add-In. Implement method IF_EX_S2L_PLN_CALC_FACTORY~CREATE_PLNG_CALCULATION. Create an instance of your class responsible for the missing quantities calculation and copy this instance to the export parameter CALCULATION. The import parameter SEGMENT (reference to an instance of the class CL_PLNG_SEGMENT_S2L) provides you with the current supply segment. Depending on the supply segment, you can use an instance of your own missing quantities calculation by transferring an instance of your own missing quantities calculation or you can use the standard logic by not transferring any user-specific instance (see example coding).

You want to use your own logic for the missing quantities calculation for consumption-based supply segments and you have created and implemented a class from class CL_PLNG_CALCULATION_S2L.

First, check whether the current supply segment is consumption-based (planning horizon is blank). If this is the case, create an instance of your class and transfer it to the export parameter CALCULATION. Now, your own implementation will be used for the missing quantities calculation for this supply segment.






Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3484 Date: 20240523 Time: 190107     sap01-206 ( 95 ms )