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

How to see if an exit is called by a query view ?

Hello,

I have a query with some variables filled by default with a customer exit (EXIT_SAPLRRS0_001). Those variable can then be edited by our users in the variable screen.

There is no issue to execute this query in our portal.

Then our users can create some query view, with or without saving initial variables values.

But as we have a customer exit we have the following issue :

RUN 1 :

Variable 1 is filled by default by the customer exit to "01.01.2010 - 31.12.2010"

Variable 1 is then changed by the user to "01.01.2010 - 30.06.2010"

then the user play with its query and when to save a view (VIEW_1), without saving variables values.

RUN 2 :

Variable 1 is filled by default by the customer exit to "01.01.2010 - 31.12.2010"

Variable 1 is changed by the user to "10.04.2010 to 10.05.2010"

then the user executes the query and want to retrieve VIEW_1.

But, after VIEW_1 execution the scope of variable 1 has been changed to "01.01.2010 - 31.12.2010" by the customer exit that is clearly not expected by our users.

How to avoid this behaviour ?

I would like to check in the exit if we are executing a query or a query view but I haven't find any parameter to do it.

Thanks in advance for your help,

GC.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 05:20 AM

    Hi,

    You can display input variables interval as Heading in Reports headers. Whenever user execute it input parameter will displayed.

    Or if you can check by t.code RSRT & excute query & get information about varlables.

    Regards,

    Anand Mehrotra.

    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.