Forbiding Entry of Future Basic Start date in Breakdown order type
How can I go about forbidding a user from entering a future date when creating a breakdown PM order as a breakdown would always occur in the past when ever the user is creating an order?
Jogeswara Rao K replied
Put this simple code in the include ZXWOCU07 user-exit IWO10009.
IF caufvd_imp-auart = 'PM02' AND caufvd_imp-gstrp > sy-datum.
MESSAGE: 'For Order type ''PM02'' Basic Start date can not be in future.' TYPE 'E' DISPLAY LIKE 'I'.
After this no Order of type 'PM02' (Breakdown) will be able to be created with future date in Basic Start date field. It will throw the following error pop-up during such attempts.