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

Authorization for field value

sriram_ramesh
Participant
0 Likes
620

Hello Pals,

I am displaying a CS report by filtering order type as 'ZR03' and 'ZE03' in AUFK table selection.

But now I have a requirement to have authorization like,

Specific users shall use specific order types alone.

So I need to display output based on users.

As per my understanding, I should create an authorization object and have field as order type (AUART).

Value for that (either 'ZR03' or 'ZE03' ) will be maintained by basis consultant for each users.

And in my code, I should have authority check for this field and value, and based on sy-subrc value, I shall modify select statement from aufk.

Is this right? if not, please suggest me a solution.

Thanks,

Sriram

1 REPLY 1
Read only

Ashg1402
Contributor
0 Likes
472

Hi,

Yes the approach is correct . Use statement AUTHORIZATION-CHECK <auth object> and cehck for the values which are assigned in the condition for that object.