Quantcast
Channel: SCN : Unanswered Discussions - ABAP Testing and Troubleshooting
Viewing all articles
Browse latest Browse all 430

Optimize inner join code on LTAP and LTAK

$
0
0

Hallo.

 

I'm a newbie on ABAP.

 

I note a bad performance on the code:

  SELECT COUNT(*)

    FROM ltap AS a

    INNER JOIN ltak AS b

    ON a~lgnum EQ b~lgnum

    AND a~tanum EQ b~tanum

    INTO row_conf

    WHERE a~lgnum EQ p_mag

      AND a~pquit NE 'X'

      AND a~nltyp EQ '916'

      AND b~bdatu LE p_day.

 

 

How could I optimize it?

 

Could you give some suggest, please?

 

Thanks a lot for your help.

 

Mario


Viewing all articles
Browse latest Browse all 430

Trending Articles



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