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

Optimize query - EBAN

Former Member
0 Likes
536

Hi friends,

I want to optimize one selection in a table EBAN.

The index z02 support my QUERY.

Fields of the INDEX:

FLIEF Fixed vendor

LFDAT Item delivery date

WERKS Plant

BERID MRP area

LOEKZ Deletion indicator in purchasing document

STATU Processing status of purchase requisition

Today my selection is:

SELECT preis peinh waers menge meins

banfn bnfpo knttp loekz ebeln

ebelp INTO TABLE t_eban

FROM eban

WHERE loekz EQ ' '

AND frgkz >= space

AND werks EQ p_werks

AND statu NE 'B'

AND ( knttp EQ 'F' OR

knttp EQ 'K' )

AND lfdat LE v_high.

I need get the field FLIEF to complete that index and consequently improve my selection. How can I get the field FLIEL using WERKS to search?

      • I tried to use the table LFA1 but the field WERKS is not obligatory.

Please suggestions.

Best regards,

William Rodrigues

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
463

Moderator message - Welcome to SCN. Please see before posting Also, Please read and and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again. Rob

1 REPLY 1
Read only

Former Member
0 Likes
464

Moderator message - Welcome to SCN. Please see before posting Also, Please read and and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again. Rob