Want to Incerese the performence for below code.

Hi everyone.
Please can anyone help me in improving the perfoemence for this below code.
  LOOP AT IT_EBAN INTO WA_EBAN.
MOVE WA_EBAN-TXZ01 TO WA_ZTOBI_PUR_RQ_LD-TXZ01.
                MOVE WA_EBAN-MATKL TO WA_ZTOBI_PUR_RQ_LD-MATKL.
                IF WA_EBAN-BADAT > WA_EBAN-ERDAT.
                  MOVE WA_EBAN-BADAT TO WA_ZTOBI_PUR_RQ_LD-CHANGED_DATE.
                  WA_ZTOBI_PUR_RQ_LD-CHNGIND = LC_I.
                ELSEIF WA_EBAN-BADAT <= WA_EBAN-ERDAT.
                  MOVE WA_EBAN-ERDAT TO WA_ZTOBI_PUR_RQ_LD-CHANGED_DATE.
                  IF WA_EBAN-LOEKZ = SPACE.
                    WA_ZTOBI_PUR_RQ_LD-CHNGIND = LC_U.
                  ELSEIF WA_EBAN-LOEKZ = LC_X.
                    WA_ZTOBI_PUR_RQ_LD-CHNGIND = LC_D.
                  ENDIF.
                ENDIF.
        IF WA_EBAN-BSMNG NE 0.
        SELECT EBELN LOEKZ EBELP FROM EKPO INTO TABLE IT_EKPO WHERE BANFN = WA_EBAN-BANFN AND BNFPO = WA_EBAN-BNFPO.
*If Purchase Orders found
        IF NOT IT_EKPO[] IS INITIAL.
          LOOP AT IT_EKPO INTO WA_EKPO.
            SELECT BEDAT FRGRL PROCSTAT FROM EKKO INTO TABLE IT_EKKO WHERE EBELN = WA_EKPO-EBELN.
            READ TABLE IT_EKKO INTO WA_EKKO INDEX 1.
            IF WA_EKPO-LOEKZ = ''                                 
                ENDloop.
Edited by: kumar.p.D on Jan 15, 2010 6:02 AM
Edited by: kumar.p.D on Jan 15, 2010 6:05 AM
Moderator message - You have violated at least two forum rules. Please see Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and Please Read before Posting in the Performance and Tuning Forum before posting - post locked
Edited by: Rob Burbank on Jan 15, 2010 9:15 AM

In pseudocode:
1.-  Declare it_ekpo as sorted table with key banfn bnfpo, and add the others fields you need.
      Declare it_ekko as sorted table with key ebeln, and add the others fields you need.
      Declare an internal table like it_eban, ie: it_eban2.
      Declare field-symbol like line of it_eban.
      Declare field-symbol like line ot it_ekpo and other like line it_ekko.
  2.-   it_eban2[]= it_eban[].
        delete it_eban2 where bsmng = 0.
        use it_eban2 in select for all entries to ekpo filling it_ekpo.
        use it_ekpo in select for all entries to ekko.
        free it_eban2.
   3.-  sort it_eban by banfn and bnfpo.
         loop at it_eban assigning the field-symbol instead of into.
         if bsmng <> 0.
          loop it_ekpo assigning field symbol where banfn and bnfpo.
             at new ebeln.
                  read table it_ekko assigning field symbol with key ebeln.
             endat
          endloop.
         endif.
         endloop.
  I hope it works  ...
Edited by: Diego Alvarez on Jan 15, 2010 10:21 AM
Edited by: Diego Alvarez on Jan 15, 2010 10:27 AM
Edited by: Diego Alvarez on Jan 15, 2010 10:30 AM

Similar Messages

  • I want to upgrade the memory for my iMac, but on the Apple store there is no memory available for any of the iMac models. Mine has an Intel Core 2 Duo processor with 2.4 GHz purchased about 5 years ago.

    I want to upgrade the memory for my iMac, but there is no memory available for any of the iMac models on the Apple store. I got an Intel Core 2 Duo processor with 2.4 GHz. I purchased it over 5 years ago, and the tecnical support expired. Can anybody tell me where I can purchase additional memory?

    Check the link below.
    http://eshop.macsales.com/shop/apple/memory/iMac

  • With my subscription creative cloud, I can accommodate 5 sites. It's not enough. I want to know the rates for more dh'ébergements. I can not find them. thank you

    with my subscription creative cloud, I can accommodate 5 sites. It's not enough. I want to know the rates for more dh'ébergements. I can not find them. thank you

    The pricing for business catalyst sites can be found on the below link...
    US Monthly Pricing | Adobe Business Catalyst

  • In po,every time i want to add the message for print out.

    in po,every time i want to add the message for print out.
    is there any permanent solution for above issues ?

    Hi,
    1) use transaction nace
    2)Select application EF  and go to condition records
    3) o/p type is neu , select the same and double click on it .
    4) select paricular condition table.
    5) maintain condition records , means for particular combination NEU should appear automatically in PO print.

  • I don't want to submit a #@$%^& question! I just want to search the forum for answered questions.

    I don't want to submit a #@$%^& question!
    I just want to search the forum for answered questions.
    Why is Apple such a freaking control freak?
    Hey Apple—quit fixing s**t that isn't broken!

    You could use google.  If you want to only search these discussions forums use the following syntax in a google search:
    whatever you are searching for site:discussions.apple.com
    Update:
    Why is this questio/discussion in Cinema Displays when it should have been in Using Apple Support Communities?

  • I want to bye the ansurrance for my ipadmini

    i want to buy the ansurrance for my ipadmini what can i do??

    What insurance?  If in the USA you can buy AppleCare+, which includes an accidental damage claim feature, but otherwise is just an extended warranty.  AppleCare+ does not cover loss or theft.  Also, AppleCare+ must be purchased at the same time as the device, or you can add it within 30days but only after taking your device to Apple for an inspection first.
    Regular AppleCare (in countries where AppleCare+ is not available) is an extended warranty - it is NOT insurance.
    If you want full coverage insurance - accidental damage AND loss and theft protection, you will need to find a private company offering it.  Apple offers nothing like that themselves.

  • I'm using Premiere Elements 11, which automatically opens in a project window for HD. I want to reset the default for SD. How can I reset the defaul for opening a project?

    I'm using Premiere Elements 11, which automatically opens in a project window for HD. I want to reset the default for SD. How can I reset the default for opening a project?

    scottypet
    For Premiere Elements 11 and 12, you cannot change its default project preset from NTSC AVCHD Full HD1080i30 or its PAL counterpart PAL AVCHD Full HD1080i25 to something else.
    For each project, you can set the project preset manually if you do not want the program to take over setting the project preset based
    on the properties of the first drag to the Timeline.
    To set the project preset manually, open the project to the Expert workspace, go to File Menu/New/Project and Change Settings.
    In the Change Settings area, change the project preset. Before you exit that area, be sure to have a check mark next to "Force Selected Project Setting on This Project" in the new project dialog.
    Then you import your source media, using the appropriate Add Media choice.
    ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
    If you want a version of Premiere Elements that uses the default project preset of NTSC DV Standard or its PAL counterpart PAL DV Standard, then you need to look to a version of Premiere Elements earlier than 11.
    Please let me know if you have any further questions on this or need clarification.
    Thank you.
    ATR

  • I am trying to decide what gig i need. I want to use the Ipad for my books for college.

    I need to know what gig to get... I want to use the ipad for my college textbooks to take them to class on it. How many etextbooks would the ipad hold?

    Caveat to the above: books that have a lot of pictures or graphics can be quite large; many megabytes. If you can find out from your college program what books you'll need, check to see if 1) they're available; many textbook publishers have yet to provide textbooks as e-books and 2) if they are available (from one of the e-book providers; you can use Kindle, Nook and Google books on your iPad in addition to Apple's iBooks) how large they are. Then you can add the sizes up, figure out what else you might want on your iPad (movies, for instance, take up a lot of space) and determine what capacity you'll need. When it doubt, buy more capacity than you think you'll need; an iPad can't be expanded later if you run short.
    Regards.

  • I want to clear the values for the controls

    Hi all,
            After Adding Process, i want to clear the values for the controls in the form.
    Any one help me.

    If you use 2005, you can use the Formdata Event and catch the FORM_DATA_ADD event... In there you can clear the data

  • I want to enter the password for a secure WIFI network on several iphones.  If I do this, can the end users somehow extract the ip address and password for the wifi network from the iphone and use it from a pc (at home, for example)?

    I want to enter the password for a secured wifi network on several iphones.  If I do this, is it possible for the end users to somehow extract the ip address and password information and use it from a pc/laptop/other mobile device.  For security reasons, I don't want them to be able to to this.
    Please advise,
    Thanks.

    If you look at the top left of your screen you will either see a 3G (or 4G if you have AT&T) or you will see the wi-fi symbol.  If you don't see the wi-fi symbol you are connecting to Gmail through your cellular data plan, not via wi-fi.
    To answer your question, it doesn't happen often but when it does the steps I mentioned above will normally resolve it.  Hopefully you won't have any further problem with this.

  • HT4623 Recently I want to upgrade the IOS for my iphone 4 with my friend's help. Unfortunately, we are unable to do it. Don't understand why?

    Recently I wanted to upgrade the IOS for my iphone 4 following the guidelines closely with my friend's help. Unfortunately, we are unable to do so. I felt disappointed as I am looking forward to installing Apps, WeChat, Whats App, etc. I have bought it 2 years ago. I have read the FAQ, mine is the same as many other complaints as in the Settings-General, no "Software Update" appear but we have follow step by step but failed to do so.
    My friend suggested me to visit Apple Store in Kuala Lumpur, Malaysia. I just wonder if this problem can be solved.  Kindly advise.
    Thanking you in advance.
    Regards/Michelle Gee

    You are following the wrong guidelines. The Software Update option was not introduced until a later version. You need to connect to iTunes to update if you currently have iOS 4 or earlier.
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/updating- ios#itunes

  • I want to know the website for downloading Jbuilder7,Jdeveloper and so on

    I want to know the website for downloading Jbuilder7 and its Mobilset,Jdeveloper and Rational Rose.Thank you for your help

    stfw

  • I WANT TO GET THE APP FOR TOMTOM BUT WILL IT WOR TO FULL CAPACITY ON MY IPOD TOUCH IF THERE IS NO GPS

    i want to download the app for tomtom om my ipod touch but will it work as there is no gps?? thanks

    The description says it requires the TomTom car kit.  It needs GPS to work and the iPod does not have GPS.

  • I want to set the alarm for weekdays/weekend

    I want to set the alarm for weekdays/weekend how I can do that on my iphone 3Gs, I Google as well but unable to find and way to do this. I do not want to set the alarm every day. It really very hard that I set it every time.
    If any know any other application that I can have for alarm. iphone built-in alarm system is carp.

    Yes, but he doesn't say why it is, unsuitable, for his needs. From what he says, it is perfect for his needs - you can set it for just one day, or any subset of weekdays, you can set it once, or repeat any number of times, or indefinately, it does not have to be the active app to work, and it is free and already included on the iPhone.
    Simply set a weekday alarm, set it to repeat M/T/W/T/F, set a weekend alarm to repeat every S/S, and that's it - unless I'm completely misreading the first part of the post.
    Given what was posted as desired for the app's function, simple saying the built in clock's alarm is "carp" really doesn't add anything, since by all accounts it does actually do everything that the first part of the post wants.
    Unless he wants an alarm function that automagically somehow knows which days to chime and which days to not?

  • I ordered mac OS and I got the email for License and I didnt get the attachement for content code. Please help me getting the content code.

    I ordered mac OS and I got the email for License and I didnt get the attachement for content code. Please help me getting the content code.

    It's a two email process, one email has a locked pdf with the redemption code. The second email has the password to unlock the pdf. They come separetly, so you may have to wait for the 2nd to arrive.

Maybe you are looking for

  • File-XI-File

    One more on File-XI-File scenario... Unable to pick the sender file test.dat located on /oracle/XI3 folder. Sender comm channel created as: NFS. Source Dir: /oracle/XI3 File: test.dat Poll int: 5 secs Proc mode: Delete File type: Text I already have

  • The panel with White Balance, contrast, exposure, whites, blacks, etc. has disappeared from my Develop screen

    The panel with White Balance, Exposure, Contrast, Tone, Whites, Blacks, etc has disappeared from my Develop screen.  The control panel on the right side now starts with Tone Curve and I can't find a way to revert back to the screen with the other adj

  • Can we install Web Controls 2.1 on IIS 6.0?

    We wish to install Web Controls 2.1 on some servers running Windows Server 2003 (in a clustered environment). This version of Windows ships with IIS 6.0. We note that on page 1 of the "Installation Guide for Plumtree EDK Web Controls 2.1" document, i

  • Prime 2.0 alarms for unmanaged interfaces

    PI 2.0 is working great for me apart from 1 thing....every hour I get alarms for all the down interfaces I am not interested in? These are from the pollen as all traps are disabled on the devices. The monitoring templates have been un deployed then d

  • Problem with SQL query generated by setString

    Using Creator 2EA2 I have a rowset based on this query (it's actually only the last bit of it with the third parameter that is a problem): SELECT director.director_id,  director.name FROM director, director_last_modified WHERE name REGEXP '^[A-C]'  A