Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Optimizer Consult

$
0
0

Hi friends, i hope you can help me  to improve  this doubt

 

CHECK NOT r_objnr[] IS INITIAL.
SELECT cobk~budat coep~objnr coep~wkgbtr coep~mbgbtr coep~meinb
          coep~kstar coep~parob
     INTO CORRESPONDING FIELDS OF TABLE ti_cobk_coep3
     FROM coep
     INNER JOIN cobk ON coep~mandt = cobk~mandt AND coep~kokrs = cobk~kokrs AND coep~belnr = cobk~belnr
    WHERE cobk~budat   IN so_budat AND
          coep~kokrs   EQ 'GAND' AND
          coep~wrttp   EQ '04'    AND
          coep~lednr   EQ '00'    AND
          coep~objnr   IN r_objnr AND
          coep~vrgng   NE 'KOAO'.

 


It takes  some  time to execute, HowI canoptimize the query?, you can use  functions or bapis.

 

I am new tothe forum and inabap, if you have any information to improve this report i'll apreciate it.

 

 


Best regards

 


 

Message was edited by: Matthew Billingham - changed the font as suggested below!


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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