Hi,
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!!!
Thanks,
Ramesh Sampath
Add a comment