03-05-2014 7:03 AM
hi sap experts.
i added a field "work center" to QM02 transaction , i want to mandatory this field .
actually i want that the user have to fill this field and cant exit the transaction untill fill and save this field, can any one help me.
thaks a lot.
03-05-2014 7:23 AM
I suppose (hope) you used the generic (*) enhancement (SMOD) QQMA0001 and include CI_QMEL to add the field and create the Customer-exit subscreen ?
If yes, then use Enhancement QQMA0014, Exit EXIT_SAPMIWO0_020 to add some check before save, of course you should also check the data in the PAI of your subscreen. The previous exit will be effective when user doesn't display the customer subscreen, so its PAI may not be executed.
Regards,
Raymond
(*) effective with QM, PM and SM
03-05-2014 7:05 AM
How did you add this field can you please provide the details
Nabheet
03-05-2014 7:53 AM
i add this field in table and then add input/output object in screen.
03-05-2014 7:08 AM
Hi,
Try with user exit IWOC0002.
Check - I_VIQMEL-ARBPL.
Arivazhagan S
03-05-2014 7:23 AM
I suppose (hope) you used the generic (*) enhancement (SMOD) QQMA0001 and include CI_QMEL to add the field and create the Customer-exit subscreen ?
If yes, then use Enhancement QQMA0014, Exit EXIT_SAPMIWO0_020 to add some check before save, of course you should also check the data in the PAI of your subscreen. The previous exit will be effective when user doesn't display the customer subscreen, so its PAI may not be executed.
Regards,
Raymond
(*) effective with QM, PM and SM
03-06-2014 6:56 AM
thanks a lot reymond.
i add message to EXIT_SAPMIWO0_020 and check for initial field but when i want to exit the transaction i dont go to this function ! and so i can dont fill this field and exit!
03-06-2014 7:28 AM
Did you
Else there is also a BADI : NOTIF_EVENT_SAVE
Regards,
Raymond
03-06-2014 4:10 PM
Yes Raymond, it happened to me once, I forgot to activate the CMOD project and at last I found that it is not activated. My exit worked after activating it.
Regards,
TP
09-10-2014 11:16 AM
hi reymond and thanks for reply to me .
now i have another question ,if i want to do the same in qm01 , what to do i ? in the package of qm01 i dont have any EXIT_FROM_SAVE !
09-10-2014 12:13 PM
QM01 and QM02 are executing the same program, did you check if same customer-exit was also triggered ?
Regards,
Raymond
09-11-2014 8:18 AM
hi reymond.
in qm02 when i dont fill workcenter it dosnt alow me to save and show my messegae in FUNCTION EXIT_SAPMIWO0_020. but when i save in qm01 , it dosnt got to this.
09-11-2014 8:36 AM
Can you
Regards,
Raymond
03-05-2014 7:57 AM
Hi Izadi,
If you added that field through screen exits by module pool program, then in properties of field make it as mandatory.
From above screen for attribute input there is a option as required
By this u can make it as mandatory.
03-05-2014 8:03 AM
hi vineesh.
i do this but it occure when the user go to that tab, if not , user can exit transaction without save that.
03-05-2014 8:57 AM
Then check the exit for QM02 Transaction
COOPA003 is the exit fot that and in that include(PAI) place the code as
if i_work_center is initial.
error message that field is particular tab is mandatory.
endif.
03-05-2014 11:47 AM
Hello Mahdieh,
I guess you can achieve it through the below adapt screen selection.
Click on the documentation and you will get to know in detail.
Regards,
Thanga
03-06-2014 6:07 AM