2010 Nov 17 6:31 PM
Hi,
I created a Z transaction and a variant, I allowed a user to see this transaction Z, you can deny the selection of other variants?
You can hide the button for selecting variants?
or you can give permission for execute a single variant to a user?
thanks
best regards
Hi,
I created a Z transaction and a variant, I allowed a user to see this transaction Z, you can deny the selection of other variants?
You can hide the button for selecting variants?
or you can give permission for execute a single variant to a user?
thanks
best regards
2010 Nov 17 6:40 PM
Hi
I don't believe it can prevent to select a certain variant, but it can try to prevent to run it: the name of current variant is in system variable SY-SLSET
Max
2010 Nov 23 6:19 PM
i solved.
I created a new object of authorization by the transaction su21, where he put the field in the table that interested me, in this case the variant field, and then I added to the program code
AUTHORITY-CHECK OBJECT 'ZSD_VARIANT'
ID 'VARIANT' FIELD SY-SLSET
IF sy-subrc EQ 4.
MESSAGE E000 (zzpp) WITH 'No Authorization'.
ENDIF.
This control checks whether there is authorization in the user profile, if it exists and not the name of the current version returns error if the object has not assigned can enter.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |