Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Performance issue while fetching AFRU Table

$
0
0

Hi,

The below query's are taking more time for execution, please guide me for performance improvement:

  
if git_mseg_conv is not initial.

open cursor l_cl for


select ltxa1 rueck  rmzhl
from afru

for all entries in git_mseg_conv

where ltxa1 = git_mseg_conv-charg and

werks = p_werks

%_hints oracle 'INDEX("AFRU" "AFRU~MS2")'.

 

if l_cl is not initial.

fetch next cursor l_cl into table git_afru_cast.

close cursor l_cl.

endif.


endif.

----
if not git_aufk is initial.
    select rueck rmzhl ltxa1 aufnr
            from afru
            into table git_afru
            for all entries in git_aufk
            where aufnr = git_aufk-aufnr and
                  ltxa1 in s_charg.    

 

  endif.
  delete git_afru where ltxa1 eq ' '.

 

Thanks.

Viji.

 


Viewing all articles
Browse latest Browse all 8768

Trending Articles



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