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

Re: Performance issue in select and loop

$
0
0

LOOP AT Result_package ASSIGNING <result>

 

 

SORT it_bw_table BY cond1 cond2 cond3.

READ TABLE it_bw_table WITH KEY cond1 = <result>-cond1

                                cond2 = <result>-cond2

                                cond3 = <result>-cond3 BINARY SEARCH TRANSPORTING NO FIELDS.

IF sy-subrc IS INITIAL.

lv_tabix = sy-tabix.

ELSE.

CONTINUE.

ENDIF.

 

LOOP AT it_bw_table INTO ls_bw_table FROM lv_tabix.

 

 

IF ls_bw_table-cond1 NE <result>-cond1

OR ls_bw_table-cond2 NE <result>-cond2

OR ls_bw_table-cond3 NE <result>-cond3.

EXIT.

ENDIF.

 

 

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>