‎2008 Sep 23 9:10 PM
Hello Friends,
I have developed a screen Program in SE51.
I have couple of push buttons and every button calles a report program.
However all the push buttons should be authorized for all users. Is there a way I can activate push buttons based on the user name.
say for example,
there are 2 push buttons,
Button1, Button 2.
Button1 should not be permitted for User2 and so on.
Any suggestions.
Ster
‎2008 Sep 23 9:25 PM
If the push buttons are in the screen you can hide them in the following way:
1.Write a module in PBO to check the authorization.
2.If the authorization fails then set the flag.
3.
LOOP AT SCREEN.
IF screen-name = 'BUTTON1' AND flag = 'X'.
screen-active = '0'."'space'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
the button will be hidden.
‎2008 Sep 23 9:25 PM
If the push buttons are in the screen you can hide them in the following way:
1.Write a module in PBO to check the authorization.
2.If the authorization fails then set the flag.
3.
LOOP AT SCREEN.
IF screen-name = 'BUTTON1' AND flag = 'X'.
screen-active = '0'."'space'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
the button will be hidden.
‎2008 Sep 23 9:53 PM
‎2008 Sep 24 7:22 PM
‎2008 Sep 24 5:12 AM
Hi
You can assign authorizations for the report, and in the PBO check whether the user is having authorizations for all the reports using Authority object.
Based on that, you can loop and modify the screen
Regards
MD
‎2008 Sep 24 1:59 PM
Thanks All for the replys.
My Question is how would I assign the authorizations. I mean How would I do it.
Once I do the suthorization I can modify the code in the PBO.
T Code and steps Pls for authorization.
Thanks,
Ster.
‎2008 Sep 24 4:40 PM
‎2008 Sep 24 5:55 PM