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