Skip to Content

Reg Variable exit

Hi Bw xpertz

Is there possibility to use variable exits in a query?

If possible how? if not HOw?

Can any one give the clarification please..

Thanx IN Advance

Regards

Krish

Bangalore

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2006 at 01:43 PM

    Hi Krish,

    Yes, variable exits can be used in queries.

    There are two types of exit variables you can use:

    SAP Exit:

    These are pre-defined variable sprovided by SAP e.g 0cmonth to return the value of the current month, 0dat to return the current day etc. If you want to use these, you would need to activate these in business content. When defining the variable in your query, choose processing type as SAP Exit.

    Customer exit:

    For these you can write your own logic, but first you would need to create a project in transaction CMOD.

    after creating & activating the project you cam goto transaction SE38, display the program EXIT_SAPLRRS0_001

    and double click on include ZXRSRU01. This will take you to the place where you may write you customer exit variable code. There is essentially a case (vnam) ststement in this include, so to start writing the code for your variable, you need to start with a when '<your variable name>' line and then the appropriate i_step number followed by your code.

    Choose processing type as Customer exit when creating the variable in your query.

    Refer to the how to document:

    https://websmp205.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf

    Hope it helps,

    Regards,

    Nikhil

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2006 at 04:00 PM

    Hi krish,

    we have SAP Exit variables as well as Custmoer exit variables.

    for customer exits in variables...we have to choose processing type as 'customer exit' while creating a variable..corresponding code should be written in CMOD transaction in BW.

    pl refer this post to download how to do...documnet.

    customer exit help

    Take a look at

    user-exit-for-bex-vaeiable

    Hope this helps in understanding about user exits in variables.

    Please don't forget to assign points if it helps

    regards

    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.