Hi
In the Component-Controller of the WebDynpro HRMSS_C_CATS_APPROVAL I have made a Pre-Exit in the method PROCESS_EVENT.
If some conditions in the Pre-Exit are true, than the code of the method PROCESS_EVENT must not be called.
In a class-based method the pre-exit is still in the same method. But in a webdynpro-based method the pre-exit is a method on its own.
So I cannot write an EXIT like that:
IF <my_condition> EQ abap_true.
EXIT.
ENDIF.
In this case, I only would exit the pre-exit-method, but not the main method.
I have thought about the following solution:
I could write an Overwrite-Exit. The Overwrite-Exit would be a dummy. There wouldn't be any code.
I would copy the original code of the method PROCESS_EVENT in a own method of the assistance-class.
Than I could do that:
IF <my_condition> NE abap_true.
wd_assist->zz_my_process_event( ... ).
ENDIF.
But the big disadvantage of this solution is, I would overwrite the sap-standard. In case of new sap-code I wouldn't receive that.
Does anybody has an idea how to solve this issue?
Thank you