Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: Tcode ML81N Authorization check for Service Entry Sheet Workflow Display work item

$
0
0

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

 

 

pore3.PNG

 

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.

pore4.PNG

 

Is it that the point am trying to capture the error in the display method is wrong?

 

Regards

Jack


Viewing all articles
Browse latest Browse all 9069

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>