How to send 10000 records to RFC in packets of 1000 records

Hi Folks,
     I have to send some 10k record to a rfc and that RFC will return the details of those 10k records.
     Now since the processing time for all the 10k records crosses 5 hrs, RFC connection is getting failed.
    So i want to send the  data in packets of lets say 1000 , so that system will process only 1000 records at a time.
    The main important logic is, the 1000 records which has been processes first time should not get process in next time.
   Note: I dont know the exact numbers of records, but most of the time more than 10k
  What would be the most efficient way to implement this logic.
Regards
PG

Hi,
itab_10k -> internal table that consists of records to be processed by RFC.
itab_rfc -> internal table that consists of records to be passed to RFC say 1000 at a time.
Now, say for 1000 records the RFC is taking reasonable amount of time and acknowledging with the results. itab_results.
data: counter type i.
Loop at itab_10k into wa_10k.
add 1 to i.
append wa_10k to itab_rfc.
if i = 1000.
pass itab_rfc to the RFC.
append the results table obtained after calling RFC to the itab_results.
refresh itab_rfc.
clear i.
endif.
clear: wa_10k.
endloop.
if not i is initial.
pass itab_rfc to the RFC.
append the results table to the itab_results.
refresh itab_rfc.
endif.
By now all the records are processed and the data is available in itab_results.

Similar Messages

  • How to send multiple records in file2file and file2db or all scenarios//

    I'm able to send single record for file2file and file2db,
    how to send multiple records in file2file and file2db or all scenarios//
    what should add or make changes for dis.

    1 put Occurance 1 to Unbounded in data type of IR
    2 In the test tag of message mappings in IR,select one node and use "duplicate subtree" in its context menu
    After that,you can download the test data in XML format with the button "save document source"
    for example:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZFileDemo xmlns:ns0="http://hand-china.com/mm/po_01">
    - <Item>
      <ItemNo>1</ItemNo>
      <Matnr>2</Matnr>
      <Text>3</Text>
      </Item>
    - <Item>
      <ItemNo>4</ItemNo>
      <Matnr>5</Matnr>
      <Text>6</Text>
      </Item>
      </ns0:ZFileDemo>

  • How to send 100 records from an IDOC to File Scenario without using BPM?

    Hi All,
    I have a requirement that i need to send 100 records from sap to file by using the scenario IDOC to File. Can you suggest how can i achieve this?
    Regards,
    Ramvilas.

    Hi,
       Create a H type RFC destination.Tagert host and port give  Xi system host and port.Path give the
       /sap/xi/adapter_plain?namespace=<NameSpcae>&interface=<Interface> &service=<SenderBusinessSystem>&qos=EO or EOIO.
    Go to we21 find xmlhttp port.give the port name and assign RFC.Give the port in we20 your idoc and change to collective.
    In Xi export the IDOC and change the occurance to 0-unbounded and import it.
    Regards,
    Prakasu.M

  • How to send  Million records using  Open hub using  into my own file server

    hi
    i am using OPEN HUB process to send  6 miilion record to my own network server. is there any limitaiton how i need to go about that? my process is failing when i execute DTP openhub. i am abel to send few records to sap aplication server.
    did any body send  more than million records to aplication server out side SAP ? how to achieve this. pelase help me out..
    i am trying to send ods records into file server

    I'm glad you solved your problem.
    Generally it is nice to post how you solved your problem so that when others have a similar problem and search the archives, they can see your solution.
    Thanks

  • JDBC- RFC - JDBC    How to send result set to rfc  ?

    Hi Friends ,
                        I am working on scenario like .
              <b>          I have to read  data from a sql server using select statement and send same   data  to r3 ( using RFC  we are inserting the same as  a copy ) .
                        Then i have have get confirmation from R3 as data inserted succesfully  - Flag  .Then we have to come back to same table and update one field  flag as 'U'.</b>
                      For this I am using JDBC Sender Adapter and RFC Receiver Adapter .Will i use  as Synchronous  Interface ?
                      I think i have to use JDBC  Receiver Adapter    also to Complete the cycle .
                      Can you please clarify  the following....
                       1. how is that whole selected data will send to R3 . If i use Select statement in JDBC Sender Adapter  it will as resultset  .It will contain Multiple Rows right ?  Our RFC Will accept the parameter as string .
                        2. If we use the synchronous Interface will it send row by row from the result send Then  get back the result from R3 and come back again to JDBC ( Database ) and  update the required field ?
                        3. In JDBC Sender Adapter , the Update Parameter doing the Updation  Part  prior to get the status from R3. How to handle this ?
                       4. Do i need to configur teh separate JDBC Receiver adpater for this updation part ? Then We cann't use Synchronous Interface right ?
                     5 . Will JDCB Sender  Adapter get the result set (by select statement )  and send to r3 as row by row and get the confirmation message as inserted  ?
    Best Regards .,
    V.Rangarajan

    Hi Udo ,
                   Thanks for your reply . If i have used the synchronnous RFC Calls  , that RFC will return the flag as 'Y' or 'N'  , for  Either succesfully inserted or Not successful .
                      In this synchronous  how can i use the JDBC Receiver adapter ?
                     If 'Y'  or 'N' I have to update the<b> same table ,same row</b> which have sent to RFC .  My doubt , we are  wrirtng the  SQL  select query as  "  <b>select * from table  name where UpdateStatus is null</b> " .
                     So it will return multiple rows right ?   I have to uses the synchronous response form RFC to update the row of the  same table using JDBC Adapter right ?
                   Can you please explain me little bit more ? I am new to xi .
    Best Regards .,
    V.Rangarajan

  • How to send longer records?

    Conect it with my Dropbox, or upload it can solve. Please, I need to send the audio of my reunions (SORRY BAD ENGLISH!)
    P.S.: Send it via bluetooth help too

    Hi Ruban,
    <i>i mean how the input parameters or input data is given to RFC ( i am not abaper)...
    i mean in RFC..</i>
    AND
    <i>In real time how the input means Payload or business data is given in RFC to XI scenario?</i>
    In MAPPING program you will map the input values to RFC and while entire scanario is getting activated it will be called and posted Input Values to RFC ..
    <i> do not know about RFC much..if i go to SM37, i can call any function module according my scenario..can u explain me with one example?</i>
    Yes, You can call ant RFC into your XI scenarios..While you are creating your Integration Repository Desingining , you need to IMPORT RFCs what ever you want to use..
    <i>how to give range of value in RFC when executing RFC to xi scenario..</i>
    If you are calling a RFC from XI..then this can be addressed in mapping
    Thanks & Regards,
    Ramesh.

  • G5  Tower-how to send video recording to  remote monitors

    Mac noobie-Church is recording video to mac and using Powerpoint. Output shows only Powerpoint. How do I get the video signal for the monitors? --Firewire out of camera-Powerpoint goes to projectors-Appreciate your help

    Hi Gene, and a warm welcome to the forums & Macdom!
    Not sure about this, I don't have any of those except a G5, but Open System Preferences>Displays>Display tab>Detect Displays, do the other ones display a number on them?

  • How to send error record to session in call transaction method

    Hi experts,
    I want to send only the error record to session while executing the program in call transaction method. please give me example on this
    regards,
    siva kumar

    One logiv that I can suggest is that after you have got the details of the record in error, you write another perform build_Session and put the below logic in that.
    Logic:
    1. Build a internal table for the error records similar to the internal table you used for looping for the call transaction. In short this internal table will have only the records that have an error in call transaction.
    2. Copy the recordign that you have done before and put it in the perform inside the loop and build the BDC table.
    3. Then .using this BDC table you can build the BDC session.
    - Guru
    Reward points for helpful answers
    3.

  • How to send data to a RFC destination.

    Hai All,
      I am new to this forum.
      I want to know how to push data from infocube(SEM) into a BAPI in SAP R/3.
    Arul Jothi.

    Hi,
    This process is known as 'Retractor' in BPS.
    Please follow the below topic/thread exactly on the same topic:
    Re: Developing a custom retractor
    HTH,
    Regards,
    Nataraj.

  • How to send data to RFC Destination(RFC SENDER Adapter)

    Hi ,
    Scenario:  R/3 Backendà RFC Sender Adapterà XIàsome other system.
    I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
    Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
    Thanks and Regards,
    Siva Maranani

    I have one query for you that
    I am trying to develop a scenario in SAP XI
    SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
    I am able to send the data/message and it is successfully received at the third party web application.
    But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
    Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
    Regards
    Gopesh

  • How to send Mp4 file on Mail

    Please could some friendly person tell me how to send a recorded Mp4 track by email? I can drag it off the desktop (from iTunes) into a new message, but cannot play it back.

    Greetings,
    Why do you need to play it back? You already know what it is, so you just need to send it. Mail can't play these files; it has to use QuickTime to play them, so it's not unusual or unexpected that you can't play it in Mail.

  • Sending multi records as response from DB adapter

    Hi all,
    Thanks in advance.
    Using DB adapter how to send multiple records as a response. for ex. i am querying by the deptno 10, i will get
    4 records i want to send these 4 records as response.
    thanx
    pudur

    Hi Pudur,
    I am assuming that you are using 11g stack. Please go through below link to know more about DB adapter and it's implementaion in BPEL -
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_gsbpel.htm#BEIHEBGD (section 4.5 Introduction to Technology Adapters)
    For further queries you may raise thread in BPEL forum -
    BPEL
    Regards,
    Anuj

  • Sending multiple records to WebSerivce datacontrol

    hi,
    i need to send an array of complex type of objects to webservice in ADF mobile.
    i read the following,
    http://docs.oracle.com/cd/E38668_01/apirefs.111230/e27204/oracle/adfmf/framework/api/AdfmfJavaUtilities.html#invokeDataControlMethod_java_lang_String__java_lang_String__java_lang_String__java_util_List__java_util_List__java_util_List_
    here is what i am doing-
    i have multiple employee records in a dept.
    when i click a button, i want to send all the employee records in the sqllite db in the mobile device for a dept at once.
    for that i have a webservice data control and in there i have a method which takes a parameter of List type.
    how to use GenericTypeBeanSerializationHelper.toGenericType for sending the List type of parameters?
    regards,
    ad

    below URL explains about sending a single record,
    https://blogs.oracle.com/blueberry/entry/adf_mobile_and_sdo_making
    how to send multiple records with a single call to webservice method?
    regards,
    ad

  • How to send Internal table records to Idoc Inbound posting FM to create Ido

    Hello Experts,
    I have all the data necessary to create shipments in one internal table inside my ABAP program.
    I can use BAPI_SHIPMENT_CREATE to create shipments. But associated with this BAPi there is one ALE message type SHIPMENT_CREATEFROMDATA. Now my requirement is to use this message type to cretae my shipments via idocs for one scenario for some of the records in the internal table.
    For this message type, I got the inbound function module IDOC_INPUT_SHIPMENT_CREATEFROM from TBDBE table.
    Can anybody please let me know how to send the data from the internal table to this inbound function  module?
    Becasue it has mandatory parameters INPUT_METHOD, MASS_PROCESSING. What values should be passed to these parameters if the data has to be sent to this function module?
    Regards.

    Hi Ravikanth,
    Thankyou very much for your quick reply.
    So If I split my internal table data and populate IDOC_DATA and IDOC_CONTROL and pass to the inbound function module directly in my ABAP program, will that be going to create idocs and post shipments?
    I mean is it enough to call the Inbound posting function module directly in my ABAP program or any other FMs to be called to take care of ALE settings and shipment creation?
    Please confirm.
    REgards.

  • How to send e-mail notification automatically when a record is inserted?

    Dear All,
    Could anyone kindly tell me how to send e-mail notification automatically when a record is inserted through a form in Oracle Portal Release 2?
    Regards,
    Ridwan.

    Hi,
    If you are writing a form on a table then you can call the mail API from a database trigger on the table. If it is a form on a procedure, you can make the email call from the procedure. To know more about sending mails from plsql go to
    http://www.quest-pipelines.com/newsletter-v2/smtp.htm
    Thanks,
    Sharmila

Maybe you are looking for