Hierarchy

⤷

⤷

⤷

IMG Activity
ID | BADI_MD_ADAPT_DISTRI | BAdI: Adjustment of Start and End Dates/Times |
Transaction Code | S_EB5_05000235 | (empty) |
Created on | 20090305 | |
Customizing Attributes | BADI_MD_ADAPT_DISTRI | BAdI: Adjustment of Start and End Dates/Times for Distribution Function |
Customizing Activity | BADI_MD_ADAPT_DISTRI | BAdI: Adjustment of Start and End Dates/Times for Distribution Function |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | MD_ADAPT_DISTRIBUTION |
Use
You can use this Business Add-In in the component PP-MRP-PE to adjust the following parameters for the distribution of order/requirement quantities:
- Start and end date of the distribution
- Valid factory calendar for the distribution
In the standard behavior, the relevant planned order quantities are distributed between basic start and basic end date or the component requirement quantities between between earliest and latest requirement date. In some applications, however, especially in the process industry, it may be useful to stipulate a distribution interval that is better geared to the actual production dates here. Thus, for example, you can stipulate in the BAdI that the production dates determined by the system in lead-time scheduling are to be used for the quantity distribution.
The following methods are available:
- You can use the ADAPT_ORDER_DATES method to adjust the start and end date for the distribution of the order quantity (quantity of header material). The distribution function at the level of the order header is effective only in the display transactions of material requirements planning, not for the planning.
- You can use the ADAPT_DEP_REQ_DATES method to adjust the start and end date for the quantity distribution of the components.
These changes are effective not only in the display transactions of material requirements planning, but also for the planning.
If you have activated the BAdI, the system displays the BAdI Modif. indicator in the Header Details of the Stock/Requirements lists and MRP lists and represents the distribution of quantities on the basis of the new start and end dates or the new factory calendar in the following transactions:
At header/order level in the transactions:
- Stock/Requirements List (MD04)
- Planned Order transactions - Distribution at header/component level function (MD12, MD13)
- Display Planning Result - Change Order (MD02, MD03, MD43)
- Availability Overview (ATP) (CO09)
At component/requirement level in the transactions:
- Stock/Requirements List (MD04)
- Planned Order transactions - Distribution at Component Level function (MD12, MD13)
- Display Planning Result (MD02, MD03, MD43)
- MRP List (MD05)
The same function is also effective in the corresponding transactions of long-term planning and master production scheduling.
Requirements
You have stored a distribution key that you previously defined in Customizing for Material Requirements Planning under Evaluation --> Quantity Distribution in the production version of a material or in the bill of material for a component.
Standard settings
- In the standard system, the Business Add-In is not active.
- The Business Add-In is not filter-dependent.
- The Business Add-In can be used multiple times.
Activities
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:
- In the dialog box, enter a name for the implementation of the Add-In and choose Create.
The system displays the initial screen for creating Business Add-In implementations. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - Save and activate your code. Navigate back to the Change Implementation screen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: - Choose Activate.
When the application program is executed, the code you created is run through.
Example
In the example implementation for the method ADAPT_ORDER_DATES, you will find three scenarios with pessimistic and optimistic approaches and with a distribution between the production dates.
See also: Example of Use of the BAdI
Please note that the parameter CV_CHANGED must be set in the return for the implementation changes to become effective.
Business Attributes
ASAP Roadmap ID | 203 | Establish Master Data |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20090610 |
SAP Release Created in | 605 |