Purpose
for total planning, particularly for MRP, we know we can use "sequence of plant" to define the sequenced plant list for planning run, for example in MD01/MD40(MPS);
and we can also use "Product group" to group the materials which will have planning run at one time together, like in MD02/MD41 (MPS) multiple level
However, there is drawback here: let's say if we have some material, some special materials, which belong to the Sequence of plant, we need to exclude it or include, how to achieve.
content:
here is one approach to accomplish the purpose abovmentioned - we use "user-exit" in total MRP MD01.
you can see that under 5395, all codes with WP9 MRP controller as below:
And you can see, 2 codes with the same PD MRP type, and WP9 MRP controller.
Now, let’s simulate run the MRP job :
Or for MPS total planning, it is the same:
Customizing place:
Regarding to the exact user-exit
For example:
For example
So, let's summarize its usage and trait :
- This user exit is mainly accessed after one material is reading by planning run, particularly after planning file entry. So, it will check if this material is suitable or match with the exit-logic.
- Noted: this user-exit will not change planning file entry, it is just to mark this material excluded from planning or stop planing
- Ideally we need to place the identical coding in abovementioned 2 exit-FMs.
- T438A and MT61D: contains the related MRP type and material master data, for your check
- User-parameter: is the inputted data in the MD01/MD40. you can parse using coding in these 2 FMs
- NO_PLANNING: indicates this material should be excluded from this planning run
- STOP_PLANNING: indicates this planning run should be terminated