Skip to Content
0
Former Member
Sep 12, 2007 at 05:04 AM

Problem in input variable validation

32 Views

Hi,

i have a scenario in which user enters a hierarchy n i have to validate wheather he entered the rite hierarchy or not for which i created one variable on profit center of type hierarchy ready for input mandatory single value and of customer type .

in i customer i rote following code

WHEN 'ZDEL_HIERARCHY' .

IF i_step = 3.

clear l_s_range .

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

if LOC_VAR_RANGE-low EQ 'HIR_OPN8' .

CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

EXPORTING

I_CLASS = 'RSBBS'

I_TYPE = 'S'

I_NUMBER = '000'

I_MSGV1 = ' HIERARCHY NOT ALLOWED'

  • I_MSGV2 =

  • I_MSGV3 =

  • I_MSGV4 =

  • I_INTERRUPT_SEVERITY = 16

  • I_LANGU = SY-LANGU

  • I_SAPGUI_FLAG = ' '

  • I_SUPPRMESS =

EXCEPTIONS

DUMMY = 1

OTHERS = 2

.

  • RAISE no_replacement .

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

endif .

endloop .

endif .

but the problem is wen i saw dis in RSRT it doesnot stop at this variable after setting the break point dat is its not working plz let me know where i m rong

thnx in advance