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

parameter id

Former Member
0 Likes
766

my scenario is

I have some group leaders and many operators as sap users in the plant.

I need to filter group leaders and give them the same program with some screen changes(enabling radio button for group leader in the screen program).

One of the option I have is maintain parameter id & its value in SU3 tocde. under parameter tab page...

And in the program I can do like

select parve from usr05

where uname = sy-uname

And parid eq ( above maintained id).

if sy-subrc = 0.

enable the radio button on the screen.

else

disable the radio button.

endif.

If the above solution looks good, then question is which parameter id has to be used ?

Thanks in adv.

your help will be highly appreciable.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
710

As long as users can edit their profiles (system>user profile>own data (SU3)), the operators can put Group Leaders parameter id into their profile.,i think will NOT be good idea to control a radio button on the basis of user profile.

My suggestion is to create a authorisation object and assigned to user profiles of group leaders. then check in this your program in the initialisation event. If sy-subrc eq 0. then control the radio button on the basis of this

a®

6 REPLIES 6
Read only

Former Member
0 Likes
710

hi,

you can maintain a user group for them. and in program you can check if sy-uname falls under that group, enable the extra fields in at selection-screen output. user groups are in table :USGRP

Read only

0 Likes
710

Thanks sir.

how ever ...the USGRP table does not have user name (sy-uname)....

how to connect username with the user group that we are going to maintian in USGRP ?Could you please tell me some more clearly ?

Thanks in advance

Read only

former_member194669
Active Contributor
0 Likes
711

As long as users can edit their profiles (system>user profile>own data (SU3)), the operators can put Group Leaders parameter id into their profile.,i think will NOT be good idea to control a radio button on the basis of user profile.

My suggestion is to create a authorisation object and assigned to user profiles of group leaders. then check in this your program in the initialisation event. If sy-subrc eq 0. then control the radio button on the basis of this

a®

Read only

0 Likes
710

Sir thanks.

you are right .

1). the thing is previously I did not get chance to create an authorisation object...could you please tell me the procedue of how to create that (thanks) .

2) .I did not get how to assign to user profile of group leaders ?

could you please be some more clear?

THANKS IN ADV.

I want to learn.

Read only

0 Likes
710

Please check this.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c&override...

As a developer you can ask your basis or security team for creation of authorisation object and assigned to profiles.

a®

Read only

Former Member
0 Likes
710

Just another option. You can create two different transaction codes, one for the group leaders and one for the operators and assign the transactions to the users according to their position. In your code, you can check the SY-TCODE and show or not show the radiobutton. Just disable executing the program from SE38 or SA38.