Skip to Content

About SAP Exit variables

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>.

Standard Variables in BEX related to Time Charcteristics

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 29, 2015 at 07:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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