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

Similar Messages

  • Please help me for checking the userid and password process

    hi master
    sir how i find any record such as user give userid and password in normat textfield thad not bound with data provider only i drop in page and also i drop dataprovider in page and i check that userid and password from table
    if found userid and password in table then move user to next page oterwise give message not righet user
    i am use this code but this code give me error
    see
    try {
    RowKey userRowKey = customerDataProvider.findFirst
    (new String[] { "CUSTOMER.USERID", "CUSTOMER.PASSWORD" },
    new Object[] { loginUserId.getText(), loginPassword.getText() });
    if (userRowKey == null) {
    error("Invalid user id or password");
    return null;
    i try this but this command also give me error
    textfieldy.setValue(partytableDataProvider.getValue("PARTYTABLE.PARTYID"));
    ==========
    textfiedlsetValue(getSessionBean1().getPartytableRowSet().setObject(1,partytableDataProvider.getValue("PARTYTABLE.PARTYID"));
    ===========
    texfield.setValue(partytableDataProvider.getValue("PARTYTABLE.PARTYID").toString());
    see error
    Possible Source of Error:
    Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
    File Name: CachedRowSetDataProvider.java
    Method Name: getFieldKeyInternal
    Line Number: 481
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeyInternal(CachedR owSetDataProvider.java:481)
    com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKey(CachedRowSetDat aProvider.java:439)
    com.sun.data.provider.impl.AbstractTableDataProvider.findFirst(AbstractTableDat aProvider.java:143)
    logintestform.Page1.button2_action(Page1.java:442)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun
    please give me idea how i find record in table
    thank's
    aamir

    Hi ,
    Wondering if you were able to get past this issue. If not , I would suggest checking the prefix's on the metadata of the column name.
    Radhika

  • I recorded a panel presentation on my Ipod and would like to edit the recording on my itunes so I can export the recording and send it to my colleagues over the internet.  I was able to import the recording to my itunes library but need help editing it.

    Hello, thanks in advance for your help.  I recorded a panel presentation on an ipod and would like to edit the audio recording to just one portion of the recording.  I was able to import the audio into my itunes 11.1.3 music library but I have not been able to edit the length of the recording.  I followed an online tutorial and was able to edit when the recording starts and stops on the recording but I haven't been able to edit out the parts of the recording that I dont want.  Also when I try to export it to my Desktop or to Garageband (not sure if that helps or not) I am not able to export it.  It is currently a .WAV file.  I would like to edit the length of the recording and then export the file onto my desktop.  I would like to email the presentations to my colleagues online so I could also use advice on how to make it a smaller file since it is current 945.6 MB.

    iTunes isn't an editor. You need an app that's intended for editing audio files, like Adobe Audition (http://www.adobe.com/products/audition.html) or Audacity (free in the App Store).

  • When I turn on or restart my Macbook Pro Retina 15", my entire screen flashes completely bright yellow for a few seconds and then it goes to the normal Welcome screen.  How do I fix this??

    Hi Everyone,
    This problem just started today.  When I turn on or restart my Macbook Pro Retina 15" (Mid 2012 version), my screen is light gray like normal, and then after a few seconds my entire screen flashes completely bright yellow for a few seconds, and then it goes to the normal Welcome screen (where I choose to login as myself or a guest user).  This suddenly started today and has not stopped since.  This keeps happening every single time I turn on or restart my computer.
    Yesterday I installed all the Mavericks and other updates that were available in the App Store, so I'm wondering if this is related to that since this never happened prior to my doing those updates yesterday.  When I first installed the new OS X Mavericks (10.9.3) update, it went through the whole installation process (took about 10 minutes), and then during the installation I got an error message saying that it couldn't verify my iTunes application that was on my laptop, and then my laptop finished installing the updates.  Then once my laptop restarted, the App Store "Updates" section said that I had to do the whole OS X Mavericks (10.9.3) and iTunes (Version 11.2) updates all over again.  So my laptop did the whole installation again (took about 10 minutes, but this time I didn't get that "iTunes error message" during the installation process). 
    Now, when I go to the App Store "Updates" section, it says the following under "Updates Installed in the Last 30 days":
    -Digital Camera RAW Compatibility Update (Version 5.05) installed May 15, 2014
    -OS X Update (Version 10.9.3) installed May 15, 2014
    -iTunes (Version 11.2) installed May 15, 2014
    -OS X Update (Version 10.9.3) installed May 15, 2014
    -iTunes (Version 11.2) installed May 15, 2014
    -Security Update 2014-002 (Version 1.0) installed April 22, 2014
    I'm wondering if this flashing bright yellow screen upon bootup is related to the fact that my laptop installed the OS X Update and the iTunes Update two times each?  Or is this new problem totally unrelated?  It's just that this problem started a day after these 2 updates were installed twice.
    My Macbook Pro Retina 15" (Mid 2012 version) is otherwise working fine at least as of now.  The only issue so far is this flashing bright yellow screen every time I turn on or restart my computer.
    If anyone could please help me fix this so that my bootup screen doesn't flash completely bright yellow anymore, I would be forever grateful! 
    Thank you so much for reading this and for any help you can provide. 
    hope everyone is well,
    Elaine

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • My iPhone was stolen a few days ago. It appears to be offline on the Find My iPhone app. If the person who has it turns it on only for a brief moment and then turns it off immediately, will the location still be found? Once it returns to be

    My iPhone was stolen a few days ago. It appears to be offline on the Find My iPhone app. If the person who has it turns it on only for a brief moment and then turns it off immediately, will the location still be found? Once it returns to being offline will the location still be sent to me? And also, how can I retrieve my pictures from my iCloud?

    Anything is possible.

  • I didn't setup a two step verification for my apple Id , and then when i login into my account on the browser it prompt to enter my verification code !!! HOW COME

    i didn't setup a two step verification for my apple Id , and then when i login into my account on the browser it prompt to enter my verification code !!! HOW COME
    please help because all my data are stored in the cloud

    - See if it is listed here for downloading. If it is then redownload it..
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - If not there then contact iTunes.
    Contact iTunes

  • When I try to play a song on my iPod Touch, it shows the information screen for the song and then skips to a new song but then goes back to the main playlist page without ever playing a song! Help!

    When I try to play a song on my iPod Touch, it shows the information screen for the song and then skips to a new song but then goes back to the main playlist page without ever playing a song! Help!

    thats tough man, yeah exchanging it is the best option. But why do people always leave a message saying" i'll probably just by an ipod" and it's usually followed by, "even though i don't like apple or ipod" . I mean fine, if u feel like giving up on the zen micro thats fine, i personally don't care if you're going to buy an ipod. for god sakes ipod isn't even the next alternati've mp3 players, theres plenty. Are u just trying to get the creative people saying "oh man we lost another one to ipod" cuz i'm sure they don't lose sleep over u wanting to buy an ipod instead of a zen. *done ranting*
    Message Edited by bleakreserve on 02-3-2005 06:34 AM

  • When i try to open week cal it loads and then closes after a few seconds...I have checked for updates, turned the phone off then on, closed out of the app and then opened it again...nothing works!  Any suggestions?

    When i try to open week cal it loads and then closes after a few seconds...I have checked for updates, turned the phone off then on, closed out of the app and then opened it again...nothing works!  I have thought about deleting the app from my phone and then reloading it again but I worry that it will delete all my calendar info???  Any suggestions?

    To reset, press and hold the Home and power buttons until the silver apple appears.
    I would delete the app, reset the phone and then download the app again. Your calendar information should be stored on the phone as Week Cal uses the Calendar app information.
    Best of luck.

  • I have an iphone 4, i connect it to my laptop using the usb and then when connecting to itunes it says my phone is not up to date with itunes yet i cannot find an update 11.1 for my phones itunes? someone please help me.. kind regards

    i have an iphone 4, i connect it to my laptop using the usb and then when connecting to itunes it says my phone is not up to date with itunes yet i cannot find an update 11.1 for my phones itunes? someone please help me.. kind regards

    Itunes 11.1 is for your computer, not your iphone
    It is required in order to sync with ios 7.

  • My ipod needs to be restored but it only stays on the "connect to itunes" for approximately 20 seconds and then turns black as if it is turned off.

    So a couple of months ago, I had to restore my new IPOD 5 TOUCH because i had forgotten the password and disabled it, so as you can imagine I am quite familiar with restoring it.
    (The last time I had synced it was the only time that I had to restore it when I first got it when I had disabled it)
    This morning I wanted to sync my ipod. So I plugged my ipod into my WINDOWS computer and waited for itunes to open, and it did just like it is supposed to. It then said itunes needed the latest update so i continued with updating it. Itunes updated, but then said that my ipod needed the latest software. I said "ok update" and thats when itunes made my ipod into DFU mode without me even touching it.
    SOOOO as you can imagine I was quite upset. I then have realized that because Itunes had moved it into DFU mode on its own, I could not manually get my ipod out of DFU mode so the only thing i was left to do was go ahead and restore it.  (correct me if Im wrong)
    My huge issue right now is that my ipod NEEDS to be restored, but it only stays on the "connect to itunes" screen for approximatley 20 seconds and then turns black as if it has been turned off. When I plug it into my computer and turn it on to the "connect to itunes" mode, it does open it in itunes and starts "extracting sofftware" but then when it turns black after 20 seconds, it closes out because my computer thinks it has turned off.
    I have tried charging it, and nothing has progressed. Im not sure if anything can be done for it right now, or if I could bring it to an apple store to fix it... it's brand new about 3 months old.
    HELP and some advice would be greatly appreciated  !
    Thanks!
    -B

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • I make Rest for iPad, and now every time i open it , i chose the country and the network  and tells me he works the activation and then tell me the iPad could not be activated, try again what can i do

    i make Rest for iPad, and now every time i open it , i chose the country and the network  and tells me he works the activation and then tell me the iPad could not be activated, try again what can i do

    Those are the instructions for your computer's iTunes (i.e. using the Store menu at the top of your computer's iTunes and selecting 'View My Account' on it). If you are doing it on your iPad then are you following the instructions for iOS devices :
    To unhide your purchases
    Depending on the content type, open the App Store, iBooks, or iTunes Store on your device.
    Scroll to the bottom of the main page.
    If you're not already signed in, tap Sign In.
    Tap your Apple ID name, then tap View Account.
    Scroll down on the Account pane, and tap Hidden Purchases.
    Locate the item you would like to unhide then tap the Unhide button.

  • I am being asked to verify my Apple ID.  When I enter the password I get the message it is wrong.  It says the e-mail address is already verified for another Apple ID and then it says it is sending an e-mail to my e-mail account that I then never receive.

    I am being asked to verify my Apple ID.  When I enter the password I get the message it is wrong.  It says the e-mail address is already verified for another Apple ID and then it says it is sending an e-mail to my e-mail account that I then never receive.  How do I resolve this?

    This is most likely caused by an iCloud sign up (which forces you to use an email address as Apple ID).
    Here's the workaround fix I found after some online research:
    https://discussions.apple.com/thread/3656336

  • I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on- and how do I get the show to cycle indefinitely?

    I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on… and how do I get the show to cycle indefinitely?  (I have set the server to NEVER sleep)

    Welcome to the Apple Community.
    Have you also set the Apple TV not to sleep.

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • I have just started with apple tv. I rented and downloaded a movie from itunes on my macbook pro and tried to watch it. I got the movie up, but it only played a picture for about 3 seconds and then stopped, also no sound? What am I doing wrong?

    Please help me play a rented itunes video on apple tv. Have a pictue and movie runs for about three seconds, and then stops. No sound? But I can play any music from my library with sound?

    Is the movie still buffering? you may have a slow internet connection. Music files require far less bandwidth than movies.

Maybe you are looking for