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

BW User Exit - Code in function of the query name


I would like to create an user exit code which execute a algorithm different in function of the query executed. do you know in which variable is store the technical name of the query.

CASE query

WHEN 'Z_ZAPO_001'.

V1 = 1

WHEN 'Z_ZAPO_002'.

V1 = 2 WHEN '10' OR '11' OR '12'.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 04, 2005 at 12:04 PM


    the field is



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      I_S_RKB1D-COMPID will never be filled for authorization user-exits (I_STEP = 0). Don't ask my why, I once raised this question to OSS and they replied it was never foreseen to work with authorization user-exits. God knows why, it's very unlogical and it wouldn't cost them a lot of work to get it working...

      I could solve this problem by applying a little trick. In our queries we included a user-exit keydate variable. This will push the user-exit first in I_STEP = 1 mode where I_S_RKB1D-COMPID is filled. Then save the query name by exporting it to the ABAP-memory. Afterwards, the user exit with code for I_STEP = 0 will be processed and then you can import the query name from the ABAP memory.

      I agree it sounds a little bit tricky but there is no better option I'm affraid.

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.