BKPF 6000 records  and bsid 300,000 records

Which one is better ?
1.
LOOP  bkpf (6000 records )
         READ  bsid (300,000 records )
         READ  .....
         READ  .....
         READ  .....
         READ  .....
   ENDLOOP.
and the other thing that i concern in (1.) is  perhap i have to use
LOOP  bkpf (6000 records )
         loop bsid (300,000 records ) where .....
   ENDLOOP.
2.
LOOP bsid(300,000 records)
       READ bkpf(300,000 records )
   ENDLOOP.
Now in my program i use (2.) but performance is quite bad. it's time out (1 hour) on PRD
actually i have many internal tables to read not only bkpf but it's not my concern and all of READ i SORT and use BINARY SEARCH
Thank you in advance

Try the below code.
sort it_bsid by bukrs belnr gjahr.
loop at it_bkpf.
  clear: lv_indx.
  read table it_bsid with key bukrs = it_bkpf-rbukrs
                                         belnr = it_bkpf-belnr
                                         gjahr = it_bkpf-gjhar
                                         binary search.
  if sy-subrc = 0.
    lv_indx = sy-tabix.
    loop at it_bsid from lv_indx.
      if it_bsid-bukrs = it_bkpf-bukrs and
         it_bsid-belnr = it_bkpf-belnr and
         it_bsid-gjahr = it_bkpf-gjahr.
        << read other internal tables and do the necessary processing>>
      else.
         clear: lv_indx.
         exit.
      endif.
    endloop.
  endif.
endloop.
Hope this helps your time out issue.
Thanks,
Balaji

Similar Messages

  • Script logic record more than 300,000 record

    Hi Expert,
    When I run my logic I have error in my formula log:
    (More than 300,000 records. Details are not being logged)
    Ignoring Status
    Posting ok
    I check my script it pull out total 422076 records.
    Is it meaning I cannot More than 300,000 records??
    Is there any where I can set MAX records I can generate for my single script to run??
    Thanks..

    You should use
    *XDIM_MAXMEMBERS dimension = numberOfMembers to be processed at a time
    For example
    *XDIM_MAXMEMBERS Entity = 50
    Figure out wich dimension has the most members, and use it, this sections you script logic.
    I hope that helps
    Leandro Brasil

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • Help! I only hear clean electric guitar while recording, and amp/effects after recording!

    I have my electric guitar plugged into an Apogee Duet (driver is up to date with Yosemite).  After track is setup with effects, in an audio track or in a guitar preset track (I tried both), I can play and hear the guitar clean tones only without the effects I have put on the track, even though I have chosen guitar effects, like amp, pedals, etc...  Only after recording during playback, not pre, can i hear the effects I have chosen.  Why is this?  So pre recording and during recording, a clean tone.  Play back the track, it's all there with the amp and sounds I have chosen.  Frustrated.

    Excuse this short reply, rehearsal in 30 minutes.
    It sounds like you need to first turn off the Direct monitoring of the Interface. Most audio interfaces have a "direct no-latency" monitoring that actually takes place before the audio even goes to Logic, it's done within the interface. Different companies have different names for it, low-latency monitoring, direct monitoring....etc.
    Next, open Logic's Preferences and I think with Logic-X  it's under the General tab (everything I'm describing will be under the general or devices tabs).
    Select Software monitoring, make sure you I/O buffer setting is at 128. Lower buffer settings mean less latency but use more CPU.

  • Question about video recording and size of the recording on a tv/comp

    So i just started editing my iphone movies with imovie for mac. However I ran into a problem right away. When i recorded a video while holding my iphone vertically the playback was horrible on my mac because it was so skinny and not wide at all. First off I was wondering if there was a some way to make it wider? My videos that were recorded while my iphone was horizontal then they are perfect when viewing on my mac. So if anyone can help me with this question i would greatly appreciate it.

    You cannot record a video any wider when recording a video in portrait mode or make it wider after being recorded. If recording a video in landscape mode is what you prefer, you need to record all videos in landscape mode.

  • Cisco Unified WFO - Call Recording and Quality Management stops recording with conferenced translator

    I'm having an issue whenever one of our employee's conferences in an external translator, as soon as they bridge the customer into the call with the translator QM stops recording.  I can hear the intial conversation with the customer, and then the employee put the customer on hold and call the translator service.  Only when the two are bridged together the call always stops recording. 
    We are performing all recording on the server side, and are not using Quality Manager Desktop agents.
    Any help would be much appreciated.  Thanks!
    -Chris                   

    So I found the following information listed below.  I don't manage the Cisco Unified CM portion of our telco system.  Can we limited the ourselves to a single Codec, and would this even resolve the issue.  Does this cause other issues if we didn't limit the devices that are recording to a single codec?
    Recording IssuesThis topic explains how to diagnose and resolve problems that occur with contact
    recordings.
    Calls for devices configured for Network Recording drop when you try to conference
    or transfer a call.
    Symptom. When you try to transfer or conference a call and one or more devices on
    the call configured for network recording, the transfer or conference fails and
    parties drop off of the call.
    Cause. Cisco Unified CM does not support codec changes for devices that are
    configured for call recording. The codec must remain the same throughout the life
    of the call. For conference calls, the conference bridge must support the codec
    used before the conference completes.
    Solution. Update the Cisco Unified CM configuration to ensure that no codec
    changes occur for network recorded devices.

  • Using a textfile to store ~300,000 - 1million records of data

    Hi all,
    I'm making a simple java program that will retrieve information, store it. Then the application would use the stored information.
    My thought was -- in order to make the java program work on all platforms, rather than use a database, i would just save the records of information to a txt file.
    Imagine a file holding the following information for about 300,000 - 1 million rows.
    prop1=value1, value2, value3
    prop2=value1a, value2a, value3a
    prop3=value1b, value2b, value3b
    prop4=value1c, value2c, value3c
    prop5=value1d, value2d, value3d
    later on the application would load these retrieved records as a property object.
    Do you guys think it would work or do you think I'm better off using a database? on the windows platform I would be using access 2000
    Thanks for the thoughts in advance.
    stev

    I would have to go with the database on this.
    For the given data, each record is probably 10 to 1000 bytes of data.
    Unless you build an index, any search is going to take a bit of time with 10 bytes and significantly more with 1000.
    If you try to keep it in memory even for the smallest size it would take (4+4+10)*records plus some overhead, so 5.4 meg (300,000 records). And that is using a packed format and is probably optmistic on the memory usage.
    At the upper range it simply won't fit (4+4*1000)*1,000,000 is 1.8 gig. The Sun 1.3.1 JVMs for solaris and windows do not support that much memory.
    That isn't to say that you couldn't keep it as a file. But to do so would require a non-trivial amount of code to efficiently access it. And without more information about why the database is not a good solution (or how the app would be used) it is hard to say what the best solution is.

  • What's the difference between Transferred Records and Added Records?

    When right click an ODS or a cube to select Manage, then under the 3rd tab called Requests, there are two columns called Transferred Records and Added Records, what's the difference between these two?
    Thanks

    Hello KeLviN,
    How r u ?
    Consider a realtime example.
    Assume a transfer of Transactional Data from R/3(with PSA) which is having Unit values in it.
    Now, I found in RSA3 2844168 of records. In BW I saw one Data Packet with 306 error records(because of a UNIT value is not available in BW T006 table, Eg. YDD) which are automatically collected in PSA. Now in the Monitor screen you could see 2 Monitor status with GREEN Signals for 2 set of data.
    1. with 2843862 records
    2. with 306 records
    Now, if u manage the Data Target you will get 2844168 in the Transferred Records & 2843862 in the Added Records. and the 306 error records are in the PSA.
    Hope this is clear.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Is there and ipad app that allows you to record and edit audio, but can record in the background?  This would be to record voiceover auditions/podcasts while reading a script

    Hi wondering if anyone might be able to help me out.  I am an audio engineer and my wife is a voiceover artist.  We just got the ipad thinking she could record her voiceover auditions on the go, but we can't for the life of us figure out how to record audio while reading a script off of her email.
    Looking for an app that:
    Either can record audio while in the background (garageband cannot)
    OR Import text (copy paste I guess?) to read while recording
    The app needs to  be able to edit audio and export or email out an MP3 - by edit audio I mean trim, fades, and move around sections.
    Anyone have any thoughts on how to do this?  I have been looking around the web for answers for hours and can't find any.  Thanks in advance for your help.

    Hi-  I've done a lot of research in this area and actually am just finishing a book on this subject which will soon be in the iBookstore.
    The best app is TwistedWave.  It allows easy editing and recording, and also allows you record while you are in another app (such as a script your agent sent in your email)
    I recommend MiC by Apogee as your microphone, available at the Apple store.
    My book which goes in depth in how to get the best sound as well as how to edit is called:
    iVoiceover
    Super. Simple. Recording.
    I'll post here when it's live in the iBookstore!

  • Distinguish b/w Automatically created Info Record and created thru ME11

    Hi,
    How can we distinguish between Automatically created Info Record and manually created Info Record (By User through ME11 transaction).
    Where we can see the difference???
    Plz guide...

    Hi,
    In case of Automatically created Info record, Net price and Effective price fields will be blank where as in case of manual info record, you maintain the price under "conditions" manually and which gets updated in net price and effective price fields.
    Also Run Reports ME1M and ME1L, Info records with "Condition       No Price Found" are automaically created. And manual info records will have have "Condition XXX Amount"

  • In BDC, I Have 10,000 Records Which Method do I Select? and Why?

    Hi all,
    In BDC , I Have 10,000 Records of Material Master Application. I have go through by Session Method or Call Transaction Method. Which Method do I Select? and Why?

    Hi..
    There you hav to go for sessions method....
    because...
    1. session methos has auto matic error handling option. so if there is any error in last but 100 th reocrd it will just threws that record and remaining part willl complete.
    2. And it was offline method.. means formatting of the data and assigning to Sap lay can be done in two steps... So you  10000 recors can update in expected time comaper with Calltransaction method...
    Get back to me if you are not satisfy with above reasons.
    Thanks,
    Naveen.I

  • I want to delete approx 100,000 million records and free the space

    Hi,
    i want to delete approx 100,000 million records and free the space.
    I also want to free the space.How do i do it?
    Can somebody suggest an optimized way of archiving data.

    user8731258 wrote:
    Hi,
    i want to delete approx 100,000 million records and free the space.
    I also want to free the space.How do i do it?
    Can somebody suggest an optimized way of archiving data.To archive, backup the database.
    To delete and free up the space, truncate the table/partitions and then shrink the datafile(s) associated with the tablespace.

  • FM for splitting the records and then processing

    Hi all
    i have this requirement that there are records to be picked in my background job and to be processed. now the background job has to pick number of records first and process them e.g it has to pick the first 5,000 records, process them and then pick the next 5,000 records and so-on. now this is called a functionality of threading i think... and i have heard that there ia a standard FM in SAP to do this. but i am not coming across it. can anybody help me in this.
    please ask questions if doubt any.
    helpful answers will be rewarded.
    thanks
    jai

    Hi,
    try this short example.
    REPORT ZGRO_TEST.
    TABLES: BKPF.
    DATA: I TYPE I.
    START-OF-SELECTION.
      SELECT * FROM BKPF.
        I = SY-DBCNT MOD 5000.
        IF I = 0.
      do what you want.
          WRITE: / SY-DBCNT.
        ENDIF.
      ENDSELECT.
    END-OF-SELECTION.
    Hope it helps
    Regards, Dieter

  • Possible to send the 50,000 records at a time using proxy?

    Hi All,
    I am using the proxy to send the data form SAP to PI and then send it to Receciver by using JMS. Here i have a small issue.... is it possible to send the 50,000 records at a time using proxy? If not please suggest me how can i send bulk of records through proxy?
    Thanks
    Karthik.

    is it possible to send the 50,000 records at a time using proxy? If not please suggest me how
    can i send bulk of records through proxy?
    you can try this in steps...do not go for a BigBang testing :)....check how much your XI system can handle at a time...then you may need to tune the system parameters to accomodate more message size.....how to do this??...check the below document..section 3.9.2 (Special Cases)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7
    Regards,
    Abhishek.

  • Creating an Excel file from table with 40,000 records

    I need help with creating an Excel file for client that has a
    table of 40,000 records. I have code that generates the Excel and
    has worked well in the past but with this much data it is timing
    out.
    I've already informed the client that Excel has limit of
    66000 records. So it might be better to export to CSV as the data
    in this table is going to keep growing.
    If you have time to work with me on this , contact me a
    alexagui [at] gmail [dot] com
    and I can send you more details so you can put together an
    accurate quote.
    Thanks,
    Alex

    asdren_one wrote:
    > I need help with creating an Excel file for client that
    has a table of 40,000
    > records. I have code that generates the Excel and has
    worked well in the past
    > but with this much data it is timing out.
    >
    > I've already informed the client that Excel has limit of
    66000 records. So it
    > might be better to export to CSV as the data in this
    table is going to keep
    > growing.
    >
    > If you have time to work with me on this , contact me a
    alexagui [at] gmail
    > [dot] com
    > and I can send you more details so you can put together
    an accurate quote.
    For so many records my guess is that the concatenation times
    the most
    time so you'll need to use StringBuffer to build the string.
    Google for
    coldfusion and stringBuffer:
    http://www.stillnetstudios.com/2007/03/07/java-strings-in-coldfusion/
    Mack

Maybe you are looking for

  • How to get readonly text field value in backing bean?

    Below is my code in JSF. <h:inputText id="prodLine" value="#{fbackingBean.value}" required="true" styleClass="readOnlyField" readonly="true"/> This is a readonly field, and the value will been pass in by a pop up window. after the value had been pass

  • Computer is authorised but it won't let me play already purshased songs!!

    i just re loaded i tunes and I've not been on it for ages because of some problem with updating it all fixed, but I can't authorize the computer, for some reason its unauthorized itself and won't let me authorize it again and now i cant play songs or

  • Were to find db2 drivers and how to check if it is working

    i have to configure a scenario from db2 to xi to rfc let me know were to find the db2 driver and once done how do i check if i have installed the correct driver. is there any sample program through which i can check if the driver is installed

  • How to display archived datas in INSODISP?

    Hi, We are planning to archive the pay plan items for all the older accounts. Here the client requirement was to display the archived pay plan items in INDODISP-CURR DISTRUBUTION and other screens values too. Archival Objects Used: -VVKK_SCHED Can an

  • I need help...!!!!my phone model is nokia5320

    my phone cannot send message..but  my phone can received message...outgoing and incoming call also no problem...i've try to switch my SIM card to other phone...it seems to be ok...but..when i switch back to 5320..the same problem occur....can somebod