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

Run ABAP Code

Former Member
0 Likes
475

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
Read only

Former Member
0 Likes
431

AUTHORITY-CHECK OBJECT 'Z_OBJECT'

ID 'VKORG' FIELD KNVV-VKORG.

if sy-subrc <> 0.

message e810 with KNVV-VKORG.

endif.

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
431

yes, debug your report :

you can change sy-subrc before error-message

A.

Read only

Former Member
0 Likes
432

AUTHORITY-CHECK OBJECT 'Z_OBJECT'

ID 'VKORG' FIELD KNVV-VKORG.

if sy-subrc <> 0.

message e810 with KNVV-VKORG.

endif.

Read only

shishupalreddy
Active Contributor
0 Likes
431

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,