Asynchronous RFC

Hi,
Im using rfc_abap_install_and_run function module to create abap programs and function modules remotely from non-sap sytem i.e. ( Through JAVA beam).
Here, my requirement is that i want to run this function module paralelly i.e. Asynchronous RFc.
So, how can i use this function module and make it as 'starting new task' or any thing that should execute it parallelly many fm and create the required one..
As of now, it is getting error like user is editing...
I think you understood the problem..
Awaiting your response.
Thanks
raja

Hi,
So a maximum of six sessions can be opened.. so how can a user from JAVA can identify then the next i.e. seventh task should be again reset to first and then process it in a loop of 1 to 6.
Is that pssble from JAVA end..
thanks
rohith

Similar Messages

  • How to call Asynchronous RFC

    Hi Everybody,
                Could yo pls guide me on how to implement asynchronous RFC. When i run my RFC using Report :
    CALL FUNCTION 'Z_HR_NO_ALTINN_TX'  DESTINATION 'Q3A2X7A'starting new task 'test'
      exporting
        PASSWORD = 's'.
    I get the error saying :
    <b>What happened?</b>
        When executing the asynchronous RFC, the RFC destination "Q3A2X7A" had
        neither an internal (connection type 'I') nor an R/3 communication
        type (connection type '3'.
        Error in ABAP application program.
        The current ABAP program "Z_ALTINN_TEST" had to be terminated because one of
         the
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    <b>Error analysis</b>
        A typical cause of error is the
        execution of external programs (RFC destinations of the type
        TCP/IP) via asynchronous Remote Function Call (RFCs with the
        addition 'STARTING NEW TASK taskname').
        RFC destination... "Q3A2X7A"
    I would like to know if async RFC call is possible to XI.
    Regards,
    Raj

    Hi,
    you need to call the RFC from ERP, R3
    with
    call function XXXXX
    <b>in background</b>
    and Commit work.
    Regards,
    michal

  • Asynchronous RFC call from R/3

    I need to make an asynchronous RFC call from R/3. I receive an error message in R/3 stating that my RFC destination can only be of type I (Internal) or type 3 (R/3 system). In order for it to reach XI I need it to be of type T (TCP/IP). Any help would be appreciated.
    Here is the function call.
    CALL FUNCTION 'Z_B2B_R3_FUNCTIONAL_ACK' starting new task 'SESSION1'
       destination 'RFC2XMBSERVICE'
          EXPORTING
               MSG_TYPE            = msg_type
               ORDER_HEADER_RETURN = order_header_return
          TABLES
               RETURNCODE          = i_return.
    the RFC desitnation RFC2XMBSERVICE is of type TCP/IP which by default makes it synchronous.
    Thanks,
    Jim

    hi,
    have you tried:
    CALL FUNCTION 'Z_B2B_R3_FUNCTIONAL_ACK'
    in background task
    destination 'RFC2XMBSERVICE'
    EXPORTING
    MSG_TYPE = msg_type
    ORDER_HEADER_RETURN = order_header_return
    TABLES
    RETURNCODE = i_return.
    commit work.
    Regards,
    michal

  • Error with Asynchronous RFC call to JDBC

    Hi all,
    We are working on a scenarion where in we have to make an asynchronous RFC call to JDBC.
    We have configured RFC sender adapter following this weblog
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    We have created data types only for the database as RFC does not require any data types.
    And also we have created message types,message interfaces accordingly.
    In Message Mappping,we mapped the export parameters of RFC to the access fields of database message type.
    Also we have created sender agreement,interface determinations etc.... accordingly
    And for sending RFC request asynchronously we followed this weblog
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Once done with all the above steps we could able to trigger the RFC call and caught with the following errors in SXMB_MONI and no errors are seen in communication monitoring
    SOAP Error:
    +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>+
    +- <!--  Request Message Mapping+
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
       <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_curr_exg_mm2_</SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" /> <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_curr_exg_mm2_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Also trace shows the following error thogh the interface determinations are properly configured
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">--start sender interface action determination</Trace>
      <Trace level="1" type="T">select interface BAPI_EXCHRATE_GETCURRENTRATES*</Trace>
      <Trace level="1" type="T">select interface namespace urn:sap-com:document:sap:rfc:functions</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--start receiver interface action determination</Trace>
      <Trace level="1" type="T">Loop 0000000001</Trace>
      <Trace level="1" type="T">select interface *</Trace>
      <Trace level="1" type="T">select interface namespace</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
      <Trace level="1" type="T">Hence set action to DEL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />
      <Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>
      <Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----</Trace>
      <Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>
    the above errors are shown as part of request mapping..
    Can any one please let me know what other configurations do we need to do?
    I did not map the RFC import parameters,do we need to do that
    Any help in this regard is really appreciated
    Rgds,
    Santhosh

    Hi,
    I am really happy to hear that the problem with mapping is resolved.
    Now as per your requirment It needs to be aynschornous RFC--> XI ---> JDBC call. In XI you should map the RFC Export parameters to the traget structure of JDBC.
    then the question is to how to trigger the RFC Function Module in R/3 to XI.
    Plesae follow below steps to trigger it from SAP R/3
    1. Create a RFC in the R/3 system
    2. Configure the SM59 and Sender Communication channle as given in the Michal's blog. Also test if it is succesful.
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    3. Import the RFC in XI
    4. Do the mapping to the target strucutre
    5. Configure the JDBC receiver adapter
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    6. You can trigger the RFC from R/3 sytem by using
    Async Call - in ABAP program use below syntax to call RFC. Here the export parameters will be passed on to XI which further have mapped to JDBC.
    CALL Function "RFC Name" IN BACKGROUND TASK destination <sm59 destination>
    COMMIT WORK.
    Sync Call
    CALL Function "RFC Name" destination <sm59 destination>
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jan 27, 2008 9:14 AM

  • Receiver ASynchronous RFC

    I need to develop an Asynchronous RFC Receiver side?   How should I accomplish this?
    appreicate your help.

    Hi Mohan,
    no, you dont call the RFC direcly. You just trigger a message, what ever you like, to XI. The inbound interface - your RFC - will be found by the interface determination of you IB directory. The ABAP call is made by the RFC adapter (you have to configure that RFC communication channel like described in <a href="http://help.sap.com/saphelp_nw04/helpdata/en/33/c6e63b60c25767e10000000a11402f/frameset.htm">SAP library: RFC-Adapter</a>) who translates the XML to DIAG protocol.
    Regards,
    Udo

  • TRFC and Asynchronous RFC

    Is there any diff between TRFC and ARFC ?
    Is TRFC another name for ARFC?

    Hi,
    Transactional RFC (tRFC) they are previously known as ARFC
    Transactional RFC (tRFC, previously known as asynchronous RFC) is an asynchronous communication method that executes the called function module just once in the RFC server. The remote system need not be available at the time when the RFC client program is executing a tRFC. The tRFC component stores the called RFC function, together with the corresponding data, in the SAP database under a unique transaction ID (TID).
    If a call is sent, and the receiving system is down, the call remains in the local queue. The calling dialog program can proceed without waiting to see whether the remote call was successful. If the receiving system does not become active within a certain amount of time, the call is scheduled to run in batch.
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls
    ·         are executed in the order in which they are called
    ·         are executed in the same program context in the target system
    ·         run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to maintain the transactional sequence of the calls.
    Disadvantages of tRFC
    ·       tRFC processes all LUWs independently of one another. Due to the amount of activated tRFC processes, this procedure can reduce performance significantly in both the send and the target systems.
    ·       In addition, the sequence of LUWs defined in the application cannot be kept. It is therefore impossible to guarantee that the transactions will be executed in the sequence dictated by the application. The only thing that can be guaranteed is that all LUWs are transferred sooner or later.
    regards
    prasanth

  • Why asynchronous RFC is stated as asnynchronous processing type ?

    in help document it stated that ,in r/3 system asynchronous RFC has different meaning...
    what is that meaning?
    why it stated as asynchronous processing type?

    hi,
    <b>ARFC:</b>
    Asynchronous remote function calls (aRFCs) are similar to transactional RFCs, in that the user
    does not have to wait for their completion before continuing the calling dialog. There are three
    characteristics, however, that distinguish asynchronous RFCs from transactional RFCs:
    When the caller starts an asynchronous RFC, the called server must be available to
    accept the request.
    The parameters of asynchronous RFCs are not logged to the database, but sent directly
    to the server.
    Asynchronous RFCs allow the user to carry on an interactive dialog with the remote
    system.
    The calling program can receive results from the asynchronous RFC.
    You can use asynchronous remote function calls whenever you need to establish communication
    with a remote system, but do not want to wait for the function’s result before continuing
    processing. Asynchronous RFCs can also be sent to the same system. In this case, the system
    opens a new session (or window) and allows you to switch back and forth between the calling
    dialog and the called session.
    To start a remote function call asynchronously, use the following syntax:
    CALL FUNCTION RemoteFunction STARTING NEW TASK taskname
    Destination ...
    EXPORTING...
    TABLES ...
    EXCEPTIONS...
    I hope it helps.
    regards
    Anver

  • Asynchronous RFC vs synchronous RFC

    Hi Experts,
    Can you give me what are the differences between asynchronous RFC and synchronous RFC?
    thanks.
    Moderator message : Not enough re-search before posting. Thread locked.
    Edited by: Vinod Kumar on Jul 4, 2011 4:45 PM

    Gabriel,
    <b>synchronous</b>
    the sender sends a request message to the receiver and waits for a response message.
    for eg. consider a scenario.. where u have a customer no. and u need customer details.which is stored in R/3...so u can configure a HTTP to R/3 synchronous scenario... a http request will be sent to R/3 having a CUSTOMER NO....and in response u will get details of customer like...cust name,address, etc...
    <b>asynchronous</b>
    sender send a request message but doesn't wait for response.
    for eg consider a file to file scenario .where u need to pick a file from a source location to a destinartion location....so...it will asynchronous interface
    hope u r lil bit clear!!.
    Regards
    Biplab

  • It is possible to get a response of a asynchronous RFC call thru wait loop

    Hi Experts,
    The requirement is that i queue up all the requests from a web services ( One queue per plant for example) which i set in the HTTP sender URL ( i mean the queue name ). and i am posting the records thru a RFC call.
    1. Let the RFC call be synchronous and in case the R/3 system is done.. Will the XI queue keep the Call and keep on retrying it till the R/3 system is up.
    2. Otherwise if the RFC call be asynchronous, is it possible to introduce a wait loop in BPM to listen to the RFC till i get some response ( i think this is not possible).
    Need your suggestion on the same...
    The requirement demands that no single request from the web service should be lost.. in case of failure of R/3 they should be queued up and re tried.. Forget about the error because of exception in RFC this will be taken care manually..
    Thanks for your response in advance.

    Hi Rajesh,
    you can queue and restart only asynchronous messages. I think you can build a Business Process, where you repeat sending a message til you have success or maximum number of tries is reached. But no good idea, coz you will get timeout at HTTP sender. Aynchronous messages dont have a response.
    May be, XI can solve your task in the standard: In transaction SMQR you can just configure what you describe. All asynchronous messages will be queued and restartet in case of receiver not reachable. You can configure no of retries and intervall between.
    Regards,
    Udo

  • Asynchronous RFC calling using BPM

    Hi to all,
    I have this scenario:
    FILE -> XI -> RFC -> XI
    I want to use the BPM to do this, thus I have built this BPM:
    START -> RECEIVE -> BLOCK1(SEND) -> BLOCK1(RECEIVE) -> STOP
    My problem is that I want to use an asynchronous scenario and, thus, when XI sends message to RFC, BPM seems to become inactive and the BPM is not able to receive the RFC Response. How can I solve this problem? How can I mantain BPM active to receive the RFC Response?
    Thanks to all!

    Hey,
    I suppose you are trying to do a similar senario
    The scenario must be executed asynchronously, but there needs to be an automatic confirmation that the business data was successfully processed (this would be the equivalent of an applicationacknowledgement). Cross-component BPM (ccBPM) will be used to process the confirmation message.
    How To… Use BAPI wrappers in asynchronous scenarios with ccBPM
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59ef6011-0d01-0010-bfb0-b51381e00509
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Asynchronous RFC call

    I need to Send some information to an RFC and my friend is saying that, I cannot call RFC Asynchronously and I couldnot understand that point, could some one help me please.
    Thanks.

    Dear Saravana,
    Dear Sravya,
    I would like to do the following scenario:
    SAP/PS --> XI --> JMS
    In SAP I call the Bapi: BAPI_NETWORK_MAINTAIN and sends network datas to JMS through XI.
    In the design:
    I only imported the BAPI to my SWCV. (I don't use any own made Data types/Message types/Message interfaces.)
    In the config:
    I used this imported BAPI name (BAPI_NETWORK_MAINTAIN) as my interface.
    It works, but it sends the message synchronously...
    I would like to use this simplicity (only import the BAPI and don't use any own created interfaces,DTs, MTs and BPM neither)
    But if I don't create any own Message Interface I can't control the synchronous/asynchronous mode.
    Is it feasible that way??
    Thank you in advance!
    Andras

  • Asynchronous RFC adapter

    how to use RFC adapter asynchronous way.......jena

    Hi Jena,
    Go Through this blogs..
    Hope useful to you..
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Reward Points If it is useful
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on Apr 3, 2008 5:44 PM

  • Dynamic queue selection with Asynchronous RFC call

    Hi Experts,
    I have a new requirement in designing the business process thru XI. The scenario is posting production orders from a web service thru XI to R3 ( RFC calls). The requirement is that the production orders may come from different plant (Plant and production line combination). So in order to faciliate the load balancing we need to dynamically allot all the process orders from a Plant to single or two queues ( by queues i mean the queuing of the RFC requests with QoS = EO or EOIO). So dynamic selection of queues (XBIXnn) is possible in XI ?.
    Please let me know in case you need further clarification on this
    Thanks in advance

    Rajesh,
    Some more interesting read from,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/65ce41ae343e2be10000000a1553f6/content.htm
    <i>Define Quality of Service (EOIO)
           8.      Specify EOIO (Exactly Once in Order) as the quality of service, as required.
    Messages are then delivered in the same sequence that they are sent in by the integration process.
                                a.      Specify a queue in the Queue Name field.
    You can choose the name of the queue yourself.
    Max. length: 16 characters
    Permitted characters are alphanumeric characters and the following special characters:
    / (slash)
    _ (underscore)
    - (hyphen)
    All send steps that have the same queue name are delivered in the sequence that they are sent in by the integration process.</i> 
    Should be possible if you use a BPM.
    Regards
    Bhavesh

  • Asynchronous RFC scenario

    Hello,
    My scenario is synchronous RFc to JDBC.
    The scenario works fine . But after certain time interval the scenario stops working i.e when i execute report, no data is sent to XI
    However when i save and activate RFC sender Comm. Channel , the scenario starts working again.
    Can anybody tell me why do i need to activate the Comm. Channel , is this a Cache issue, if yes , how do i resolve it?
    Regards,
    Loveena

    Hi all,
    As per my observation what is happening is after an idle time of 2 hours(scenario is not executed for this duration) , the scenario stops working and again when i run CPA cache or reactivate the RFC channel , the scenario starts working.
    However in real time this should not happen as we cannot refresh the cache manually evrytime.
    Can anybody tell me what can be the problem ?
    Regards,
    Loveena

  • JCo - asynchronous calling RFC

    As far as I know, there is possibility make asynchronous RFC call via JCo.
    How can I get return values from such calling?
    Is there some code example, please?
    Thanks.

    hi!
    please check this thread
    Get the return value of an RFC function / BAPI

Maybe you are looking for

  • How do I print black and white on Mountain Lion?

    Hey. Does anyone know how to print black and white on Mountain Lion? I searched the community and Google but I couldn't find anything... Regards, TeaDragon

  • Billng not posted to accounts automatically

    Dear Friends, While saving billing document it should post to account also (the Posting block is not selected in the relevent billing document type) but when i go to change mode of that bill document and if i try to post manually it is getting posted

  • Reverse Legacy Asset

    Hi all, I have a case. One of my client uploaded aset legacy using AS91 in january 2009. Since the transaction value only posted in subledger, they posted the GL value using OASV in december 2008 and carryforward the balance to 2009. Now the auditor

  • VG224 fax issue

    Analog Phone->VG224(MGCP)--CCM4.1(3)--3725(MGCP)--PSTN Analog works fine, can dial any PSTN number and from the PSTN can the analog phone. But when I connect a fax machine to the VG224, and try from IP Phone dial the fax number, there is no fax dial

  • Separate Modem and router

    I have just purchased a linksys AM 200 modem and a linksys BFSER41 router. Currently failed to get the combination to function. I can get the modem to work on its own but not with the separate router. Can someone provide the idiots guide please?