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: 

SQ01 - authorisation checks

Former Member
0 Kudos

Hello,

I have built a query using SQ01 and I need to place an authorisation check against a particular field on the report.

Can anyone tell me how ths is done?

Thanks,

Allan

4 REPLIES 4

andreas_mann3
Active Contributor
0 Kudos

Hi,

you can insert coding-lines (with authority check) in your infoset

Andreas

Former Member
0 Kudos

Hi,

What is your aim? if the authority check fails, you do not want to display the whole report or you want to display only those lines where the authority check is successful?

Any way you can follow the steps below,

1. edit infoset

2. click on extras

3. click on create

4. select code radio button

5. enter the authority check code

6. use check sy-subrc = 0.

Ravi

former_member188685
Active Contributor
0 Kudos

Hi

For Authorization check, you can do it in initialization part by adding the code.

authority-check object 'V_VTTK_SHT'

id 'ACTVT' field '02'

id 'SHTYP' dummy.

if sy-subrc <> 0.

message e059(zz).

endif.

Former Member
0 Kudos

Hi,

Write a piece of code for authorization Check while you creating a Infoset i.e SQ02.

Regards

KER