Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Difficulty With First User Exit for Reporting

I am just a bit confused with starting my first "user exits for reporting". I am on Netweaver 2004s 7.0 sp13.

I went to trans CMOD and created a project: ZBIMWH01.

I went to change mode and pressed "components" and I see the following:

Project ZBIMWH01 mwh: query cust exits

Enhancement Impl Exp RSR00001 BI: Enhancements for Global Variables in Reporting

Function exit EXIT_SAPLRRS0_001

Next to EXIT_SAPLRRS0_001 is a document icon. When I press it I get an ABAP Editor with "INCLUDE LXRSRF01"

Yeah, here I can type in some code.

I understand that here I should put in some code to call individual function modules and then create/modify those, so I'll put the following code in there like:

DATA: l_d_fname(30) TYPE c.

CASE i_step.

WHEN 1.

CONCATENATE 'Z_VAR_PRE_POPUP_'

i_vnam INTO l_d_fname.

WHEN 2.

CONCATENATE 'Z_VAR_POST_POPUP_'

i_vnam INTO l_d_fname.

WHEN 0.

CONCATENATE 'Z_VAR_AUTHORITY_'

i_vnam INTO l_d_fname.

WHEN 3.

CONCATENATE 'Z_VAR_CHECK_VALIDITY'

ENDCASE.

TRY.

CALL FUNCTION l_d_fname

EXPORTING

I_VNAM = i_vnam

I_VARTYP = i_vartyp

I_IOBJNM = i_iobjnum

I_S-COB_PRO = i_s_cob_pro

I_S_RKB1D = i_s_rkb1d

I_PERIV = i_periv

I_T_VAR_RANGE = i_t_var_range

I_STEP = i_step

IMPORTING

E_T_RANGE = e_t_range

E_MEEHT = e_meeht

E_MEFAC = e_mefac

E_WAERS = e_waers

E_WHFAC = e_whfac

CHANGING

C_S_CUSTOMER = c_s_customer

EXCEPTIONS

OTHERS = 1.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY

NUMBER SY-MSGNO

WITH

SY-MSGV1 SY-MSGV2

SY-MSGV3 SY-MSGV4

RAISING ERROR_IN_VARIABLE.

ENDIF.

CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC.

  • No exit implemented, no need to do

  • anything here

ENTRY.

I assume then that the rest of my code for the reporting should be in the individual function modules.

So now I can create a function module like 'Z_VAR_PRE_POPUP_firstvar'.

Am I getting this correct?

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question