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

Creating Authorization for multiple plants

Former Member
0 Likes
699

Hi,

I have one requirement that, Creating Authorization for multiple plants

SELECT-OPTIONS: s_werks FOR mseg-werks.

AUTHORITY-CHECK OBJECT 'M_MSEG_WMB'

ID 'ACTVT' FIELD '03'

ID 'WERKS' FIELD s_werks.

1. If have no of plants in s_werks then how to authorize the plants?

2.if i dont enter any plant in my selection screen how to authorize that?

3. if i have 5 plant only then how i can authorize those perticular plants only?

Thanks in advance,

Thanks,

DP.

1 REPLY 1
Read only

brad_bohn
Active Contributor
543

S_WERKS is not a field; it's a set of fields. Use simple ABAP to select your plants and loop at the selection(s) to check...