Hi All,
Please let me know is there anything wrong with following if statement.
LOOP AT t_bsid_zpp_zpr.
IF t_bsid_zpp_zpr-zterm = 'ZPP '.
IF ( t_bsid_zpp_zpr-blart = 'SS' OR t_bsid_zpp_zpr-blart = 'SR' ).
t_bsid = t_bsid_zpp_zpr.
APPEND t_bsid.
ENDIF.
ENDIF.
ENDLOOP.
IF NOT t_bsid[] IS INITIAL.
record-blart_002 = 'P7'.
PERFORM sub_process_records.
ENDIF.
Regards,
Sai Prasad
Hi,
nothing but if u r facing any problem on that then try like this
LOOP AT t_bsid_zpp_zpr.
IF ( t_bsid_zpp_zpr-zterm = 'ZPP ' ) AND
( t_bsid_zpp_zpr-blart = 'SS' ) OR
( t_bsid_zpp_zpr-blart = 'SR' ).
t_bsid = t_bsid_zpp_zpr.
APPEND t_bsid.
ENDIF.
ENDLOOP.
IF NOT t_bsid[] IS INITIAL.
record-blart_002 = 'P7'.
PERFORM sub_process_records.
ENDIF.
Regards,
Prashant
Absolutely correct. Maybe something's wrong in your form sub_process_records?
Regards,
John.
"Please let me know is there anything wrong with following if statement."
syntactically it is ok, the question is if you get, what you expect...
however you can make simplier:
LOOP AT t_bsid_zpp_zpr WHERE zterm = 'ZPP ' AND
( blart = 'SS' OR blart = 'SR' ).
t_bsid = t_bsid_zpp_zpr.
APPEND t_bsid.
ENDLOOP.
ec
Add a comment