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

SQ01 - authorisation checks

Former Member
0 Kudos
537

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

andreas_mann3
Active Contributor
0 Kudos
271

Hi,

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

Andreas

Read only

Former Member
0 Kudos
271

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

Read only

Former Member
0 Kudos
271

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.

Read only

Former Member
0 Kudos
271

Hi,

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

Regards

KER