Hi Nanda,
I followed this guide on how to create it: Analysis Authorization Using Variable Exits | SCN
The step 1 is to update the value on the variable screen (this part works) and I get the value expected (country 'GB' for my test user) appears on the variable screen for country.
Step 3, from what I understand from the document, should check for valid entry on the variable screen. My error message does also work (when I don't assign the Analysis Authorization to the user) so for example I gave my user GB country code... when I enter US as the country and hit "Check" then the error message pops up saying "You aren't authorized for Country US....etc....". But still I get the No authorization message after executing the query.
The error messages I'm getting are from RSRT:
Service cannot be used
Row: 87 Inc: LRRMSU13 Prog: SAPLRRMS
System error in program CL_RSR and form GET_COB_PRO-01-
Row: 87 Inc: LRRMSU13 Prog: SAPLRRMS
System error in program CL_RSR and form GET_COB_PRO-01-