cancel
Showing results for 
Search instead for 
Did you mean: 

About SAP Exit variables

former_member184624
Participant
0 Kudos

Hi All,

I just want to see the output values of SAP exit variables used in the Bex Query designer. By seeing some of the threads, i came to know that, one of the standard functional module RSVAREXIT_<SAP EXIT>.

From the above link, for the calday, the standard variable is 0CWD is shownc in the document. But if i give the funtional module as RSVAREXIT_0CWD, it is showing error as function module doesnt exists. Can you please guide me how to see the values for SAP exit variables. ie)0CWD. Is it possible to see 0CWD from business content ?


Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

karthik_vasudevan
Active Contributor
0 Kudos

Hi Jalina

Below is the code for the variable 0CWD. Its available in the FM RREX_VARIABLE_EXIT. You will find the code for most of the variables here.

        i_vnam = g_c_exitvnam-cwd.

        CLASS cl_rsr_hierarchy_virt DEFINITION LOAD.

        l_fcalid = cl_rsr_hierarchy_virt=>n_s_admin-cal_id.

        l_date   = sy-datum.

        CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'

          EXPORTING

            correct_option      = '-'

            date                = l_date

            factory_calendar_id = l_fcalid

          IMPORTING

            date                = l_actdate.

        l_s_range-low = l_actdate.

The code will get the current work day based on system date and the FM 'DATE_CONVERT_TO_FACTORYDATE'.

The FM RSVAREXIT_<Variable name> will not suit for all variables. If you want to know which variables are available that way, just type RSVAREXIT_* in SE37 and you will find the details.

If you don't find there, go to the other FM RREX_VARIABLE_EXIT

Regards

Karthik

Former Member
0 Kudos

You can use function module RRS_VAR_VALUES_EXIT_FILL for this purpose

Import parameters:

I_VAM = '0CWD'

I_PERIV = 'K1'

Export parameters

E_T_RANGE will contain desired variable result following execution