Hi Vineeth
Solutions:
Option1 (In standard)
- Forget about Notes and their behavior.
- Assume your Order is PM02 (and Notification can be any type which is integrated with it).
- Now make field CAUFVD-KTEXT Req. in OIAN for Order type PM02.
- Here on when you try to Save the Order (PM02) without Short text, it will not let you Save throwing the following error in status bar
5. Now the mandatory setting for field VIQMEL-QMTXT in OIAL for your Notification type becomes redundant which you may put it back to Input..
Option2 (Through User-exit)
First 2 point above remain here too.
3. Remove the OIAL setting of Req. (mandatory) for field viqmel-qmtxt for your integrated Notification type. Means put it back to Input.
4. Now put the following code in the include ZXWOCU07 (of user-exit: IWO0009, F/exit: EXIT_SAPLCOIH_009).
IF caufvd_imp-auart = 'PM02' AND caufvd_imp-ktext IS INITIAL.
MESSAGE: 'Field Description must still be filled.' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.
After this the Order Save behavior is as under:
When you try to save the Order without the Order short text, it throws the following error.
Close pop-up > hit Enter > Fill the Order short text > click Save. The Order will be saved alongwith Notification .
My view on this situation
We need not be after searching and applying SAP correction programs, when we have other ways in available functionalities to get rid of the difficulty being faced.
Good luck
KJogeswaraRao