12-15-2008 5:19 AM
12-15-2008 5:51 AM
Jan,
Try like this.
In the Zprogram first check for the user and then use the function module RS_VARIANT_CONTENTS to check the variant.
Create a variant for the program.
Use the standard program RSTRANSP to transport the variants.
I never tried but I think it can be done.
K.Kiran.
12-15-2008 5:31 AM
Hi Jan Bo,
As per my knowledge you can restict user for T-Code and Not for Particular Variant of a Program.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
12-15-2008 5:43 AM
hi
try to disable the input fields
by using
transaction variants if standard and using fro user selection
at selection screen event
loop at screen.
fieldname-active = 'X'/' '.
modify screen.
endloop.
and use a variant for the perticular transaction.
shiva
12-15-2008 5:51 AM
Jan,
Try like this.
In the Zprogram first check for the user and then use the function module RS_VARIANT_CONTENTS to check the variant.
Create a variant for the program.
Use the standard program RSTRANSP to transport the variants.
I never tried but I think it can be done.
K.Kiran.
12-20-2008 8:52 AM
Jan,
Rather than using the function module I think we can even do this with the VARID table as it is having the Username too.Check for the sy-uname and then fetch the variants corresponding to that user,check for sy-subrc,when sy-subrc = 4 give an error message.
K.Kiran.
12-15-2008 6:18 AM
i hope hte user is suppose to execute the report from a report tree. in here give the variant to the report in the report tree .
Tcode SERP, SUIM_OLD,
I assume he will not execte the report from se38 so configure the required varint to him in the report tree.
Vijay.
12-15-2008 6:19 AM
Just put a check on Selection screen fields in the program under
AT SELECTION-SCREEN event and check for current user using sy-uname and thro error whenever required