cancel
Showing results for 
Search instead for 
Did you mean: 

Reg Variable exit

former_member185071
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_chowdhary2
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Nikhil:

i was looking into this thread and also some other threads by eugene and A.H.P. i want a doc which can guide me through the variable user exit process. can u plz email me the doc to kavi.sdn@gmail.com.

the one mentioned above doc

thanks

kedar

Answers (1)

Answers (1)

former_member188325
Active Contributor
0 Kudos

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.

Take a look at

Hope this helps in understanding about user exits in variables.

Please don't forget to assign points if it helps

regards

former_member188325
Active Contributor
0 Kudos

Hi krish,

for SAP Exit variables,

take a look at the following thread:

regards