Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Performance issue in select and loop

$
0
0

I need to adjust the performance of my code, the execution like it is now takes very long to run.

 

The "bw_table"  contains around 7 fields and 40'000 posts.

And the "result_package" contains 60 fields and appr 2'000'000 posts

 

Is there any better ways to adjust this code below?

 

 

SELECT * FROM bw_table

INTO TABLE it_bw_table

FOR ALL ENTRIES IN Result_package

WHERE cond1 = cond2

 

 

LOOP AT Result_package ASSIGNING <result>

 

LOOP AT it_bw_table INTO ls_bw_table

WHERE cond1 = <result>-cond1

AND cond2 = <result>-cond2

AND cond3 = <result>-cond3

 

IF statement

ELSEIF statement

ENDIF

 

ENDLOOP

ENDLOOP


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>