Split and send End of record in JDBC

Hi Experts,
We have a interface in which Sender channel(JDBC) is picking the records from database and Sending it to Receiver Proxy.
I need to split the Records in batches and when all records are inserted Trigger the  an End of File (EOF).
If there are 100000 Records I need to split it into 10 batches(i.e. 10,000 each ) and send the Data to Proxy.
After the 100000th record is picked I need to trigger the End of File.
So Thereby My Requirement is :
1) I need To determine the size of database and Split it into 10 batches.
2) when the Last record is Inserted I need to trigger the End of File(i.e. the last record of database)
3) Should  perform this without the help of stored Procedures
Any Help is Highly Appreciated
Best Regards,
Sainath Chutke

Created one more message mapping!!

Similar Messages

  • Next Gen Pixi: Little wider, screen a little bigger and please a center nav pad and send/end buttons...

    Love the Pixi compared to the Pre for size and form factor, but I'd love to see it somewhere between the Treo Pro and its current form. You make it a little wider, move the ear speaker higher up and maximize the screen with less bezel. Add a clickable optical pad in the center so you can navigate through text and select text easier as well as add to the one handedness for simple navigation. I've used a samsung moment for awhile and love the 4 directional keys as a secondary form of nav. Throw in hard send/end buttons and you'd have a real winner.
    I hate the Apple influence that has been brought to Palm when it comes to hardware design. I guess it's a pipe dream, but bringing back the removable storage would be huge as well. I can see the competition heating up as Android progresses and newer phone designs are brought out. It is tough to beat the candybar/thumb board combo for simple one handed operation though, and Palm could have a major winner and not just an "intro level" smartphone in the Pixi line. No reason for it to play second fiddle to the Pre. The Pixie isn't just for newbies.

    I have yet to visit a Sprint or Verizon store to check out the Pixi for myself, but your observations are thoughtful and well reasoned. You may have seen this suggested before, but it's not just baloney...the best way to get direct feedback to the business side of Palm (rather than just the Support side which includes these Forums), is to go to www.palm.com/feedback and lay it out there.
    And thanks for your contributions to the Forums!
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Need help: message split and send in BPM

    i have this mapping where the idoc has to be split first before passing it to a BPM. the mapping should perform like this
    from
    IDOC
       segA
         segB1
         segB2
         segB3
       /segA
    /IDOC
    to
    IDOC
        segA
          segB1
    /IDOC 
    IDOC
        segA
          segB2
    /IDOC   
    IDOC
        segA
          segB3
    /IDOC        
    I was successful in doing the 1st step of mapping requirement for the above transformation. The next step was to map per occurence of IDOC to another target message and send it (ex. above is 3 occurence of IDOC, so there should be 3 mapping and sending that should happen. My problem now is how to design the BPM for this. Any suggestions?
    Message was edited by:
            Brian Lo

    create one MT such as
    root
    |__IDoc
    |__segment
    duplicate the subnode in the target message mapping (right click on the node and select dupliate subtree) and ten do the mapping...here u can go 4 this approach only if the number of number source segments (ie. sega, segb1, segb2, segb3) are constant....have read in coupe of threads that split mapping is not possible for idocs.....u may also need to check on it

  • How to show character length 60 ,If we split and distribute..??

    Hi Friends,
    As per other threads ,It was mentioned like split the string into parts depending upon length and split and send it into different Infoobjects....It is ok ..after sending it into different objects ..how can we see it in query as a single string..Is it by using customer exit variables kind of things??

    MSTF ,
    What you can use is , You can use the table modifier and concatenate the three columns into one at runtime and hide the other two columns of the table. But again I assume you are using BeX.
    Arun Varadarajan
    P.S Otherwise store the comments in a BW Internal Table and then display the data in the concerned cell at runtime using the table modifier.

  • To split the records of the internal table and send in Packets to XI

    Hi All,
    I am executing the program in SAP. Program will send the material numbers to Oracle through XI and in turn we will get the corresponding data back to SAP. and this all data is written into the file.
    if records are more than 700 then XI will not able to get the data fully.
    So, solution for this is to send the data in packets.
    I want to write the logic like whenever the recods are more than 700, the first 700 records  will got to XI and rest of the records will go to XI after that. we are sending the material numbers to xi through proxy.
    Problem is : how to write the logic for this.
    suppose we have  executed the report for 1000 records, then it should generate 2 excel file in which first file shud contain 700 records, AND 2nd will contain rest of the 300 records.
    Regards,
    Mamta

    Hi Mamta,
    Please try this code. This is to split records as 255 length and u can change it as ur requirement by simply changing l_offset value as 700.
    DATA: l_length TYPE i,                               
          l_lines TYPE i,                                
          l_pos TYPE i VALUE 0,                          
          l_offset TYPE i VALUE 255,                     
          l_part TYPE i,                                 
          l_lastpart TYPE i.                             
    CLEAR i_etabfinal.                                   
    REFRESH i_etabfinal.                                 
    *Split etab line as multiple 255 char length of lines
    LOOP AT i_etab INTO x_etab.                          
    l_length = STRLEN( x_etab-result ).                  
    l_lines = l_length DIV l_offset.                     
    l_lines = l_lines + 1.                               
    l_part = l_offset.                                   
    DO l_lines TIMES.
    *To avoid spaces                                    
    IF l_part LT l_length.                               
    x_etabfinal-line = x_etab-result+l_pos(l_offset).    
    APPEND x_etabfinal TO i_etabfinal.                   
    l_pos = l_pos + l_offset.                            
    l_part = l_pos + l_part.                             
    ELSE.                                                
    l_lastpart = l_length - l_pos.                       
    x_etabfinal-line = x_etab-result+l_pos(l_lastpart).  
    APPEND x_etabfinal TO i_etabfinal.                   
    ENDIF.                                               
    endloop.
    Regards,
    Subbu

  • I produced a film in iMovie and send it to iDVD to make a DVD with a theme. When everything was ready it starts at my mac-computer. But at the TV the theme always comes at the end of the film not at the beginning. What have I to change, what´s wrong?

    I produced a film in imovie and send it to idvd to make a dvd with a theme. After finishing all the dvd starts in my mac-computer and first comes the theme and then the film.
    But when I start it with a dvd-recorder at tv first the film comes an at the end of the film the theme comes. What did I wrong? Where is my mistake?

    Hi
    A. Do not Use - Share to iDVD - in any iMovie version at all !
    B. Start a BRAND NEW iDVD project
    C. in iMovie'08 to 11 -  Share to Media Browser and as LARGE - NOT HD or other resolution as quality will be even worse
    - in iMovie HD6 - just close it and from within iDVD import the iMovie movie project icon (with a Star on it)
    - FinalCut - Export as QuickTime Movie - NO QUICKTIME CONVERSION - AT ALL !
    D. When in iDVD - see to that in the Lay-out menu (when it looks like a box-plott) there ARE NOTHING in the upper left most box (Auto Start box). As this overruns any Menu.
    E. Save as a DiskImage - TEST this first - befor burning any DVDs
    Yours Bengt W

  • Can we split and fetch the records in Database Adapter

    Hi,
    I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    Could someone help me to resolve this?
    In Database Adapter can we split and fetch the records, if number of records more then 1000.
    ex. First 100 rec as one set and next 100 as 2nd set like this.
    Thank you.

    You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.

  • How to count records in table and send email only if count 0

    I thought this would be fairly simple, but apparently not.  I'm trying to count the number of records I have in my staging table, and send an email if count > 0  . . . .  and . . . . I want to put the count in the body of the email. 
    I'm running into a problem with the concatenation part of it.
    SET NOCOUNT ON
    SELECT * FROM [dbo].[Staging]
    SELECT @@rowcount as Row_Count
    SET NOCOUNT OFF
    IF @@rowcount > 0
    BEGIN
    exec msdb.dbo.sp_send_dbmail @profile_name = 'MailTest',
    @recipients = '[email protected]',
    @subject = 'Successfully Loaded Production',
    @body = 'Successfully Loaded Production ' + @@rowcount + ' records loaded',
    @body_format = 'text'
    END
    The problem comes from the '+' character not being recognized.  Maybe it's out of scope, not sure.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Try this
    SET NOCOUNT ON
    IF EXISTS (SELECT TOP 1 1 FROM [dbo].[Staging])
    BEGIN
    exec msdb.dbo.sp_send_dbmail @profile_name = 'MailTest',
    @recipients = '[email protected]',
    @subject = 'Successfully Loaded Production',
    @body = 'Successfully Loaded Production ' + @@rowcount + ' records loaded',
    @body_format = 'text'
    END
    Thanks
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • HT4914 I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync play

    I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync playlists.

    How old was this backup? It sounds like it was at least several weeks old.
    You can look directly in the TM backup for the music.
    1. Connect to the external HDD the backup is kept on.
    2. Open a Finder window and select the backup drive in the left hand panel. Double click into the folders until you see a list of folders with dates.
    These are the incremental backups. You can start at the top or the bottom of the list but I suggest you double Latest/<HDD Name>/Users/<Account Name>/Music/iTunes/iTunes Media/Music. From this location you can start looking for the "missing" music. When/if you find it you can simply drag-n-drop to ~/Music/iTunes/iTunes Media/Music on the internal HDD.
    If the music is actually not in the backups (for whatever reason) then you've got a problem.
    You can download the uploaded files from the cloud by deleting the affected tracks from the iTunes library (but not the cloud!), highlighting multiple tracks at once, right-clicking and choosing "download."

  • Modify control record and send out to external (TAMA) system using ALE

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Modify control record and send out to external (TAMA) system

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • How do I record a sound file and send it as an attachment using my 4s?

    How do I record a sound file and send it as an attachment using my 4s?

    Hi,
    The following is the program[Click Here| http://saptechnical .com/Tips/ABAP/email/EmailProgram.txt] which will send any format file. Actual Creator of the program is Amit Bisht.
    Thanks & Regards,
    Rock.

  • Recording starting too early and also ending too e...

    Another problem.....
    When recording programmes I am frequently finding that the recording is starting way too early...5-10 minutes....and often ends too early (very annoying as one misses the end of a particular programme).
    Any help, gratefully received!
    Thanks

    Recording should start 2 minutes before the scheduled start time and end 5 minutes after the scheduled stop time (by default - you can increase this).
     The box won't automatically cope with programmes which start late. Are the programmes you're having a problem with starting on time?
    Is the time displayed on the box correct?

  • Recording User activity and sending it as an email

    Hey Guys... this is the first time I have ever asked a forum
    a question... but I am totally stumped. I desperately need help
    from the community. I have a flash project in a site and I don't
    know what it is you would call what I am trying to do in order to
    look it up to execute it.
    *****The Goal******
    I am trying to create a movie that will be sent as a link in
    an email. What I want to do is allow the user to manipulate the
    position of MC's in the movie... and then send the rearranged
    position to a friend.???? This should work much like the movies
    you've seen that the user draws a picture with draw tools... and
    then sends it to someone... and it redraws for the person who
    receives the email.
    What is this that I'm trying to do?????
    Please Help.
    Thanks

    PS just realized you want this to be reconstructed on the
    receiver's side, so it can't be simple text email.
    I would put it into a database, and give it an id, then
    construct a link to the same swf with that id as a parameter and
    send this via email.
    Let's say it's the game of chess. You would have an swf that
    knows the rules and allows only correct moves. When it is opened
    with an id (game number), it looks up that game in the database and
    reconstructs all previous moves. Then one player moves a piece,
    clicks send. The swf records that new move in the database and a
    server-side script sends an email to the other player. Same game
    number, but player two, so that the swf on the other computer
    builds the same board, but allows only moves of the other colour.
    You could also have a constant polling of the database
    instead of emailing (let's say every 5 seconds), to enhance the
    playability....

  • I have just recorded on garageband and now need to send away for editing how do i place in file and send

    I have just recorded on garageband and now need to send away for editing how do i place in file and send 

    Send where? Edit how?

Maybe you are looking for

  • Stock on posting date -storage location and batch wise

    Dear All I need to developa report exactly same as MB5B but with storage location and batch wise. We need  storage location wise opening stock, total receipts, total issues and closing stock, and values for given time period. I have gone through some

  • How to find weblogic Server memory for particular user

    In a weblogic server how can i get the information for each user approximately it occupying "x" size of memory...is there any command..so that based on number of users i can increse my memory and harddisk space.

  • External iSight makes noises after connecting

    After connecting my external iSight to my ibook g4, the camera makes a strange noise, probably coming out of its mic or the lens which is like trying to focus..or I don´t know. It´s a short buzzing sound which sometimes appears while the camera opera

  • The xquery cannot have an unbound current node

    Hi, am getting this error •[RouteNode1, Routing Table action] XQuery expression validation failed: The xquery cannot have an unbound current node.

  • Sharing disabled for external hard disks?

    After installing Lion, I find that I could not enable sharing for my external hard disks. I right-clicked each hard disk in Finder, checked the Shared Folder box and after I close the window and reopen it, the Shared Folder box is again unchecked. In