JCO3 Server: How to invoke a RFC callback to client

Dear Community,
i have created a working jcoserver program.
Now this program needs additional information from client (in this case a sap-system).
In classic RFC Lib and in Netweaver RFC SDK i can find some samples how to do this.
Look here:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5070f62a-6acd-2c10-8cb5-858ef06adbb9?QuickLink=index&…
Page 10-12 and Page 16 contain information how to do this.
But i can't find anywhere an example for JCO3 or a documentation.
Is someone able to point me into the right direction or has a working code-snipplet?
Kind Regards,
Tom

Hi Markus,
oh, that is to easy, As i'm converting from Classic-C such easy ways are simply overlooked.
Correct code is then:
//JcoFunctionTemplate "temp" is initialized before
JCoFunction func = temp.getFunction();
  func.execute ( JCoDestinationManager.getDestination ( "BACK" ) );
right?
Thank's a lot Markus, you helped me very much!
Is there any documentation where one can find out about such build ins ?
Not only related to JCO, similar for build in rfc function in server programs like RFC_DOCU and so on ?
Best regards,
Tom

Similar Messages

  • How to invoke a RFC with JCo

    hello,
        I want to invoke a function through jco. The parameter of the function is a table. I do not know how to pass the table parameter to the function. Do I need to use the Claa JCO.MetaData. Would you please give me a example? Thanks!

    Hi,
    Have you read the documentation ([SAP JCo Client Programming|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm])? There is a page about [Table Manipulation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm].
    Regards,
    Pierre

  • Urgent: How to invoke webservice from a remote client?

    How could I invoke webservice deployed on the weblogic server on different System from client residing on my System?
    I would like to know the different ways to do this and the advantages and dis-advantages of each one of them.
    Thanks in advance.
    Nitin

    nitind,
    Did you figure out how to connect to Weblogic web-service remotely?
    I tried doing so, but I get the following error on the client-side.
    A exception was thrown from the client handler sending a JAXM message.
    A stack trace for a previously logged message.
    Exception in handler handleRequest() method.
    Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
    java.lang.NoSuchMethodError
    java.lang.NoSuchMethodError
    at weblogic.webservice.util.FaultUtil.fillDetail(FaultUtil.java:84)
    at weblogic.webservice.util.FaultUtil.fillFault(FaultUtil.java:141)
    at weblogic.webservice.util.FaultUtil.exception2Fault(FaultUtil.java:184
    at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainI
    mpl.java:183)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:
    218)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.j
    ava:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:62)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:84)
    at testclient.example(testclient.java:48)
    at testclient.main(testclient.java:27)

  • How to invoke the mdb  without jms client

    Hi,
    I have a requirment in that I want to invoke the message driven bean without jms client.
    ejb 2.1 support this but I don't know how.
    if any one have an idea pl reply this.
    thanks

    Ino I did not mean invoke MDB without sending a message, but I want to say invoking the mdb by some other like jaxm client or soap client.
    if u have any idea pl tell me.
    thanks
    manish

  • Maverick server - How to post out of office on clients

    Hello there,
    since Maverick server dropped webmail how are you suppose to place an out of office on an email account?
    Thanks

    Hi
    Use RoundCube
    http://roundcube.net/
    http://topicdesk.com/downloads/roundcube/
    Working here on:
    OSX 10.9.2
    Server 3.1
    Roundcube Webmail 0.9.5
    If you have a lot of emails in your account then it takes a little while to load but then OK.

  • Did anyone get RFC callback to work?

    Netters,
    I cannot get a simple RFC callback to work. From an earlier post, the steps were:
    1. Create the client class.
    2. Create the server class.
    3. Assign the "CallbackServer" property of the client class to the server class.
    Sounds simple enough. However, there is one thing that is confusing. The generated server class takes two arguments in the constructor. The first argument is the list of string arguments and the second argument is an instance of ServerHost class. I guess these arguments make sense if I am writing a standalone server. In case of RFC callback, are we supposed to pass null as the arguments?
    I tried using null parameters but still couldn't get the callback to work. Does anyone have a trivial example that you don't mind sharing?
    Even though the connector is in beta stage, we have already started using it for our customers. The hope is that we would get the callback to work.
    Thank you in advance for your help.
    Pradeep

    I just set mine up this evening. I bought it for the same reason as you (to stack). Worked Fine right out of the box. (My Mac wont read the CD that came with it though)
    If you want to rename then you need to connect direct to the Mac.
    One thing I am sure that I read in one post is that you may get interference from the hard drive which can effect the performance of the AEBS. I noticed this as well but have not experimented further.

  • How do I setup RFC if Solution Manager and Target system are in same server

    Dear Experts,
    How do I setup RFC if the Solution Manager and the Target System (SAP ERP 6.0) are sitting in the same server?
    Do I really need to setup RFC?
    regards,
    Abraham

    Hello,
    An RFC is a Remote Function Call and is used to communicate between computer systems.
    A system can be on a server. Multiple systems can be on a single server, a single system can exist on multiple servers.
    When you setup the RFC Target it is the Host and not the system that is specified.
    You can get the host information when logged into the ERP system by running transaction SM59.
    This would then be the target Host in the RFC from Solman to the ERP system.
    As Miguel suggested this is rather simple. So I hope this has shone a light for you so you may proceed.
    But if you continue to have problems please advise.
    Regards,
    Paul

  • How to invoke RFC function module from XI interface

    Hi all,
    I am having one question, How to invoke RFC function module from XI interface.
    Please reply me as soon as possible.
    Thanks in advance,
    Radhika

    Hi,
    To call the RFC in mapping u need to create the RFC lookups...check these links.
    How we have to create the lookups?
    Check this weblogs with some screenshots on how to achieve this:
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    lookups in xi
    XI Design Guidelines
    Re: RFC Lookup API
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Regards,
    Phani

  • How many types of RFC's?

    how many types of rfc's wat r they?

    hi
    A remote function call is a call to a function module running in a system different from the caller's. The remote function can also be called from within the same system (as a remote call).
    RFC consists of two interfaces : A calling interface for ABAP Programs and a calling interface for Non-SAP programs.
    Any ABAP program can call a remote function using the CALL FUNCTION...DESTINATION statement. The DESTINATION parameter tells the SAP System that the called function runs in a system other than the caller's.
    RFC CLIENT and RFC SERVER
         RFC client is the instance that calls up the Remote Function Call to execute the function that is provided by an RFC server.
         The RFC Interface takes care of :-
      -  Converting all parameter data to the representation needed in the remote system
    Calling the communication routines needed to talk to the remote system.
    Handling communications errors, and notifying the caller, if desired ( using EXCEPTIONS paramater of  the CALL FUNCTION).
    You can use the CALL FUNCTION statement to call remote functions by including an additional DESTINATION clause.
    CALL FUNCTION ‘remotefunction’
              DESTINATION dest   
                   EXPORTING f1 =
                 IMPORTING  f2 =
               TABLES t1 =
               EXCEPTIONS
    The field ‘dest’ can be either a literal or a variable. Logical destinations are defined in the RFCDES table via transaction SM59 or via the menu path: Tools ->Administration,Administration->Network->RFC destinations.
    Calling remote functions locally :-
    ( i.e. call a remote function within the same system )
    The two options to do this are –
    CALL FUNCTION...DESTINATION = 'NONE'
    CALL FUNCTION... [no DESTINATION used]
    Calling remote function modules BACK :-
        The remote function can invoke its own caller (if the caller is itself a function module), or any function module loaded with the caller.
        You can trigger this call-back mechanism   using
        CALL FUNCTION... DESTINATION 'BACK‘.
    Synchronous RFC – The calling program continues the execution only after the called function is complete.
    Asynchronous RFC - The calling program continues the execution without waiting for return from the called function.
           Eg: CALL FUNCTION ‘remotefunction’ STARTING NEW TASK ‘taskname’.
    Transactional RFC - The called function module is executed exactly once in the RFC server system.Each function call is seen as a transaction in the target system. Transactional RFCs use the suffix IN BACKGROUND TASK .
           Eg : CALL FUNCTION ‘remotefunction’ IN BACKGROUND TASK
    regards
    vijay
    reward points if helpfull

  • How to create a RFC destination for extracting data to HANA

    Hello All,
    Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
    I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .

    Hi Venkatesh,
    In SM59 t.code we create RFC destinations.
    Go thru the video link for creating RFC destinations step by step
    How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube

  • JDev 10.1.3 how to invoke oc4j_remote_deploy.jar from command line?

    Hi, does anyone know how to invoke the JDev 10.1.3 oc4j_remote_deploy.jar from the command line? We have it working for 10.1.2, for automated deployment scripts.
    If I try the same thing for 10.1.3, I get an error.
    See below my command line and the output.
    I think the error is in the Oc4jDcmServlet URL, the format seems to have changed from 10.1.2 to 10.1.3.
    I tried to reverse-engineer by using an HTTP tracer, but that did not help.
    Any help would be much appreciated.
    Regards, Maarten Brugman
    ======================== command line: ==================
    "C:\j2sdk1.4.2_09\bin\java.exe" -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev-work\ebrp-new\ear\target\installer\oc4j_remote_deploy.jar http://lnvx0027:29805/Oc4jDcmServletAPI/ oc4jadmin ***** listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013 UNDEFINED UNDEFINED OC4J_OEBRP
    ============ output: ====================================
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013
    UNDEFINED UNDEFINED OC4J_OEBRP
    Command = LISTAPPLICATIONS
    Opening connection to Oc4jDcmServlet
    Setting userName to oc4jadmin
    Sending command to DCM servlet
    **** Could not check HTTP response code
    ** Thread[main,5,main] ** Fri May 11 17:18:13 CEST 2007 ** ** EXCEPTION: java.
    net.SocketException: Unexpected end of file from server
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:822)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:820)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:635)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.isHttpResponseOk(Unknow
    n Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.sendCommand(Unknown Sou
    rce)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(Unknown Source
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.listApplications(Unkno
    wn Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(Oc4jDcmMain.java:71)
    #### HTTP response is NOT ok
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-1)
    #### HTTP return code was -1
    ============ end output =================================

    In my opinion, you will succeed in handling linefeeds in output texts by using an <tt><af:outputFormatted></tt> tag in conjuction with a JSF converter that replaces the linefeeds with a <tt>&lt;br></tt> tag in the text. You will have to implement a custom converter class (this is quite simple, see below) and to set it to the <tt>converter</tt> attribute of the <tt><af:outputFormatted></tt>. The converter class should look like:
    public class MyLinefeedConverter implements javax.faces.convert.Converter
      public MyLinefeedConverter() {
      public Object getAsObject(FacesContext context, UIComponent component, String value) {
        return value;
      public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value==null) return "";
        if (value instanceof String) return ((String)value).replace("\n", "<br>");
        return value.toString();
    }In this way the linefeeds in your text values will be replaced by <tt>&lt;br></tt>, which will be rendered by the corresponding <af:outputFormatted> tag as line breaks.

  • How to invoke JavaScript for Premiere Pro CC?

    Hi,
    I am new to Adobe CC products/scripting and I'm trying to control Adobe Premiere Pro CC from another desktop application. Using ExtendScript Toolkit, from its UI, I can invoke JavaScript commands or files.
    But I can't find any way for my desktop application to invoke JavaScript commands. I can't seem to find any command line tool for it (no documentation either and JavaScript doesn't seem to be officially supported). Any help regarding this would be greatly appreciated.
    I tried using the Socket object on a .jsx file to act as a server (to listen for commands from my desktop application) and placing it on the common startup script folder. But the start up script blocks the UI of the Premiere Pro application entirely (even if I use "$.sleep(milliseconds)" function in between  the "poll" function for acquiring a connection). This wouldn't work for my application as I can't block the UI.
    For After After Effects CC, I can use the "afterfx.exe" on Windows and AppleScript with "DoScript" command on Mac, to execute JavaScript expressions or files. But this doesn't seem to work with Premiere Pro or any Adobe CC products. For Photoshop, I can just open any .jsx file with Photoshop (for e.g. "Open With") and it runs the .jsx file. But this technique doesn't work with all the other Adobe CC products (even the ones which support JavaScript officially).
    According to Adobe Premiere Pro developer centre, there is no mention of any JavaScript support. But since the functionality does seem to be there (as discovered through ExtendScript Toolkit), I am hoping I can get away just by using JavaScript commands to control Premiere, as opposed to using the native SDK for Plugins. However, I really hope Adobe Premiere Pro folks are seeing this and they officially support JavaScript soon .
    Thanks for your help.

    Hi all,
    Any help? Seems that the general Adobe Premiere forum is a lot more active in terms of responses. That is why I originally kept in the general forum at first.
    Due to the lack of documentation, I ended up spending even more time just to figure out how to invoke Premiere Pro with a JavaScript file, from the command line. But no luck still . Any advice would be greatly appreciated.
    Thanks.

  • 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

  • Invoking an rfc from a repository filter

    Hi,
    I have to invoke an ABAP rfc from a repository filter.
    To invoke an rfc using JCo or Connector Framework, we need the "request (of type IPortalComponentRequest)" object.
    Is this object available with in the filter?
    Or is there any other way to invoke an rfc from a Repository Filter?
    Kindly help me.
    Thanks and regards
    RB

    The notion of "IPortalComponentRequest" makes no sense withing a repository filter.
    Imagine a repository manager which is queried by some automatically running tasks on the server (e.g. nightly created reports). You don't have something like a request there!
    I don't know rfc, so there might be other options which don't need the request.
    Regards,
    Dieter

Maybe you are looking for

  • Firefox will not load web page (I also have Internet Explorer 8 installed).

    Fire Fox will not load web pages. It may have something to do with proxy settings but I have reset this to Auto-Detect which is where it has always been in the past but still nothing. Something has reset my proxy settings in the past which caused a s

  • Get rid of BarChart Legend and create a Horizontal Line on a specific value

    Hey, i'm working with BarCharts. 1st Screen: I want to disable the Legend of my Barchart. http://imgur.com/wMo6Tfv,DRiNA9C Second Screen: I want to create a Line in my Barchart on a specific Value like 700 as seen on the screen. http://imgur.com/wMo6

  • Eceyones help kona or decklink

    Hey everone I'm looking to get a SD HD card but I do mostly dv I need the card for color, the only HD I do is P2 stuff so never caputre it through a deck, but I do need to have it down convert to SD monitor. Or could I just get way with the decklink

  • Date & Time Showing always in the toolbar.

    I just switched to Snow Leopard. Before I switched I was able to make BOTH the date & time to show always in the toolbar. I can't remember how I did it on the earlier O.S.'s Thank you for your help.

  • Dataminig task in ssis

    I  have  written the connection for datamining  query task in ssis  and my properties have gone wrong. provider:.net providers for oledb  ,Microsoft   OLEDb provider for analysis services   and it asks for server name i have given my server name and