cancel
Showing results for 
Search instead for 
Did you mean: 

How to see the ABAP Code behind SAP Exit Variables.

Former Member
0 Kudos

Hi Everyone.

I was wondering if anyone could help me with the steps to see the ABAP Code behind a SAP Exit Variable.

Sometime back I remember of going to Transaction SE37 - Function Module and give the Variable name,
Eg: 0F_ADAY, Hit F4 or something like that and was able to see the ABAP Code/Function Module/Exit written for that Variable.same

But today I tried to do the same thing to see the code for Variable 0P_FVAEX but I was NOT able to see it.

I think I am missing something.

Can someone help me recollect what I am missing.

Thank You for your time
NOVICE

Accepted Solutions (1)

Accepted Solutions (1)

MartinMaruskin
Active Contributor

Some of older business content variables are coded in FM RREX_VARIABLE_EXIT. You may want to check that as well. If it is not the case then debug it.

cheers

m./

Former Member
0 Kudos

Hi Martin

I tried following your solution but I could not understand what values to be passed for the other fields.

Please have a look.

I_VNAM        :Here I gave the SAP Variable name.
I_VARTYP     :PLEASE comment on this. [Variable Type, but what kind ?]
I_VPARSEL  :PLEASE comment on this also.

I_OBJNM      :Here I gave the InfoObject name for which this SAP Variable was made or something                            similar, in my case it was or I gave 0FISCVARNT.


I would appreciate some input from you Martin and Thank you for replying.

Regards.

MartinMaruskin
Active Contributor
0 Kudos

Hi,

sorry for late reply. see my comments:

I_VARTYP     = 1 for Characteristic value var

I_VPARSEL  = P for Single value (parameters)


cheers,

m./

Answers (2)

Answers (2)

chanda
Contributor
0 Kudos

Hi Novice ,

If you are refering to the Bex vaiables , this is the procedure .

1. Tcode --CMOD

2. Give the project name 

3. select components ( radio button )

4. click on display

5. Double click on Function exit -- EXIT_SAPLRRS0_001

6. Double click on Include --  zxrsru01

Alternatively

Se38 -->  zxrsru01

Hope it helps,

Sudhir

Former Member
0 Kudos

Hi Janardhan

If you follow the steps that you have mentioned, you can see the Code for Customer Exit Variables which you have defined and NOT the Standard SAP Variables which I am talking about.

Thank you for replying though.

Regards.

former_member71289
Contributor
0 Kudos

Hi Novice,

try SE37 and function name RSVAREXIT_0P_FVAEX.

Best regards,

Andreas

Former Member
0 Kudos

Hi Andreas

Thank You for your prompt reply and excuse me for Updating you a bit late.

The solution you gave me worked for the mentioned SAP Variable 0P_FVAEX but it did not work for SAP Variables like 0CMONTH and 0CYEAR ETC.

Can you or anyone suggest me a generic way to see the Code for all the Standard Variables delivered by SAP.

I am sure it will be helpful to me and a lot others.

Andreas, I have marked your answer as Helpful Answer but again Thank You for your prompt reply.

Regards.

former_member71289
Contributor
0 Kudos

Hi bi novice,

big sorry for the late reply!

The following variables are defined in function module RREX_VARIABLE_EXIT as case statement:

'0CMONTH', '0CWEEK', '0CYEAR', '0CQUART', '0DAT', '0CWD', '0FYEAR', '0FPER', '0FYTCFP',
'0FYTLFP', '0FYTCD', '0CYTCM', '0CYTLM', '0CYTCD', '0LYTCLD', '0CMONTHT', '0CWEEKT', '0CYEART', '0CQUARTT', '0DATT', '0FYEART', '0FPERT'

Best regards,

Andreas

MartinMaruskin
Active Contributor
0 Kudos

Yep, as I already pointed to that FM few day ago 🙂