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

Authorization using $ variable Customer Exit (RSR00001)


We have a need to restrict the contracts each user can have access to. Since the list changes dynamically, I wanted to implement this using "Authorization by customer exit" ie, we would like to create a authorization object and sepcify a Variable and would like to derive the value from the variable user exit.

Here are the steps I tried:

1. I created a Authorization object Z_CONTRACT and assinged a value for InfoObject "ZCONTRACT" as $ZACONT. Where ZACONT is an User Exit Variable.

2. Added Code in RSR00001 Customer query variable Exit to populate value to ZACONT variable.

3. created a new Authorization Query Variable ZAQCONTR, by creating the variable as "Authroization" varaible and ready for input.

When I include the variable and run the report, it does not get any values. I was expecting to get values that i assign to ZACONT variable in the customer exit. When I run with or without specifying values in the query, I get an authorization error.

I also changed the values in RSSM to $VAR, $VARZACONT, but still have same problems. When I specify a single value in RSSM, it works fine. That validates the process. But when I specify $VAR or $ZACONT or $VARZACONT, I am not able to get values from variable user exit.

I have seen in several SAP Notes / Docs that we can do something simillar to this, but I am not able to find the exact steps.

Please Help!!!


Ramesh Sampath

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2004 at 04:02 PM

    Hi All,

    I finally figured it out. I needed to create a variable of type "customer exit" and use this in RSSM. Now it works like a charm..I am so a kid!!!


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      What i got from here is instead of creating a user-exit variable you have to create a customer exit variable in Bex. BUt then what is the difference between the two. if you can brief it would be of great help.

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.