Application Development 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: 

Run ABAP Code

Former Member
0 Kudos

Hi All,

Once I create the authority object for my report I am able to run the report since I am not authorised but I what to check the report. Is there any way to do that.

Thanks,

Govindarajan Umadevi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

AUTHORITY-CHECK OBJECT 'Z_OBJECT'

ID 'VKORG' FIELD KNVV-VKORG.

if sy-subrc <> 0.

message e810 with KNVV-VKORG.

endif.

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

yes, debug your report :

you can change sy-subrc before error-message

A.

Former Member
0 Kudos

AUTHORITY-CHECK OBJECT 'Z_OBJECT'

ID 'VKORG' FIELD KNVV-VKORG.

if sy-subrc <> 0.

message e810 with KNVV-VKORG.

endif.

shishupalreddy
Active Contributor
0 Kudos

Hi,

keep the breakpoint at AUTHORIZATION OBJECT STATEMENT

Once you get into debugger change the sy-subrc value to 0 in debugger .

if you get any popuup window while executing eventhen alos you are supposed to use pouup debugger to change the authirization .

regards,