Quantcast
Channel: SCN : Discussion List - SAP Business Warehouse
Viewing all articles
Browse latest Browse all 6437

ABAP performance tuning the BW Function Module code

$
0
0

Hello there,

I have a Function Module BW extractor defined updating a DSO.

I am not a ABAPer but I need to take care of abap changes in BW in my project. So need your expert advise in fine tuning the code.

This is the select statement which is already in place and the new requirement is for me to lookup on Cust_sales master data and fetch data that has no order block. Therefore I added the Inner Join on cust_sales with where clause ZORDBLK not equal to blank.

 

The change is reviewed OK and but I see the data load is taking longer than before (45mins now and 5 mins before). I have 3 more similar select statements where I have applied the same change Inner Join on cust_sales with where clause ZORDBLK not equal to blank.

 

Any suggestions on the below select statement.

 

 

   SELECT  C~SOLD_TO as Sold_To

              C~SalesOrg

              C~Division

              C~Distr_Chan

              M~EQUIPMENT

              MATERIAL

              ACQ_VALUE as /BIC/ZACQVALUE

              C~/BIC/ZLASTSALE

      FROM /BIC/AZPO_CTDT00 as C

      Inner Join /BIC/AZPO_EQMM00 as M On

          C~Sold_To = M~Sold_To

          And M~VALIDTO > SY-DATUM

          And M~Sold_To <> ''

      Inner Join /BI0/QEQuipment as E On

          M~EQUIPMENT = E~EQUIPMENT

          and E~DateFrom <= SY-DATUM

          and E~DateTo >= SY-DATUM

      Inner Join /BI0/MCUST_SALES as X On

          C~SOLD_TO = X~Cust_Sales

          and C~SalesOrg = X~SalesOrg

          and C~Division = X~Division

          and C~Distr_Chan = X~Distr_Chan

          Into Corresponding Fields of Table itab

      WHERE C~/BIC/ZLASTSALE < lv_Date

            and C~SOLD_TO <> ''

            and X~/BIC/ZORDBLK = ''.










Viewing all articles
Browse latest Browse all 6437

Trending Articles



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