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

Re: Improve Query related to Sales Order - Delivery

$
0
0

Hi, I've modified the datas and start of selection as follow, and the performance is better: DATA: BEGIN OF ODVCON occurs 0,  VBELN like VBAK-VBELN,  POSNR like VBAP-POSNR,  EDATU like VBEP-EDATU,  VBELN2 like VBFA-VBELN, END OF ODVCON. SELECT A~VBELN B~POSNR C~EDATU D~VBELN INTO TABLE ODVCON FROM vbak as A INNER JOIN VBAP as B ON A~VBELN = B~VBELN INNER JOIN VBEP as C ON B~VBELN = C~VBELN                              AND B~POSNR = C~POSNR                              AND C~ETENR = '1' LEFT OUTER JOIN VBFA as D ON B~VBELN = D~VBELV                        AND B~POSNR = D~POSNV                    AND D~VBTYP_N = 'J'. How I can insert this other codes to reduce the datas of the internal table? *where A~VKORG = ORG *and A~AUDAT between PIN and PFI *and A~VBTYP = 'C' *and A~AUART = TDOC. Thanks and best regards. Antonio


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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