‎2007 Nov 01 3:11 PM
Hi ,
if I am writing a slect statement on MARC table and have to keep a condition on field LVORM (Flag Material for Deletion at Plant Level). Which is right code and what is performnace issues.
select * from marc into table it_marc
where matnr = p_matnr and
lvorm eq SPACE.
or
select * from marc into table it_marc
where matnr = p_matnr and
lvorm = ' '.
which one is right ???
‎2007 Nov 01 3:12 PM
Hi,
Madhu, both the select statements are fine. TO reduce the performance you can select fields instead of SELECT * unless you need all the fields from MARA.
Cheers
VJ
‎2007 Nov 01 3:12 PM
Hi,
Madhu, both the select statements are fine. TO reduce the performance you can select fields instead of SELECT * unless you need all the fields from MARA.
Cheers
VJ
‎2007 Nov 01 3:13 PM
‎2007 Nov 01 3:20 PM
Hi Vijayendra Rao / Ferry,
Thank you for quick replies. Closing thread. points rewarded
Regards
Madhu
‎2007 Nov 01 3:18 PM
Hi,
select * from marc into table it_marc
where matnr = p_matnr and
lvorm = ' '.
write it as, I observe there is no blank between two single quotes.
select * from marc into table it_marc
where matnr = p_matnr and
lvorm = ' '.
Bye,
KC