cancel
Showing results for 
Search instead for 
Did you mean: 

BEx variable customer exit run error- error class SAPMSSY1 method: UNCAUGH

Former Member
0 Kudos

BEx Analyzer give pop-up window with the following message, please help to solve it. Thanks!

Initial RANGE-SIGN for customer exit variable ZPUTMNTH is correct.

Value "200302 0" for user-exit variable ZPUTMNTH is invalid

Program error class SAPMSSY1 method: UNCAUGHT_EXCEPTION

<b>Diagnosis

The value for the variable ZPUTMNTH is determined in the user exit (RSR00001). In this case, the value 200302 0 was allowed. This value is not valid.

System Response

Procedure

Procedure for System Administration

Check the user exit for variable ZPUTMNTH. Make sure that variables for characteristic values are in internal format and are not compounded. This means, for example, that a date variable must have the value 20000914 and not the value 14.09.2000.</b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The ABAP code like below:

&----


*& Include ZXRSRU01

&----


DATA: L_S_RANGE TYPE RSR_S_RANGESID.

DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.

Data: v_loc_date type d.

Data: v_loc_date1 type d.

Data: v_loc(4) type c.

CASE I_VNAM.

*----


  • to calculate "month to date" user input is "Calday" Key Date

*----


WHEN 'ZPUTMNTH'.

IF I_STEP = 2. "after the popup

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE

WHERE VNAM = 'ZPDATE'.

CLEAR L_S_RANGE.

L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)

L_S_RANGE-LOW+6(2) = '01'. “ low value e..g. YYYYMM01 (20060601)

L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'BT'.

APPEND L_S_RANGE TO E_T_RANGE.

EXIT.

ENDLOOP.

ENDIF.

ENDCASE.

Message was edited by:

Almini Sanbra

Former Member
0 Kudos

Hi Almini,

1) Try replacing the following 2 lines:

L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)

L_S_RANGE-LOW+6(2) = '01'. “ low value e..g. YYYYMM01 (20060601)

        • with ****

CONCATENATE LOC_VAR_RANGE-LOW(6) '01' INTO L_S_RANGE-LOW.

2) If it doesn't help....Setup a break point in the code and DEBUG...

Good luck, BB

Former Member
0 Kudos

Hey can you tell us where is this "ZPUTMNTH" varaible? is it under Calday.

I am asking Because in the error i am seeing only 7 digits but you are passing 8 digits... from the user exit to ZPUTMNTH.

Answers (1)

Answers (1)

Former Member
0 Kudos

Check this link it might give you some more idea.......

Hope this Helps