cancel
Showing results for 
Search instead for 
Did you mean: 

BEx variable validation for I_STEP=3

Former Member
0 Kudos

Hi Experts,

Created a BEx variable "ZSLEVEL" as Customer Exit. Now I want to do some validations on user inputs in selection screen.

I want to restrict user, for entering out of range value for that particular variable.

Example if Variable range is 0-100, and if the input value is less/greater. Popup message should force user to enter correct value.

I tried changing the standard function for Reporting Variables. But my control is not going to the code and nothing is happening on the screen,

Please let me know if I am missing anything

I tried following steps.

CMOD – Transaction.

FUNCTION EXIT_SAPLRRS0_001.

INCLUDE ZXRSRU01 .

CASE I_VNAM. " Variable name

when 'ZSLEVEL'.

If I_STEP = 3.

Code………

End If.

Please help in solving this.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I hope, the system is executing your code. But you can not see the effect if you would have not coded statements like append( or Modify) after your logic.

So check it out.

With rgds,

Anil Kumar Sharma .P

edwin_harpino
Active Contributor
0 Kudos

hi Brinda,

you mean you set or put a break-point and

when debugging, the code not executed ?

the sample code like following,

also try to de-activate project (CMOD) and activate again.

hope this helps.

DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.

IF I_STEP = 3.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.

IF LOC_VAR_RANGE-LOW(4) LE 1998.

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

I_CLASS = 'RSBBS'

I_TYPE = 'I'

I_NUMBER = '000'

I_MSGV1 = 'Year <= 1998 not allowed'.

RAISE no_replacement.

ENDIF.

ENDLOOP.

ENDIF.