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

Similar Messages

  • How to call two RFC in a single JAVA method.

    Dear all,
    I just want to know that how to call two RFC in a single java method which is defined in CRM implementation file. I'm using NWDS as the customization IDE & working on ISA 7.0.

    Hi Sunil,
    In the Backend Implementation class, in any method you can call multiple RFCs.
    It will be the same way as you do for the single RFC call.
    Following syntax is for your reference.
    Get the JCO connection
    JCoConnection  connection = getDefaultJCoConnection();
    JCO.Function func = connection.getJCoFunction("ZXXXXXXX");
    set the import parameters
    Execute it.
    connection.execute(func);
    get the data from export / table parameters
    Now call the second RFC
    func = connection.getJCoFunction("ZYYYYYYYYYY");
    set the import parameters
    Execute it.
    get the data from export / table parameters
    close the connection
    Hope this will help you.
    -Chandra.
    Edited by: Chandra Sekhar Seeli on Jan 13, 2011 2:04 PM

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • How to call the RFC from R/3 to SRM, when we use webdynpro abap? (Urgent)

    Hello
    We use SRM Server 5.5 with classic scenario.
    We want to call RFC in R/3 from webdynpro ABAP.
    How can we do that?
    We are developing the web report using webdynpro abap.
    So we need some of R/3 data such like PR(EBAN)and PO(EKKO,EKPO).
    When user choose the search parameter, report diplay the Shopping cart, PR and PO data on webdynpro.  So we call the R/3 RFC to display the PR, PO data.
    But I tired to call the RFC in R/3, We could not call it.
    How to call the RFC from R/3 to SRM, when we use webdynpro abap?
    Thank you,
    Best Regards,
    SH.

    Hi
    <b>Please look at the following threads as well -></b>
    WebDynpro in SRM
    BAPI's /RFC's in SRM
    BAPI to Change Shopping Cart by RFC
    SRM60 and webdynpro
    Webdynpro Services Exception
    WebDynpro using BAPI has an error
    SRM60 and webdynpro...
    <b>SAP uses META Function modules in SRM to get data from R/3 back-end.</b>
    <u>For getting Purchase requistion data, use the function modules -></u>
    META_REQUISITION_CHANGE        Change purchase requisition              
    META_REQUISITION_CREATE        Create Requisition                       
    META_REQUISITION_DELETE        Delete/close purchase requisition        
    META_REQUISITION_GETDETAIL     Display requisition details              
    META_REQUISITION_GETITEMS      Display requisition items                
    META_REQUISITION_GETRELINFO    Get Releasease Info for requisitions
    <u>For getting Purchase order data, use the function modules -></u>
    META_PO_CREATE                 Create purchase order                    
    META_PO_DELETE                 Delete reservation                       
    META_PO_GETDETAIL              Display purchase order details           
    META_PO_GETITEMS               Display purchase order items             
    META_PO_GETRELINFO             Display purchase order release information
    Hope this will definitely help. Do let me know.
    Regards
    - Atul

  • How to call the RFC from XI system

    Dear Friends,
        My requirement is RFC to RFC scenario      i.e SAP to XI to Third party system.
    I have the BAPI_EUQI_CREATE rfc, this RFC is available in ECCsystem, that RFC I imported in XI system, so third party system how to call this RFC.
    please give me the suggestion it is very helpful.
    Regards,
    Shalini Shah

    Hi Shalini,
    You have create a RFC in the 3rd party system and import that RFC in XI System using 3rd party adapter.Do the necessary mapping and configure the sender RFC Adapter and at receiver side configure 3rd paty Adapter.
    The 3rd party adapters must be installed via Deploy Tool or JSPM. But u should have a sda file with the adpater content.
    see here for more details on JSPM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5006901f-925c-2910-5f98-9ae26cc07eca
    For more info:
    If you still want to do it,
    1. Import the RFCs of sender and of receiver.
    2. Do the necessary mapping.
    3. Configure sender and receiver RFC adapters.
    Before that check if you have RFC destination for the RFC adapter. If not You should establish it. To establish an RFC destination for the RFC adapter.
    1. Call the transaction Display and Maintain RFC Destinations (SM59).
    2. Select an existing RFC destination of type ABAP Connections (for example, ABAP_Old) by double-clicking it.
    3. Choose Destination ® Copy and copy the RFC destination using a new name (for example, ABAP_New).
    4. Save the new RFC destination (ABAP_New) and delete the old RFC destination (ABAP_Old).
    5. Create a new RFC destination (for example, RFC_Adapter) of type T (TCP/IP connection) as the RFC destination for the RFC adapter.
    6. Select the registration type Registered Server Program and in the Program ID field enter the corresponding program ID from the configuration of the sender RFC adapter.
    7. In the Gateway host and Gateway service fields, enter the gateway host and gateway service from the configuration of the sender RFC adapter.
    8. If the sender system is a Unicode system, define the RFC destination as Unicode.
    9. Using the name of the old ABAP connection (ABAP_Old), create a new RFC destination of type L (logical destination with reference entry).
    10. In the Reference Entry field enter the RFC destination (RFC_Adapter) for the RFC adapter.
    For more details take a look at this link. http://help.sap.com/saphelp_nw70/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    Dont forget to Reward points if this helps
    Regards
    Pragathi.
    Edited by: Pragathi on May 24, 2008 7:21 AM

  • How to call a RFC of a remote system from an ABAP webdynpro component

    Dear Experts,
    I am a newbie in ABAP Webdynpro.
    I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
    How do I do that ?? Please help.
    Regards,
    Mamai.

    Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
    And the regarding the method of calling it depends on your FM.
    if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
    if it is simple straight forward RFC you can directly call it.
    for creating RFC service call call use this method
    1. Starting the Wizard
    To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
    workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
    through the creation process.
    Press Continue.
    2. Choice of Controller
    On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
    controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
    global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
    embed service calls in view controllers.
    a. Select radio button Use Existent Controller
    b. Do not change the default entry for component: <CC name>
    c. Enter for controller COMPONENTCONTROLLER
    d. Press Continue.
    3. Service Type and Service Selection
    a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
    destination here. Press Continue.
    b. Select the service: for Function Module enter <RFC name>. Press Continue.
    4. The Required Methods and Context Elements
    On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
    required by the service call as well as to the required methods. The proposed names are based on the names of the
    embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
    box.
    a. Adapt Context: Select from Nodes/Attributes . Press Continue.
    b. Specify Method Name: leave all entries as provided: Component:  Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
    5. Completing the Choice
    When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
    and contexts at your disposal for using them within your Web Dynpro component.
    or if you want to call directly the use the call statement with destination

  • How to call Custom RFC enabled Function Module in R/3 From XI

    Hi Experts,
    I want to call custom RFC enabled Function Module by sending some input parameters from XI.
    How to do this
    Thnx
    RAMS

    Hi RAMS,
    1. Under the SWCV Go to the Imported Objects.
    2. Right click on the RFC and click on the Import of SAP object.
    3. Give the logon server name, system number the user name and pasword.
    4. Select the RFC u want to import.
    5. Execute the import and the RFC is imported under the SWCV.
    Now u can use this Imported RFC in the scenarios of that SWCV.
    Regards
    Santhosh
    Remember to set the thread to solved when you have received a solution

  • How to call the RFC FM at the time of mapping

    Hi Experts,
    I am new to PI. I want to know How can we call the RFC function module at the time of message mapping.
    Can any plz explain me?
    Thanks
    Karthik

    First import the RFC FM by selecting import of RFC and IDOC supported button at SWC level and then provide the necessary R/3 details and get the RFC FM imported to IR .
    Once this is done you can have a drop down list for the selecting the source or target message for mapping
    Rajesh

  • How to call the rfc in webdynpro abap..?

    Dear Experts,
    I need to add two numbers using RFC in webdynpro abap.
    First we have to give the input then click the submit button.. The result will be shown in next screen with addition of two numbers...  Please help me in this...
    Thanks.

    Calling an RFC Function module in Web Dynpro ABAP is nothing different from Classical ABAP
    use Pattern button to call function module and use DESTINATION syntax to specify the RFC destination
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_II.pdf?PHPSESSID=c528a60bf8857431c0fa6f6595639da7
    In Above document, page no 7, there is a wizard for Service call, in that 4th step is select service where
    you can specify the function module name and the rfc destination name
    Abhi

  • How to call a RFC function from ABAP to external C/C++ system

    Hi
    Can some one describe me what are the steps that needs to be done to call a RFC function in external C++ system and to handle errors.
    Any previous experience,please share

    Hi,
    i think this is the wrong Forum.
    Better use the SAP NetWeaver .NET Technologies Forum on this site.
    Henning

  • How to call the RFC's from the third party applications or Non SAP applicat

    Hi,
    For calling RFC's from the wedynpro , SAP has provided the modeling concept.
    In the same way, if i want to access or call the RFC 's from the third applications or Non SAP applications what is the procedure and what is the methodoligy.
    As per my knowledge, we need to expose those RFC's as webservices . Then we must be able to acces in hetrogeous environment from any third party applications..
    Please revert back soon, It is very urgent.
    Regards
    Vijay

    Ayyappa Raj,
    Thanks for the reply.
    Please let me the detailed information for implementing.
    AS you said . I need expose the RFC's as webservice. This point is clear to me.
    2) Use tthe JCo to connect and create client proxy.
    Can u please elabrate the above point?
    If u have any steps created in the document or url to refer. Please forward it to me.
    Please forwar the document to this id "vijay00" in yahoo.
    AS the sdn is not allowing to give  the maill id i have given only the id details in yahoo.
    I am new to this procedure.
    Regards
    Vijay

  • How to call a RFC-enabled function module

    Hi All,
    We have 2 systems; system 1 (client 420) and system 2 (client 600).
    I just want to know that how can a RFC-enabled function module be called from one system (420) whereas the RFC-enabled functio nmodule exists in the other system (600).
    Also, as per my understanding any RFC-enabled function module is a BAPI. Please confirm.
    Please help.
    Thanks & Regards,
    Namrata

    Hi,
    RFC enabled FM can be called from anther system:
    From 420 we can call RFC FM residing in 600, through RFC destination cretaed in SM59 tcode in 420 client.In sm59, maintain the entries of destination system i.e 600.and test the connection whether it is succesful or not/ through remote logon.
    suppose in 420 client , in sm59 u have cretaed with destination DEST600 say.
    In 420, u can code as below..
    Call  'RSSDK_LOGSYS_REMOTE_CHECK' destination DEST600
    exporting
    I_QSYSTEMNAME =
    tables
    E_T_MSG =
    there exist difference between BAPI/RFC.
    BAPI always return messages / RFC doen't.
    BAPI follows ceratin naiming convetions while defineing the parameter structures ( ex BAPI_..)
    In bapi , no dialog screens can be called.
    In bapi, statements liek COmmit work/Call Transaction/Submit...shouldn't exit.
    Bapi's are implemented as FM's and are stored as methods in Business Object repository.
    another Ex for RFC
    RSAN_LOGSYS_DETERMINE
    Revert back if any issues,
    Reagrds,
    Naveen
    Edited by: Naveen Deva on Feb 18, 2009 9:54 AM

  • Call an RFC from a Bean Class

    Hi,
    My question is how to call an RFC from a bean Class (stateless Session Bean). I have followed a link and wrote a following class :
    public class Bapi1
         public static void main(String args[])throws ApplicationFaultException, SystemFaultException 
         String aMonth[] = null;
         String aMonthVal[] = null;
         JCO.Client jcoclient = null;
                   Yfunc001_Output output = null;
                   try {
                        jcoclient = JCO.createClient("Client","Username","Password","Lang","SAP Application System"," SAP System Number");     
                        try {
                             jcoclient.connect();
                             System.out.println(""+ jcoclient.getASHost()+ jcoclient.getClient()+ jcoclient.getLanguage()+ jcoclient.getSystemNumber()jcoclient.getUser()jcoclient.isValid());
                        } catch (RuntimeException e2) {
                             // TODO Auto-generated catch block
                             e2.printStackTrace();
                   } catch (Exception e) {
                        // TODO Auto-generated catch block
                        System.out.println(e.getLocalizedMessage());               
                        e.printStackTrace();
                   Yfunc001_Input input = new Yfunc001_Input();
                   Graph_PortType mytype = new Graph_PortType();
                   mytype.messageSpecifier.setJcoClient(jcoclient);
                   try {
                        output =  mytype.yfunc001(input);
                   } catch (SystemFaultException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                   } catch (ApplicationFaultException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                   jcoclient.disconnect();
                   YstructType_List list = output.get_as_listItab();
                   int listsize = list.size();
                   for (int i = 0; i < listsize; i++) {
                     YstructType elem = list.getYstructType(i);
                                            aMonth<i> = elem.getMth();
                                          aMonthVal<i> = elem.getMval();
    When I try to Execute this class I get the following Exception
    java.lang.NoClassDefFoundError
    *     at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:882)*
    *     at com.sap.mw.jco.JCO$Client.connect(JCO.java:3159)*
    *     at com.ltil.fusionejb.Bapi1.main(Bapi1.java:32)*
    Exception in thread "main"
    I get an Error on Line : jcoclient.connect();
    What All libraries I need to install? Please List down the Steps if possible. Points with be awarded...
    Thanks,
    Prasanna.

    Hi,
    Add the following jar to the classpath,
    <Drive>:/usr/sap/<SID>/JC00/j2ee/cluster/server0/bin/ext/com.sap.mw.jco/jrfc.jar
    Hope this helps in solving the issue !
    Regards,
    Srinivasan T

  • Procedure to call an RFC from another R/3 system

    Hi ,
    I am new to RFC, how can we do the following steps:
    1.      Run a routine in Dev environment which calls an RFC which is in testing
    2.      The RFC performs the task as written  in it
    3.      RFC passes the result to routine in Dev and
    4.      We display the return in the end in Dev.
    Do i need any authorization for that?
    Regards,
    Pooja

    Hi,
    I wanted to know how to call an RFC from one R/3 system to another R/3 system .
    And what settings should be made to do a RFC in T code SM59?
    what does the function module RFC_READ_REPORT do? Can i call any program through this?(As the documentation is not available I am not able to understand the functionality of this Function module)
    Regards,
    Pooja

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

Maybe you are looking for

  • Delivery schedule-output type

    Hi, I am loking for steps  of configuratuion for message output type for Delivery schedule. Can anybody gives light on this please? With Regards, Jaheer

  • Understanding report need backup recovery window ..

    Hello, I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of report need backup;But I noticed than this command return just the list of dataf

  • Umlaut in request-parameter gets garbled

    hi, when i call a bsp-page on a webas 6.40 and add a request-parameter to the url with a german umlaut in it (like ?name=kölbl), i get a box (�) displayed instead of the correct umlaut when i print it's value to the html-output of that page. it doesn

  • File adapter Need to wait When Other Applicatio is writing the file

    Hi All, This is File to File Interface, iam using NFS here. While other application is writing the file to the Folder, XI Sender File Adapter shld wait for certain time and then pick it up. We have the Option " MSecs to Wait Before Modification Check

  • No type in print box

    there is no type in the print dialog box when  i try to print a document out of reader 10.1.2