Hello All,
I am doing a development where it is required to check if there are any operations from version controlled task list. If there are any such operations present in the operations tab of transaction IW31 or IW32, they shouldn't be allowed to be deleted. If user tries to delete them, an error message should appear on the status bar. The code I have written in an enhancement (at start of form CUSTOMER_DEL_CHK in func.grp. COMK) works well for certain released maintenance orders. But, strangely, for certain non-released orders, I get a standard pop-up delete confirmation, which changes the behaviour of the error message that I have coded. For these certain cases I had to write the code in a different enhancement (in CO_IH_TABSTRIP_ABLAUF function module) and the error message appears as a pop-up only taking the user out of the transaction.
I have tried all variations like Message s049(message class) display like 'E'. But, such variations don't help in my case as EXIT doesn't stop the code from further processing the main program (as my code is inside nested modules). I want to know if there is a way by which I can still get the error message for operations (from version controlled tasklist) on status bar for remaining cases also (mostly non-released orders).
Please help me quickly to get a good solution.
Many Thanks in advance!
Best Regards,
Tejas Savla