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 ANALYSE

Former Member
0 Likes
443

hi experts,

I am doing a task which need the following specification.

SELECTION SCREEN CONTAINS :

SETTLEMENT PERIOD : <PERIO>

FISCAL YEAR : <GJAHR>

PLANT : <WERKS>

selection of KOKRS BELNR BUZEI PERIO WTGBTR OBJNR WERKS KSTAR GJAHR FROM COEP(BASED ON SELECTION SCREEN ELEMENT) AND

AUFNR KDAUF OBJNR KOKRS FROM AUFK.

JOINING CONDITION : KOKRS AND OBJNR.

I USED INDIVIDULAL SELECT QUERY:

QUERY 1: FETECHING DATA FROM COEP BASED ON SELECTION SCREEN DATA.

QUERY 2 : FECTECH DATA FROM AUFK FOR ALL ENTRIES IN COEP (FROM QUERY 1).

BUT THE PERFORMANCE IS VERY POOR. PLS GIVE ME A IDEA TO IMPROVE THE PERFORMANCE.

IF I CHOOSE INNERJOIN QUERY IT'S ALSO VERY POOR. PLS GIVE ME IDEA.

Thanks ya.

2 REPLIES 2
Read only

Azeemquadri
Contributor
0 Likes
404

what wrong with the performance?

Read only

Former Member
0 Likes
404

Hi

Replace your INNER JOIN with FOR ALL ENTRIES...

First of all select AUFNR KDAUF OBJNR KOKRS from AUFK into itab1.

Then you can write like...

select KOKRS BELNR BUZEI PERIO WTGBTR OBJNR WERKS KSTAR GJAHR FROM fro all entries in itab1

where kokrs = itab1-kokrs and

objnr = itab1-objnr.

<also do here based on screen-element>....

Also check your table indexes and change your select query according to tah.

Goto table click on indexes you can see what are all the indexes are there.. Try to change the code according to that also...

Hope this will help you..

Reward All Helpfull answers.................