Hi Mike,
I totally agree with your explanations,i have been trying all your suggestions out ,but still in vain.
Before i raise an exception in my code ,this was the error message that i got in tcode SWI2_DIAG
After coding the exception I still get the same error.Here is my logic:
begin_method display changing container.
DATA tcode TYPE sy-tcode.
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'ML81N'.
tcode = 'ML81N'.
IF sy-subrc = 0.
SET PARAMETER ID 'LBL' FIELD object-key-entrysheet.
CALL TRANSACTION 'ML81N' AND SKIP FIRST SCREEN.
ELSE.
MESSAGE e077(s#) WITH tcode RAISING not_ok.
ENDIF.
end_method.
Graphical display of the error.
Is it that the point am trying to capture the error in the display method is wrong?
Regards
Jack