Can you please help me to improve the performence of this query

Select All Invoices cleared between date range
  SELECT bsak~prctr AS prfcntco
    cepct~ktext AS prfcnttx
    bsak~lifnr AS vendcode
    lfa1~name1 AS vendname
    bsak~bukrs AS compcode
    t001~butxt AS compname
    bsak~zterm AS paytrmco
    tvzbt~vtext AS paytrmna
    bsak~waers AS invcurre
    bsak~zbd1t AS paydays1
    bsak~belnr AS invnumbe
    bsak~buzei AS invlinnu
    bsak~wrbtr AS invamoun
    bsak~budat AS invpstda
    bsak~zfbdt AS invdueda
    bsak~augdt AS invpayda
    bsak~gjahr AS invfiscy
    bsak~zlspr AS zlspr
    t001~land1 AS land1
    bsak~projk AS contract
    rbkp~xblnr AS invsupnu
    rbkp~bldat AS creadate
    rbkp~cpudt AS cpudt
  INTO CORRESPONDING FIELDS OF TABLE list_aux
  FROM ( ( ( ( ( bsak INNER JOIN rbkp ON bsakbelnr = rbkpbelnr )
                 LEFT OUTER JOIN t001 ON bsakbukrs = t001bukrs )
                 LEFT OUTER JOIN lfa1 ON bsaklifnr = lfa1lifnr )
                 LEFT OUTER JOIN cepct ON bsakprctr = cepctprctr
                                      AND cepct~spras = sy-langu )
                 LEFT OUTER JOIN tvzbt ON bsakzterm = tvzbtzterm
                                      AND tvzbt~spras = sy-langu )
  WHERE bsak~bukrs IN company AND
        bsak~lifnr IN vendor AND
        bsak~zterm IN payterm AND
        bsak~augdt IN daterang AND
        bsak~projk IN contract.
  SELECT * FROM   rseg
           INTO   TABLE it_rseg
           FOR ALL ENTRIES IN list_aux
           WHERE  belnr = list_aux-invnumbe
           AND    buzei = list_aux-invlinnu
           AND    gjahr = list_aux-invfiscy.
  SORT it_rseg BY belnr buzei gjahr ASCENDING.

Moderator message - Welcome to SCN
Please see Please Read before Posting in the Performance and Tuning Forum before posting in this forum. there are some things you need to take care of first. - post locked
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob

Similar Messages

  • Need driver for canon mg 5250 as scanner is not working with version 10.7. Can you please help me to find the driver so scanner works with WIFI?

    need driver for canon mg 5250 as scanner is not working with version 10.7. Lion. Can you please help me to find the driver so scanner works with WIFI?

    Try with the latest Apple driver package for Canon (released 15th Feb):
    http://support.apple.com/kb/DL899
    This solved my problem with the printing.

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • I HAVE TRIED TO PAY MY CREDIT CARD ONLINE BUT WHEN I CLICKED ON CONTINUE I GOT A QUICK FLASH ON MY SCREEN SAYING FIREFOX HAS BLOCKED A POP U,CAN YOU PLEASE HELP ME FOR IN THE FUTURE.

    i tried paying by the same means last time and it did the same again,but managed a payment then but today i had to telephone them,but need to pay online in future could you please help me sort this out,thank you m j wilson.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • HT204088 Hello. I can't log into iTunes Store. I made a purchase this morning for gold in csr classics and it charged my card twice. Can you please help me either get the gold for the game or recredit it back to my card.

    Hello there
           We also looked at the account for other purchases over a year ago or less and they had charged my card twice for the same purchase. They said they would let me know and I haven't received an email to confirm. It did it today also I purchased 9.99 of gold on the csr classic racing and it didn't give me the gold so I did it again and it gave me the gold. When we called our card company it was charged twice. And help would be great. Thank you.

    If you haven't received the item, or if you've been overcharged, then try the 'report a problem' page to contact iTunes Support (these are user-to-user forums) : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Please help me in finding the solution for this query

    Hi Experts,
    How could i print column name's second word in next line
    suppose am taking ename alias as "employee name"
    i want to print the second word "name" in next line
    like
    "Employee
    Name"
    Whats the way of writing this query
    Please help me out
    Thanks in Advance

    Hi,
    914618 wrote:
    WITH mydata AS
    SELECT 1 emp_id, 'John Smith' emp_name FROM DUAL UNION ALL
    SELECT 2 emp_id, 'Steve Jobs' emp_name FROM DUAL UNION ALL
    SELECT 3 emp_id, 'Larry Allison' emp_name FROM DUAL
    SELECT emp_id, emp_name
    FROM mydata;
    after executing the above query the o/p I am getting is in the normal format like EMP_ID and EMP_NAME
    not according to my requirement like
    Emp Emp
    Id NameWhat are the results you reaally want? Do you want this?
    `   EMP_ID SPLIT_NAME
             1 John
               Smith
             2 Steve
               Jobs
             3 Larry
               AllisonIf so:
    SELECT  emp_id
    ,      REPLACE (emp_name, ' ', CHR (10))     AS split_name
    FROM      mydata
    ;The results above are 3 rows, not 6.
    What results would you want if emp_name contained 3 or more words? For example, if you add this to the sample data:
    SELECT 9 emp_id, 'Aung San Suu Kyi' emp_name FROM DUAL UNION ALL

  • Can you please help me out with the answers

    u2022     Created a report to display details of the Open Picking Slip for a given Shipping Point and Delivery Date.
    u2022     Developed a report program for stock details in various storage locations. Which displays material number, material group, material description, quantity and plat based on selection screen fields material number and plant number. 
    u2022     Created a ALV to display the customer arrears report. 
    u2022     Developed a BDC program to upload Customer master data from legacy to sap system using Call transaction method.
    u2022     Modification of Standard Sap script layout set for Sales Order output and printed SAP Scripts using print programs.
    u2022     Using SAP Standard Report program RSTXLDMC to upload logo and display it as Standard text

    Mazhar,
    Maintain the hierarchy for the object and in the Hierarchy display properties of that info object you can maintain the levels.
    If the values are appearing in Unassigned then you need to check out the hierarchy definition once. Please check out that and revert back if you have the same issue repeats.
    Hope this helps...
    Regards
    Gattu

  • I keep getting this pop up. This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location? Can you please help me figure out how to get this to stop!

    This pop up has been occurring about once a minute when I am on certain sites.
    This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
    How do I get it to stop?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History ->'' Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies & Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> Firefox will: select "Use custom settings for history" -> REMOVE Checkmark from "Permanent Private Browsing mode" -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Please help me to find the problem in this Query

    hi
    This is my xml structure,
    <?xml version="1.0">
    <rss version ="2.0">
    <channel>
    <Lgs>
    <Lg>
         <Fid>16447</Fid>
    <Fname>Sam</Fname>
    </Lg>
    </Lgs>
    <Lgs>
    <Lg>
         <Fid>206</Fid>
    <Fname>David</Fname>
    </Lg>
    </Lgs>
    <Lgs>
    </channel>
    </rss>
    I need to limit the results ie, at a time retrieve only "10" results , also that should be ordered by node "Fid".
    I am using PHP-API
    and following query is i have used...
    $query = "let $hits := (for $hit in collection('gview.dbxml')/rss/channel/Lgs/Lg order by $hit/Fid return $hit) return subsequence($hits, 1, 10)";
    $results = $mgr->query($query);
    getting the error,
    Fatal error: Uncaught exception 'xmlexception' with message 'Error: syntax error, unexpected :=, expecting <end of file> [err:XPST0003], <query>:1:8' in /usr/local/apache/htdocs/add_loc_file.php:99 Stack trace: #0 /usr/local/apache/htdocs/add_loc_file.php(99): xmlmanager->query('let := (for i...') #1 {main} thrown
    Message was edited by:
    user647571

    The "$hits" in your string is being interpreted by PHP as a variable reference and substituted out before DB XML gets the query.
    John

  • I payed for my creative cloud membership 9.99 / monthe. bought it this morning. I was able to download Lr, but not Ps. I am wondering why is asking me to pay antoher 9.99 if I got the student deal. Can you please help. thank you.

    I payed for my creative cloud membership at 9.99/mo. I got it this morning. I was able to download Lr, but not able to download Ps. is asking me to pay again. Why is that, because I got the student packet deal. Can you please help.

    Mariacazarez what is the exact error message you receive when you try to download and install Photoshop?  For information on how to install the Adobe Creative applications included with your membership please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Highlighter has not been working in Adobe reader in my samsung Galaxy Tab 3.  Can you please help?

    Highlighter has not been working in Adobe reader in my samsung Galaxy Tab 3.  Can you please help?

    Update to comment - I found this thread that is related:
    Did Adobe Acrobat Reader revert to this bad and nonintuitive way to highlight text? The highlight approach described in this thread - to select text with handles - does work, but it is truly slow and clumsy.
    https://forums.adobe.com/thread/1538670

  • Unable to sync iMac address book with iPad. Can you please help?

    Unable to sync iMac address book with iPad. Can you please help?

    I have the same problem as Sheilaza but haven't been able to solve it using the advice offered.  The same problem applies to my Calendars. When I look at my iPad settings in iTunes, it says:
    Sync Contacts
    Your contacts are being synced with your iPad over the air from iCloud.
    Over-the-air sync settings can be changed on your iPad.
    and the same for Calendars.
    On the iPad, in iCloud settings, I have checked 'Contacts' and 'Calendars' as 'ON' but the Calendar remains blank and the Contacts are a very old version that was somehow created when I set up the iPad initially.
    Any ideas?
    Thanks.

  • HT4528 My IPhone Bugged out/It is currently in the reset mode. I need to exchange all of my contacts from my Yahoo acct. to my new IPHONE. Can you please help me?

    Hello ,
    I purchased my IPHONE about 2 months ago. I am visiting family in DE & this tuesday it starting to go off & on by itself. Then the icons looked like they were floating . Then I could not call or text . The SIRI device would not work. Then it would shut down then the apple icon would reappear. I took it to a verizon dealer in Rehoboth DE & they said it BUGGED OUT/It is in a RESTORE MODE. It will not turn on. We could not transfer anny of my pics or contacts. I never even had a chance to back up the memory on ITUNES.
    The tech @ Verizon said to contact APPLE to trouble shoot and try and transfer the contacts from my yahoo acct.
    Can you please help?
    Gina

    set up your yahoo account in mail, contacts, calendars as an Exchange Account and you should be able to get your contacts from Yahoo from there.

  • My ipod touch is stuck on the 4.2.1 software, its a 3rd gen as well i was just wondering why i can not get the lastest update can you please help me with this issue

    i have been having an issue with updating my ipod touch for some time now and i can not seem to get it to update to the lastest update. it is stuck on 4.2.1 software and i can not update it to 4.3 or any other ios software update. can you please help me to solve this issue.

    It sounds like you actually have a 2G iPod Touch which can only go as high as iOS 4.2.1.  If it's an 8 GB iPod Touch it's definitely a 2G iPod Touch as there was never such a thing as a 3G 8 GB iPod Touch. See this article to help verify what generation iPod Touch you have.
    Identifying iPod models
    B-rock

  • I entered new fields in a form that was created last year to update it.  However, now when I view the responses, they are listed as Column 1, Column 5, etc.  It doesn't show a label for the actual field when I view the responses.  Can you please help?

    I entered new fields in a form that was created last year to update it.  However, now when I view the responses, the headings are listed as Column 1, Column 5, etc. rather than the name of the heading.  Can you please help?

    Hi Mike,
    CRSE is an OEM Product and for use with a custom application they have written. Unfortunately we don't their reports or how they are connecting, it would appear they were originally built off a SQL and then set to a Dataset in the app or they could be adding the data source at runtime. Lots of variations and without access to the source code to see what they are doing not much we can help you with.
    You need to contact the OEM Partner for help in resolving this and find out what you can and need to do to update your SP and work with their canned reports,
    Thank you
    Don

Maybe you are looking for

  • Syncing Apps from iPhone to iTunes with folder grouping

    Hi, I have close to 200 apps on my iPhone structured into approx 50 folders. These apps are downloaded firectly from iTunes (via wifi). Now, i want to sync them to my PC via iTunes. I used the option "Transfer purchases" for that. But the folder are

  • Runtime Errors in Portal

    Hi, When I click on the menu in Portal (assume it as material creation), it display a screen with some runtime errors. - Unable to start the application. Contact help desk # xxxxxxxxxxxxx . My question is from where do we get these runtime errors. Wh

  • Not able to install Oracle 11g R2 client in windows 8 machine

    Oracle universal installer window is not coming up in windows 8 machine, if any one installed Oracle 11G R2 client in windows 8. Please share those steps and if you have latest 11G client share that download link. Thanks in advance. Edited by: 969434

  • Possible to manage Windows processes using Java

    Hi, I'm looking to develop a standalone application that will be able to kill certain Windows processes...is such a thing possible using Java? If not, could someone point me in the direction of a technology that can achieve this? Thanks

  • How to Get the Context values

    Hi Please let me know the code to get the view context values. regards mmukesh