Skip to Content
author's profile photo Former Member
Former Member

How to limit a user to a variant of an program

How to limit a user to a variant of an program

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 15, 2008 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Dec 15, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.