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

About autorozation object.

Former Member
0 Likes
654

Hi experts,

In my program, I have to use Authorization object on following condition:-

User authorization checks:

u2022 Display authorization check on plant and storage location. (Note: If data not provided on the selection screen, then select the data first and filter it based on authorizations). u2013 Auth Object M_MATE_WRK

o Example 1: If the plant range is not provided on the selection screen, then do the following:

 Get all the plants from T001W table and run authorization check for all these plants for the user.

 Remove all the unauthorized plants from your T001W internal table.

 Now report should be run only for the authorized plants from T001W internal table.

o Example 2: Same way as above, use table T001L for storage locations.

u2022 Display authorization check on warehouse. Auth Object L_LGNUM

o Example 3: For warehouses table T300 can be used.

o Example 4: If the plant and storage locations are provided, then get the warehouse from T320 and perform the authorization checks on the warehouse

All three fields are selection criteria on selection screen.

Please help.Points sure

Anshuman

Hi experts,

In my program, I have to use Authorization object on following condition:-

User authorization checks:

u2022 Display authorization check on plant and storage location. (Note: If data not provided on the selection screen, then select the data first and filter it based on authorizations). u2013 Auth Object M_MATE_WRK

o Example 1: If the plant range is not provided on the selection screen, then do the following:

 Get all the plants from T001W table and run authorization check for all these plants for the user.

 Remove all the unauthorized plants from your T001W internal table.

 Now report should be run only for the authorized plants from T001W internal table.

o Example 2: Same way as above, use table T001L for storage locations.

u2022 Display authorization check on warehouse. Auth Object L_LGNUM

o Example 3: For warehouses table T300 can be used.

o Example 4: If the plant and storage locations are provided, then get the warehouse from T320 and perform the authorization checks on the warehouse

All three fields are selection criteria on selection screen.

Please help.Points sure

Anshuman

3 REPLIES 3
Read only

Former Member
0 Likes
588

Hi Anshuman,

This looks like of pretty detailed explanation of what you need to do. What exactly is your question?

Regards,

Nick

Read only

0 Likes
588

Hi Nick,

I need concept of putting authorization on both fields, if pssible sample code for doing that.

Thanks. Waiting for ur reply.

Anshuman

Read only

0 Likes
588

Hi,

You need to look at the documentation for the ABAP statement AUTHORITY-CHECK, and the authorisation objects you've been given in your spec (SU03). You can only check one value at a time, so you'll need to put the check into some sort of loop.

Regards,

Nick