Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Please let me know which code is right ??

Former Member
0 Likes
723

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 ???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
686

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

4 REPLIES 4
Read only

Former Member
0 Likes
687

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

Read only

Former Member
0 Likes
686

Hi,

Both codes are correct.

Regards,

Ferry Lianto

Read only

0 Likes
686

Hi Vijayendra Rao / Ferry,

Thank you for quick replies. Closing thread. points rewarded

Regards

Madhu

Read only

Former Member
0 Likes
686

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