‎2007 Dec 14 7:11 AM
Hi,
If it is not allowed to go to specific transaction, how I change authorization in debugging mode?
Thanks.
‎2007 Dec 14 8:12 AM
Hi Helen,
Before executing transaction code, put debugger switch on by '/h.
The change the value of sy-subrc after executing FM molue for authorization check. I guess function module might be 'AUTHORITY_CHECK_TCODE'.
Thanks,
Rajeswari
‎2007 Dec 14 8:14 AM
HI,
Use the FM 'TRANSACTION_CALL'.put a break point in it and then execute,speify the transaction code u want and then execute..it will stop at the breakpoint and then change sy-subrc value and then press F8.it will take u to the transaction whcih u want to see..
Reagrds,
nagaraj
‎2007 Dec 14 8:19 AM
Hi,
We have to call this Module in PBO event of the initial screen flow logic.
here we call authority check object******
FORM authority_check_zmdepick.
AUTHORITY-CHECK OBJECT 'L_TCODE'
ID 'TCD' FIELD sy-tcode.
IF sy-subrc NE 0.
*User doent have authorization this tcode.so it comes out
MESSAGE i010(zmde) WITH sy-tcode.
LEAVE TO SCREEN 0.
ENDIF.
ENDFORM. " authority_check_zmdepick
Put breakpoint at AUTHORITY-CHECK OBJECT stmt when program is in active mode.
At run time whenever sy-subrc NE 0 means you change it 0.
In fields value you give sy-subrc .it wuill display some value right side.there you remove any other value and put 0 and click right side change button for that row.
Please reward points if helpful.
Thanks
Sivaparvathi
‎2007 Dec 14 8:45 AM
its very easy as told above
at sap main menu
go to transaction se93
in the command field write /h and press enter/continue
this will initiate debugger
now enter the transaction code eg se38
on pressing continue a debugger window will viewed
now press shift+F5
here write keyword MESSAGE and press continue
<b>press F8
just above the line where cursor is placed you can see a if condition
click once on that line and press shift+F12
this takes the execution back to that line
now edit and change value of variable sy-subrc and rc in the right side of screen</b>
repeat the above step in bold until the transaction is opened.
and change value of sy-subrc whenever sy-subrc not equal to 0
Message was edited by:
Sumesh Nair
‎2009 Jul 27 12:40 PM
Hi,
Put a breakpoint on line 49 of the Subroutine Pool AUTHORITY_CHECK_TCODE=========FT.
Then switch on the debugger by '/h' before entering the tcode. Put a breakpoint at the function module 'AUTH_CHECK_TCODE' and execute it. If the value of SY-SUBRC is not equal to 0, make it 0 and then press F8.
Thanks,
Atanu
Edited by: Atanu Das @ work on Jul 27, 2009 1:52 PM
‎2014 Jun 20 3:53 AM
‎2014 Jun 25 2:58 AM