cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in ZXRSRU01

Former Member
0 Kudos

Hi,

I have a question about user exit make in the ZXRSRU01 include.

I have a text variable in the reports and I need validate this variable, if it does not fulfill some conditions than I need show a error message.

How can I do this?

Thank a lot.

Be good.

View Entire Topic
edwin_harpino
Active Contributor
0 Kudos

hi,

say your text variable is ZVTEXT, you can try

IF I_STEP = 3.

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

IF LOC_VAR_RANGE-LOW = your condition.

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

I_CLASS = 'RSBBS'

I_TYPE = 'I'

I_NUMBER = '000'

I_MSGV1 = 'your message'.

RAISE no_replacement.

ENDIF.

ENDLOOP.

ENDIF.

hope this helps.

Former Member
0 Kudos

Thanks Edwin, It's all I needed.

Be good