Hierarchy

⤷

⤷

IMG Activity
ID | S2P_PLN_CALC_FACTORY | BAdI: Defining User-Specific Logic for Missing Parts Calculation |
Transaction Code | S_KA5_12001167 | IMG Activity: S2P_PLN_CALC_FACTORY |
Created on | 20020607 | |
Customizing Attributes | S2P_PLN_CALC_FACTORY | BAdI: Defining User-Specific Logic for Missing Parts Calculation |
Customizing Activity | S2P_PLN_CALC_FACTORY | BAdI: Defining User-Specific Logic for Missing Parts Calculation |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | S2L_PLN_CALC_FACTORY |
Use
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.
Requirements
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.
Standard settings
If the BAdI Method CREATE_PLNG_CALCULATION
does not provide an instance for the missing quantities calculation the standard logic is used.
Activities
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:
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).
Example
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.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20030120 |
SAP Release Created in | 471 |