04-29-2009 1:54 PM
I want to check if any field of the internal table itab(of my code) is containing the value of ANLA-ANLN1 then show the message 'correct input'
else show the message 'wrong input'
Kindly guide.
04-29-2009 1:58 PM
04-29-2009 1:58 PM
HI,
LOOP AT ITAB WHERE ANLN1 EQ ANLA-ANLN1.
EXIT.
ENDIF.
IF SY-SUBRC EQ 0.
" 'correct input'
ElSE.
" 'wrong input'
ENDIF.
04-29-2009 2:01 PM
Hi,
Loop at itab into wa_itab.
SEARCH wa_itab for 'ANLA-A1'.
if sy-subrc eq 0.
message 'correct input'.
exit.
else.
message 'wrong input'.
exit.
endif.
Endloop.
Regards
Krishna
Edited by: Krishna Gowrneni on Apr 29, 2009 6:32 PM