Skip to Content
0
Former Member
Feb 23, 2010 at 12:48 PM

Values not updated with customer exit code in CMOD

35 Views

Hi,

i am having a problem with the customer exit, i am trying to call th previous year values. with this code but when i am running in rsrt for debugging it is giving error as

@0A@ Error for variable in customer enhancement PREVIOUS_YEAR_1 BRAIN 649

When i am running the report in bex it is displaying the current year values.

Please can any one help with the code to call the previous value. where i am passing fiscal year/period in the selection screen, it is single entry.

WHEN 'PREVIOUS_YEAR_1'.

IF I_STEP = 2. "after the popup of user entry

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE

WHERE VNAM = 'ZCURRENT_YEAR_PERIOD'.

EXIT.

ENDLOOP.

IF SY-SUBRC EQ 0.

WA_YEAR = LOC_VAR_RANGE-LOW+0(4). "Year

WA_MONTH = LOC_VAR_RANGE-LOW+5(3). "Period

WA_YEAR = WA_YEAR - 1.

  • CONCATENATE WA_YEAR wa_month INTO WA_FISC_PERD .

CONCATENATE WA_YEAR WA_MONTH1 INTO L_S_RANGE-HIGH .

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'BT'.

APPEND L_S_RANGE TO E_T_RANGE.

ENDIF.

  • L_S_RANGE-SIGN = 'I'.

  • L_S_RANGE-OPT = 'BT'.

  • APPEND L_S_RANGE TO E_T_RANGE.

  • ENDIF.

ENDIF.

Regards,

Vamsi