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

Performance tuning..

Former Member
0 Likes
387

SELECT amatnr ameins INTO CORRESPONDING FIELDS OF TABLE maratab

FROM mara AS a INNER JOIN marc AS b ON amatnr = bmatnr

WHERE b~werks = werks.

SELECT amatnr aprueflos a~ebeln INTO TABLE it_lot

FROM qals AS a INNER JOIN qave AS b

ON aprueflos = bprueflos

FOR ALL ENTRIES IN maratab

WHERE amatnr = maratab-matnr AND bvaedatum IN ud_date

AND astat35 = 'X' AND almengezub = 0.

What all can be done apart from creating index to improve the performance tuning?

2 REPLIES 2
Read only

Former Member
0 Likes
341

SELECT amatnr ameins INTO CORRESPONDING FIELDS OF TABLE maratab

FROM mara AS a INNER JOIN marc AS b ON amatnr = bmatnr

WHERE b~werks = werks.

sort maratab.

delete adjascent duplicates from maratab.

if maratab is not initial

SELECT amatnr aprueflos a~ebeln INTO TABLE it_lot

FROM qals AS a INNER JOIN qave AS b

ON aprueflos = bprueflos

FOR ALL ENTRIES IN maratab

WHERE amatnr = maratab-matnr AND bvaedatum IN ud_date

AND astat35 = 'X' AND almengezub = 0.

endif.

In this way we can reduce the time for the second query.

Regards,

Nikhil

Read only

Former Member
0 Likes
341

Moderator message - Please see 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.- post locked Rob