‎2009 Sep 17 6:59 PM
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.
‎2009 Sep 17 7:14 PM
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®
‎2009 Sep 17 7:03 PM
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
‎2009 Sep 17 7:14 PM
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
‎2009 Sep 17 7:14 PM
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®
‎2009 Sep 17 7:20 PM
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.
‎2009 Sep 17 7:36 PM
Please check this.
As a developer you can ask your basis or security team for creation of authorisation object and assigned to profiles.
a®
‎2009 Sep 17 7:42 PM
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.