‎2008 May 29 11:54 AM
hi all,
i have a code where i have used CHECK statement within LOOP...ENDLOOP.
the statement is as follows:
CHECK wa_rseg-ebeln IN s_ebeln
but even though this condition is false its going to the next statemtn and executing it without skipping that LOOP pass...
how is it posssible?
please give me the solution....
‎2008 May 29 11:57 AM
Hi,
Use like below..
IF wa_rseg-ebeln IN s_ebeln
ELSE.
continue.
ENDIF.
Rgds,
Bujji
‎2008 May 29 1:13 PM
Hi,
I don't believe that.
Have an intensive look at your check condition: length of fields, leading zeroes, alignment etc. .
regards
Walter Habich
‎2008 May 29 1:16 PM
Hi,
Here Is the Sample Program Using Check statement Hope this Might Help you.
REPORT demo_program_check_1.
NODES: spfli, sflight, sbook.
START-OF-SELECTION.
LOOP AT airp_fr.
CHECK airp_fr-low NE ' '.
WRITE: / 'Selected Aiport-From:', airp_fr-low.
ULINE.
ENDLOOP.
LOOP AT airp_fr.
CHECK airp_to-low NE ' '.
WRITE: / 'Selected Airport-To:', airp_to-low.
ULINE.
ENDLOOP.
GET sflight.
WRITE: / 'Connid:', sflight-connid,
'Carrid:', sflight-carrid,
'Fldate:', sflight-fldate.
Reward If helpfull,
Naresh.
‎2008 May 29 1:17 PM
Good chance s_ebeln contains no values. If that is the case, anything is valid and will pass through