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

Similar Messages

  • How to PI call R/3 RFC without BPM.

    Hi Expert.
    Why PI direct call RFC probably is not a possibility of doing without BPM.
    It makes RFC of separate way, it calling it is made Report program where there is a possibility of doing.
    Different adapter where it becomes direct call, RFC piece bay occupational calling there probably is not a possibility of doing.

    Krishna Moorthy P, Thank you so much your answer.
    I add question.
    My scenario is very simple.
    Case 1. File to RFC to JDBC Scenario. (Sync)
               Using BPM. PI call File adatper, and PI call RFC Function, and RFC return data send to PI to JDBC.
    Case 2. QRFC to JDBC Scenario.(Async)
                Using se37 for back job. So, Back job Function send to PI to JDBC.
    In this two case, to what kind of is the efficiency better.
    <b>I think that case 2 is performance better case1.</b>
    It isn't like that? Krishna Moorthy P
    I wating for your answer.
    Message was edited by:
            JuYeop Kim

  • Error while consuming RFC in BPM

    Hi
    We are trying to consume an RFC as an automated task in the BPM model (NWDS, CE 7.2)
    We have followed all steps and configurations as per the document "How To... Use SOA Configuration to
    Call RFCs and Web Services from
    within SAP NetWeaver BPM"
    Used the Application communication instead of Business scenario as there was only one service.
    But the process is failing with the error ( starttestproc is process name, testsart1 is the pool name,ZBAPI_MATERIAL_STAT_UPDATE is teh service interface)
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script "_testsart1:AUTOMATED_ACTIVITY_mmcrt(
          com.sap.glx.adapter.BPMNAdapter:Token_0_testsrat1_d7b4bc02b531fc00c2446a59a349fb54 token,
          com.sap.glx.adapter.BPMNAdapter:Instance_0_testsrat1_d7b4bc02b531fc00c2446a59a349fb54 parent,
          com.sap.glx.adapter.internal.ContainerAdapter:Context_0_do_d7b4bc02b531fc00c2446a59a349fb54 context_1){
      exit=new com.sap.glx.adapter.BPMNAdapter:Exit();
      exit:onActivation("E046953013BCEDE722E411E08D36A4BADBC41936", parent, token);
      delete exit;
      controller=new com.sap.glx.adapter.internal.ExceptionAdapter:ExceptionController();
      controller:setContext(token);
      delete controller;
      callscope=new com.sap.glx.adapter.internal.TypeRegistry:Scope_10_testsart1_d7b4bc02b531fc00c2446a59a349fb54(parent);
      call=new com.sap.glx.adapter.UnifiedConnectivityAdapter:Call_0_mmcrt_d7b4bc02b531fc00c2446a59a349fb54(callscope);
      request=callscope:instantiate
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script command "call:invoke()"
    com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:796)
    ... (11 more)
    com.sap.glx.core.kernel.api.TransitionException: com.sap.glx.adapter.api.AdapterException: com.sap.engine.interfaces.sca.exception.SCADASException: Could not invoke service reference name 03cda3e6-985c-40b7-bce1-89732abfe4c3, component name demo.sap.comstarttestprocBPMcomponent, application name demo.sap.com/starttestproc.
    com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:532)
    com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:245)
    ... (12 more)
    com.sap.glx.adapter.api.AdapterException: com.sap.engine.interfaces.sca.exception.SCADASException: Could not invoke service reference name 03cda3e6-985c-40b7-bce1-89732abfe4c3, component name demo.sap.comstarttestprocBPMcomponent, application name demo.sap.com/starttestproc.
    com.sap.glx.adapter.app.ucon.SCADASWrapperImpl.invoke(SCADASWrapperImpl.java:156)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallObject.invokeWebServiceOperation(UnifiedWebServiceCallObject.java:100)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.invoke(UnifiedWebServiceCallClass.java:174)
    ... (14 more)
    com.sap.engine.interfaces.sca.exception.SCADASException: Could not invoke service reference name 03cda3e6-985c-40b7-bce1-89732abfe4c3, component name demo.sap.comstarttestprocBPMcomponent, application name demo.sap.com/starttestproc.
    com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:362)
    ... (17 more)
    com.sap.engine.interfaces.sca.spi.PluginException: Could not process message for operation ZBAPI_MATERIAL_STAT_UPDATE in JCO plugin module.
    com.sap.sdo.das.jco.JCoInvoker.accept(JCoInvoker.java:359)
    com.sap.engine.services.sca.plugins.jco.JCoImplementationInstance.accept(JCoImplementationInstance.java:63)
    ... (18 more)
    We are
    Edited by: Lavanya Sambaraju on Jan 19, 2011 12:41 PM
    We are able to ping the backend ECC from CE and vice versa.
    Any clues?
    Regards
    Lavanya

    Hi Anji,
    Thanks a lot!!!
    Now i am able to activate it but it is showing warning message "Parameter HEADER_DATA (type ZHEADER) can reduce performance in RFC.
    Can we remove this warning?
    I hope it will not affect the RFC.
    best regards

  • Soap- XI- RFC- DB BPM scenario help

    Hi,
    I want to implement a scenario like this. a third party system use the soap adapter to call the ECC RFC via XI.and i want to write the RFC response into another DB using the jdbc adapter.after that i want to send back the DB update_insert result to soap client (third party system).so the scenario looks like this
    soap request->XI->RFC
                      |
    soap response <---DB
    i want to use BPM,but have not too much experience.appreciate your help.
    Regards
    xiaofeng

    Hi,
    This will be a Synch Asycnh Scenario and you will need a BPM with a SYNCH ASYNCH bridge.
    Steps :
    1. Receiver Request Message from SOAP -- Open SA Bridge
    2. Send Syunchronous -- To call RFC and get Response
    3. Send Synchronous -- TO send data to JDBC and get response
    4. Send -- TO send data back to SOAP -- Close SA Bridge.
    You will have to do the corresponding message mapping , etc.
    Take a look at the SAP BASIS Component -- Patterns -- Synch Asycnch pattern and this link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/content.htm
    Regards,
    Bhavesh

  • Calling RFC placed in PI from Portal

    Dear All,
    We have a scenario where we have RFCs in ECC and it has to be called from Portal through PI.
    Please suggest the possible and easiest ways.
    Please note these RFC are already being called from Portal to ECC directly. So we need to change it be called from PI.
    with regards,
    Ravi Siddam

    Hi Ravi,
    You can do it in either any one of the below ways.
    Use PI Http Url to push the data to PI and from there you can call RFC.
    Plz check below link: Sender Synchronous HTTP Adapter
    Or you can use Web sevice to push the data to PI and then you call RFC.
    Plz check below link on Web service scenario:/people/shabarish.vijayakumar/blog/2007/11/07/walkthrough--soap-xi-rfcbapi
    But before going for above solutions. Please have a looku2026 on below info and decide whether to go for it or not.
    SAP NetWeaver PI 7.1 Usage Scenarios: When NOT to use SAP PI
    User Interface Integration scenario: This is a common scenario faced by the development team u2013 the Webdynpro application is developed on the SAP J2EE application server integrated with the portal. The business data has to be fetched from the SAP ECC backend.
    The User Interface would demand a quick response from the backend for fetching data and conducting the transaction. This is a synchronous scenario, and it would also be conducted with high usage every day. Hence, it is recommended to have a direct integration between the source application (WebDynpro application) and the target application (SAP ECC6) without using SAP PI. It is also recommended to expose the backend functionality as standard services.
    For example, integration between SAP Portals (containing SAP BPM, SAP CAF, SAP WebDynpro) and SAP Suite (SAP ECC, SAP CRM, SAP SCM, SAP SRM etc.) should be conducted without the usage of SAP PI; the services should be exposed from the SAP suite as standards-compliant enterprise services.
    Web Service interface of backend application: Many times, the target application in SAP/Microsoft/Java/Legacy is available as a standard web service. In such cases, the web service interface can be easily consumed in the source application. In such scenarios, SAP PI adds no value for transformation or backend integration.
    In conclusion, SAP PI usage is usually not recommended for User facing applications where the backend application is available as a standard web service. SAP PI is almost always suitable for integration between backend applications not requiring human intervention.

  • RFC to RFC using BPM ?

    hello all..
    i knw the RFC calls being synchronous..
    i knw i can call RFC to RFC without using BPM..
    i was wondering, if i go in for an RFC to RFC call with uing BPM, does it makes sense?
    the scenario i was working on, with two sync call, was goin into time out stage and surely performance was affected...
    wot do u say on the mentioned scenario?
    regards,
    Vishal

    rahul,
    i did try the same but ther seems to b error on the receive step...
    i presume, it had to b receive (sync) and then the send async and then the receive async and the  closing the send sync bridge...
    correct me if im wrong..
    or else if i take the request of sender rfc in an interface to make it to b async then use the receive step?
    but in tht case my data itself was not passin... a dump on the report sayin,
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException"...
    regards,
    Vishal

  • 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

  • Call RFC in Delphi

    Hi,all
        I am a SAP newbie .I have a strange question. My Delphi Development Environment is Delphi 7. SAP ECC 6 , Delphi Call RFC through COM.
    procedure TFrm_SAP.Button3Click(Sender: TObject);
    var
      myIFunction:IFunction;
      myIStructure_EDRAT:IStructure;
      myIStructure_ORDER:IStructure;
      myIParam_AUFNR  :IParameter;
      myIParam_AUTYP10:IParameter;
      myIParam_WERKS  :IParameter;
    begin
      if not Logon_bool then
      begin
        Showmessage('Logon SAP/R3 Failure');
        Exit;
      end;
      SAPFunctions1.Connection:=Connection;
      myIFunction:=SAPFunctions1.Add('Z_XX_GET_PRODORDER_HEADER') AS IFunction;
      myIParam_AUFNR:=myIFunction.Exports_['I_AUFNR'] AS IParameter;
      myIParam_AUFNR.value:='000001002864';
      myIParam_AUTYP10:=myIFunction.Exports_['I_AUTYP10'] AS IParameter;
      myIParam_AUTYP10.Value:='X';
      myIParam_WERKS:=myIFunction.Exports_['I_WERKS'] AS IParameter;
      myIParam_WERKS.Value:='2010';
      myIStructure_EDRAT:=myIFunction.Exports_['IT_ERDAT'] AS IStructure;
      myIStructure_EDRAT.Value['SIGN']  :='I';
      myIStructure_EDRAT.Value['OPTION']:='BT';
      myIStructure_EDRAT.Value['LOW']   :='20090101';
      myIStructure_EDRAT.Value['HIGH']  :='20090330';
      if  not myIFunction.Call then
      begin
        ShowMessage(myIFunction.Exception);  
      end
      else
      begin
         myIStructure_ORDER:=myIFunction.Imports['ET_ORDER'] AS IStructure;
      end;
    end;
    after  execute myIFunction.Call method ,Show
    I trace Log file , as following Show
    T:764 Error in program '': ======> Data error (invalid data type 17) in a Remote Function Call
    T:764 Error in program '': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
    T:764 Error in program '': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
    Could anybody have helped me to resolve this problem?

    Hi
    Check RFC Import Parameters Data Type and Data Sent from your Delphi System is not matching , Some data type mismatch is going on.
    Check Data Type of when Sent from Delphi == Import (Request) of RFC is equal
    rgds
    srini

Maybe you are looking for

  • Can't get webutil working on AS

    Hi All, As topic, I can't get webutil working on the application server. I can run individual forms or sessions that do not utilise webutil. As soon as I have baseHTMLjinitiator/baseHTMLjpi/baseHTML defined in the bit of the formsweb.cfg that I am us

  • Previous button of af:singleStepButtonBar in wizard yields validation error

    Dear All, In one of the JHeadstart generated wizard pages, we have included a af:selectOneChoice with required=true. When we navigate back to the previous wizard page (by clicking on the Previous button generated by the af:singleStepButtonBar, the ap

  • Best approach for post-update (Oracle Forms equivalent) operations?

    Hi Having scanned all the available literature / blogs / forum posts I can find, I'm not sure of the correct way to proceed here, can anybody advise? I am planning to build a custom OAF page to update rows in a seeded Apps table. After any update via

  • Selecting "Engl​ish" w/ Broken Screen

    So, I have followed a solution on the forum to flash update my Pre to the latest OS using the WebOsDoctor tool on the palm site. The tool I used is supposed to keep my USB drive data in-tact and I would like to retrieve the data....however, when my p

  • Strange clicking building up

    I have a piece of music which has a strange echoing click appearing in same place even when I have no music regions/tracks playing ( all muted) but the clicking fades in at the same point everytime. it starts in around a minute and slowly builds up g