Rubab
- I agree with Maria's OICMPD. In this case the customizing setting in OICMPD for field RESBD-MENGE as 'Req.' addresses you issue.
- The need of above suggested user-exit solutions will arise when you have complex conditions to have this field mandatory.
For example:
If you want to have this setting for Order type 'PM04' and for item category 'L' , both these conditions can not be addressed through OICMPD. Only one condition can be addressed through the Influencing field (Order type OR Item Category).
User-exits (or BAdi interfaces) are suitable for any type of conditions. So in the above case the code suggested by me to be inserted between lines in case of user-exit PPCO0023.
IF is_header-auart = 'ZM04' AND is_component-postp = 'L'
<the suggested code>.
ENDIF.
And if it is the case of CNEX0013
the code becomes a bit longer, so not recommended for such requirements.
I repeat, if your requirement is a very plain requirement based on one Influencing condition then you should go with OICMPD.
Good luck
KJogeswaraRao