Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change authorization in Debugging mode

Former Member
0 Likes
5,860

Hi,

If it is not allowed to go to specific transaction, how I change authorization in debugging mode?

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
2,000

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

Read only

former_member404244
Active Contributor
0 Likes
2,000

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

Read only

Former Member
0 Likes
2,000

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

Read only

Former Member
0 Likes
2,000

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

Read only

Former Member
0 Likes
2,000

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

Read only

Loed
Active Contributor
0 Likes
2,000

This message was moderated.

Read only

Loed
Active Contributor
0 Likes
2,000

This message was moderated.