Calling RFC In background

Hi All,
I have a situation here.I need to call an rfc from  another SAP system.And I need to wait for that RFC to get completed before I process with my caller program.
The problem here is that Function module is slow and it goes into timeout error in the source system since it starts the process in dialog process
So I was wondering if I can run this RFC in background in the source system through my caller program and wait till the RFC gets executed completly befor my caller program proceeds.
I tried using "In background Task " addition but it stil runs the function module in dialog process and also the wait command doesn't work.
Can anybody help me.
Thanks
Umang

Hi Umang,
As far as I know, If the DESTINATION is not available for the processing then only it starts the processing in Background mode.
Nut IN BACKGROUND TASK doesn't mean that it will process the FM in background.
Reward points if useful.
Regards,
Atish

Similar Messages

  • Creation of spool for job created by calling FM in background task

    Hi Gurus,
    1.Wanted to confirm if it is possible to attach spool to the job that has been created by calling a function module in background task.
    Currently I have created one RFC enabled FM and called it in background task. It runs fine, and the job is created which can be seen in SM37. But it does not contain the spool even if the RFC FM contains the code for list ALV.
    2. Also is it possible to control the name of the job created by calling the RFC FM in background task?
    Code for calling the FM is given below(ZK_XX is th RFC FM):
    CALL FUNCTION 'ZK_XX' IN BACKGROUND TASK
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
    EXPORTING
       startdate       = sy-datum
       starttime       = sy-uzeit
      NOSEND          = ' '
    COMMIT WORK.
    Thanks a lot for your help!!
    Warm Regards,
    Raveesh

    Thanks for replying.
    I need to do the processing in background. Hence using 'IN BACKGROUND TASK' addition.
    Please let me knowif you have some idea.
    Thanks & Warm Regards,
    Raveesh

  • RFC  IN  BACKGROUND TASK

    Hai all,
    I created RFC 'ZBAPI_BACKPROCES' .
    And Im using this RFC in my ABAP program.
    BUT I having to call this FUNCTION MODULE in background Task .But I dont know how its working and also this FM does not returning any values.
    Can anyone Say  example with explaination (how its working).
    Thanks In Advance.
    regards,
    Ekadevi.S

    Here's a good explanation of the RFC types:
    [Master the five remote function call (RFC) types in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694]
    Tim

  • RFC in background process.

    Hi All,
    I hve to process a RFC in background process.
    For doing that firstlly i hve creted va rfc n it's wkg fine then using this syntax i called this rfc for background task
    CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND TASK
    DESTINATION 'rfc_bacground'
    buy whenever any error raise this rfc created a error log in sm58 n i can watch it in sm58 but whenever it's work fine then i'm unble to see there result in sp01, beco'z  it's nt creating any spool in sp01 n my result is in table form.
    pls help me how to get my result
    regards,
    Anuj

    With this option you can EXPORT the whole internal table to INDX table and you can IMPORT the table for later usage.
    Please refer to demo programs DEMO_DATA_EXT_CLUSTER_EXPORT_D and DEMO_DATA_EXT_CLUSTER_DELETE.
    Make sure that you delete the the cluster after you import the data.

  • Rfc in background

    Hi all,
    i hve to call a rfc in background for this firstlly i call my rfc in background process
    CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND task
    DESTINATION 'rfc_destination_aj' " AS SEPARATE UNITthen
    CALL FUNCTION 'ID_OF_BACKGROUNDTASK'  for determined transaction ID
    then
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'  for scheduling background task time
    then
    CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'  for known background task status
    every thing is wkg fine n task is showing  scheduled n finished in sm37 but i 'm  not getting their data nor sp01 nor anyone n it also show duration 0 n dealy 0 in sm37 also nothing in sm58 and also without background rfc is wkg fine.
    suggest me how to get data
    regards,
    Anuj

    Thanx sourav,
    all the parameters in fm is passed by exporting n tables parameters n declarations is also on top.
    regards,
    Anuj

  • Calling RFC in BPM

    Hi ,
          My requirement is to create a background Job in XI using a set of function modules
    BAPI_XMI_LOGON
    BAPI_XBP_JOB_OPEN
    BAPI_XBP_JOB_ADD_ABAP_STEP
    BAPI_XBP_JOB_CLOSE
    BAPI_XBP_JOB_START_IMMEDIATELY
    BAPI_XMI_LOGOFF
    I am calling these function modules in BPM
    the problem I am facing when I call RFC in BPM it is creating new session, the second RFC reads the global data that is created by first RFC, since each RFC is creating a new session, for second RFC the data created(Global table updated in the function pool)  by first RFC is not available.
    Is there any way to solve the problem
    With Regards
    K.Varadharajan

    Hi Vardharajan,
    see your RFCs are related to eachother....by BPM it will be difficult because you will have a RFC conn made for each RFC call - so creating a new session in each call..........
    i suggest a workaround for your problem......create a single RFC which will have all your above RFCs......then you can get the data of second RFC in first RFC as all rfcs will then be in a single RFC............call this RFC from BPM.......
    Thanks,
    Rajeev Gupta

  • How to execute an RFC in background

    Hello People!
    Is there a way of execute an RFC in background without broken the execution after connection timeout? I have a RFC calling another RFC in background mode but the process stops after connection timeout. As far as I know, the sap user connection is done like DIALOG and, after timeout, all processes started are finished.
    I thought to use JCO directly but i'm looking for a better solution.
    Thanks to all.
    Best regards,
    Marcelo

    Process p = Runtime.getRuntime().exec("yourCommand.exe");

  • Call RFC  In ABAP XSLT

    Hello Experts,
          I have a requirement where in i need to call RFC(Which is created in R/3 system) In ABAP XSLT Mapping(defined iN xi system).
    Can some one help me to achieve this??
    **ITS URgent****
    Thanks and Regards,
    Prakash Babu.

    Hi James,
             Check here............
    /message/5182263#5182263 [original link is broken]
    RFC connections
    /message/5102602#5102602 [original link is broken]
    Regards,
    Vijay.

  • Error when call RFC Function module in R/3

    Dear All,
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    we are facing the error "Error while lookup Exception during processing the payload. Error when calling an adapter by using the communication channel CC_PPPI_MES_RFC_Rcvr (Party: , Service: WCD_320, Object ID: 16563889b449328eac76caa6a3bc592e) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'."
    This is the first time we are doing this configuration.
    Could you please let me know what woulbe the reason.

    read the original message
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    I am talking about the above Receiver RFC channel which you guys are using to call R/3 from XI. That where you need to change the commit parameter

  • Error while calling RFC when using BSP Web Interface

    Hi,
    we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
    R_AREA   
    R_METHOD 
    R_PACKAGE
    R_PARAM  
    R_PLEVEL 
    R_PM_NAME
    R_PROFILE
    R_STS_PT 
    R_STS_SUP
    R_WEBITF 
    S_RS_ADMWB
    S_RS_AUTH
    S_RS_COMP
    S_RS_COMP1
    S_RS_DAS 
    S_RS_ICUBE
    but we still get the error message: "Error while calling RFC".
    When using a user with SAP_ALL, it works.
    What can we do?
    Thx for your time.
    Joerg

    Actually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
    Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded.

  • Java call rfc check in original:error while checking in and storing.

    hi,experts.
    java call rfc check in original:error while checking in and storing. BAPI in the RFC is "BAPI_DOCUMENT_CJANGE2",
    the RFC was fine in SE37 and calling by Visual Basic. and in java,when mConnection.setAbapDebug(true), and  runing by step and step, was fine too.
    if mConnection.setAbapDebug(false) in JAVA, up error in title was displayed.
    what cause this error?
    Best Regards.

    Hi Priya
    Please use Su53 after getting the error and find any authorization is missing for the user..
    S_GUI Full Authorization is required..
    Since by giving BASIS Authorization its rectificed, then it shud be mostly due to Auth issues only
    Regards
    Aby

  • Error while calling RFC

    Hi all WebDynpro Gurus
    I am using EP7.
    I am developing an WD application for KM functionality in which I need to call RFC from backend. I followed the "<b>Creating WD application accessing ABAP function</b>" example.
    But when I executed the application I got following exception.
    <i><b>Root Cause</b>
    The initial exception that caused the request to fail, was:
       com.sap.lcr.api.cimclient.CIMClientException: java.net.MalformedURLException: URL must have a host part
    <b>Correction Hints</b>
    Accessing the System Landsape Directory (SLD) failed. Depending on the concrete reason (see root cause) check the following:
    is the SLD Supplier in the J2EE engine configured correctly? See the SLD documentation for more details about the SLD and about how to configure it.
    are all JCO destinations maintained correctly? Use the preinstalled Web Dynpro Content Admin application to check/edit the destination. Use the Ping and Test functions of the Content Admin to verify that each destination is properly configured.</i>
    I checked JcO connections in the webdynpro content admin. There the status is unknown and create tabs are disabled.
    I checked the SLD connections in content admin , the entries are as below:
    <b>Host name : blank
    Port: -1
    User: blank
    Url: http://.-1/sld</b>
    Where could i configure these SLD settings and what should be the new entries ?
    I dont have permission to view WebDynpro console.
    Please help me out.

    Vinod,
    Claim: "Hello, World" application with WD and RFC is the "Hello, World" application with most complex configuration.
    Prove:
    1. You need to run http://host:port/sld and import CIM context
    2. You need to add technical WebAS ABAP systems to SLD (same URL)
    3. You need to run Visual Administrator and setup SLD connection parameters (host, port, user, password)
    4. You need to (re)deploy your WD application
    5. You need to run web-based WebDynpro Content Administrator and configure JCO connections.
    Fortunately, [1]-[4] is necessary only ones per server, [5] is necessary per every application.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net
    P.S. After I'd started working with XI I understood that procedure described above is not complex at all

  • Standard Component in CRM that will call RFC Function Module

    HI all,
    Is there any Standard Component in CRM that will call RFC Function Module from ECC and that called RFC FM should Fetch the data from ECC.

    You can call RFC from different places, like programs, function modules, web dynpros, classes...
    So you just have to have appropriate RFC on ERP side and call it from CRM side. To call it you use the following statement...
          CALL FUNCTION 'YOUR RFC FUNCTION'
            DESTINATION i_dest "name of server
            EXPORTING
              your export parameters
            IMPORTING
              your import parameters
    Regards.

  • Call RFC on non ABAP-Host

    Hi experts,
    we try to integrate a machine into SAP.
    Therefore we want to use RFC-Communication.
    This means, the machine will call RFC-FMs on SAP.
    I know that this works and I only need to create a "normal" RFC-FM.
    But how can I call a RFC-FM on the machine out of SAP?
    Do I need to make a an RFC-FM like in ABAP but the destination is the machine (which is defined in SM59)?
    Kind regards

    Hi ,
    Please learn this link Connections to Non-SAP Systems (SAP Library - ALE Programming Guide)
    http://help.sap.com/saphelp_nw04/helpdata/en/52/16aafa543311d1891c0000e8322f96/content.htm
    You can take a look into idocs. For idocs processing you require RFC Library of the RFC Software Development Kit (RFC-SDK) on the non sap system side for processing RFC's.
    Regards,
    Sivaganesh

  • Can we call RFC in any other way except using adaptive

    Hi,
    I want to know if there is any possible way to call RFC other than using the adaptive model.
    Answers will rewarded.
    Regards

    Hi,
    you can use JCO or Enterprise Connector to connect with R/3.
    JCO-->http://www.sapdevelopment.co.uk/java/jco/jcohome.htm
    EC-->http://help.sap.com/saphelp_webas630/helpdata/en/79/c6213e225f9a0be10000000a114084/content.htm
    Regards,
    Naga

Maybe you are looking for

  • How to save file from server to client machine

    Hi, By using POI library i'm writing values to the existing excel sheet which is available in server. After i written values to the excel, i want to save the same file to the client machine. How to achieve this. I googled about this, but still i didn

  • Sync Error message reprocessing in MI server

    In MI 2.5 server, all sync error messages with staus I-Error need to be resolved manually and then reprocessed. Errors are generally data issues(Equipment type mismatch etc). In MI 7.1 , there are better data monitoring and administration capabilitie

  • HT3964 Power issue with iMac

    i have the 27" 2012 imac,and the last few days,the power buttonisnt responding,when its in sleep mode it wont power back up and im having to reset it by unplugging it from the wall,is or has anyone else experienced this and is there anything i can do

  • CDM and printing from Client side

    Hi all, Here I have installed RH9 and Tarantella 3.40. and I have 2 network card. First one is eth0 is for LAN and second is for static IP i.e eth1. my application server is win2k and I can access application easily. Now my problem is I want use clie

  • LDAP attribute multu value

    Hi, Our UME data source is from the LDAP. In the LDAP there is "telephone" atrribute and it  is a multi values attribute . When I m using UME API to get the value of this attribute, I always get only one value. How can I get all the telephone values