Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8990

Re: Performance issue with a zreport

$
0
0

Hi Shweta,

as far as i concern, firstly as you have stated that, you are fetching vendor details from lfb1 for company code wise, and fetching vendor details from lfa1 generally.

And now we have used join, so you are getting these two sets of data.

Please do this

After selecting through inner join, just sort your internal table by lifnr, and delete adjacent

duplicates from internal table based on lifnr. Write your code logic as shown as below and let me know if you have any other issues left.

 

SELECT k~bukrs

          l~lifnr

          name1

          ort01

          pstlz

          stras

          adrnr

          telf1

          telf2

          telfx

          ktokk

          INTO TABLE it_lfa1

          FROM LFA1 AS L INNER JOIN LFB1 AS K

          ON L~LIFNR EQ K~LIFNR

          WHERE K~bukrs IN S_BUKRS

          AND L~LIFNR IN S_LIFNR.

 

SORT IT_LFA1[] BY LIFNR.

DELETE ADJACENT DUPLICATES FROM IT_LFA1[] COMPARING LIFNR.


Viewing all articles
Browse latest Browse all 8990

Trending Articles



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