Call several .exe program via one RFC destination

Hi,
We use a RFC destination (one for each connected user) to communicate between SAP R/3 (4.6c) and an AS400 application via RFC server in .NET.
We need to call some .NET functions (for transactionnal purpose) and we wish not to mix functions refering to AS400 and .NET.
Is it possible to use one RFC destination to call functions in at least 2 .NET program ?
If not, is there other ways to make those communications work ?

Hi
It is not possible. I don't think of any other way to resolve this.
Thanks & Regards,
Govind.

Similar Messages

  • Program ID in RFC destination of type T

    can one please explain what exactly is program id in rfc destination of type T

    Hi,
    from
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/042652488911d189490000e829fbbd/content.htm
    "Type T destinations are connections to external programs that use the RFC library to receive RFCs."
    so program id is the name of such a program
    Regards,
    michal

  • Executing several .exe program in Window

    I am going to write a quick program, it is to start several .exe programs ONE after ONE, each with a fixed time period, for example: 3 minutes. When time expired, this program is stopped and the next one starts....
    programA.exe 3 mins
    programB.exe 5 mins
    movieC.avi 6 mins
    Can I use Process.getRuntime().exec() to do it? Beside, is it possible to use Java to "terminate" the program when time expired?
    Any suggestion, thx for any recommendation.

    roamer wrote:
    I am going to write a quick program, it is to start several .exe programs ONE after ONE, each with a fixed time period, for example: 3 minutes. When time expired, this program is stopped and the next one starts....
    programA.exe 3 mins
    programB.exe 5 mins
    movieC.avi 6 mins
    Can I use Process.getRuntime().exec() to do it? Yes. Runtime.exec() uses ProcessBuilder behind the scenes and you can get a little more control by directly using ProcessBuilder. You should spend some time reading the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and you should implement the recommendations.
    Beside, is it possible to use Java to "terminate" the program when time expired?Yes. You can use Process#destroy().
    >
    Any suggestion, thx for any recommendation.

  • Program ID in RFC destination-XI

    Hi
    can any one tell me
    for RFC sender channel purpose i'm creating RFC destination in SM59. through sap help and some other weblogs i'm trying create Program iD,but i'm getting some doubts on this:
    1. How do i know corrosponding programID for this register server program?
    2.How do i know sender system is Unicode system is or not?
    Auctully my scenrio is RC--->JDBC, thats the reason i'm trying to create RFC destination in r/3 side..
    regards
    rambarki

    Hi Rambarki,
    Is your scenario sysnchronous or asynchronous ?
    if your scenario is asynchronous then from ABAP program you can call your RFC using the following syntax...
    CALL FUNCTION 'RFCNAME'
    DESTINATION 'RFCDESTNAME'
    EXPORTING ...
    IN BACKGROUND TASK .
    for synchronous scenarios use this
    CALL FUNCTION 'RFCNAME'
    DESTINATION 'RFCDESTNAME'
    EXPORTING ...
    IMPORTING ...
    You also try using SE37..
    In SE37 enter name of your RFC and press on execute..
    then enter your RFC destination name , input parameters..and execute.
    Is test connection working fine in SM59 ?
    Take look at this thread aswell
    Re: How to test the RFC to Flat File scenario
    Regards
    Anand

  • Calling a C program as an RFC from SAP : VERY URGENT

    Hi All,
    I have got a SAP program which is trying to call a C program on the UNIX server of the SAP system. I have created the RFC destination in SM59 and have tested the connection to be working fine. inside the C program , a code has been written to create a sample file on the server. Now when i am executing the SAP program, though the file gets created, but i am getting an Exception of "SYSTEM ERROR" at the SAP side.
    Can anybody help on this regard why I am getting that error?
    Its very URGENT

    Hi Priyanth,
      I am not sure but check this out
      If you are using any commands , check if that command is configured in SM69

  • Calling a JAVA program from an RFC in SAP ABAP

    Hi All,
    I have an RFC for a specific purpose in which I need to call a JAVA program whose path is given to me. Please suggest a possible process to do the same .
    Your's <removed by moderator> responce is highly appreciated.
    Thank you.
    Edited by: Thomas Zloch on Nov 26, 2010 1:33 PM - priority normalised

    Hi Priyanth,
      I am not sure but check this out
      If you are using any commands , check if that command is configured in SM69

  • Axis : Calling an exe program on a Soap server

    Hi All,
    I'm trying to use a web service to call from client C an .exe program running on Server S.
    But I'm stuck at the line Runtime.getRuntime().exec("cmd /c start C:\\axis\\runtime.bat");
    I tried different syntax for the command line but no luck.
    Is what I'm doing completely wrong or impossible?
    Thanks a lot

    Can I use samba in order to call commandYes, smaba supports "magic" files that cause a program to be executed when they are accessed. Note, this does not provide for arguments but you can put these in a file which you command reads.
    or is there any way to open an telnet session within java applicationYes. just use a Socket connection.

  • How to call an exe program from the JSP page?

    How to call and display the interface from a exe (residing on C: drive) on my JSP page. Our customers supplied us with an exe file and they want this to be incorporated on the JSP page that has other components also, like forms, etc. The interface of the program has to be displayed in specific co-ordinates on the JSP page. Any help is highly appreciated. Thanks in advance.

    Can't be done with JSP.
    JSP runs java on the SERVER only.
    All that gets to client is an HTML page. So all that
    you can do at the client is what an HTML page can do.
    Obviously that doesn't include running a file on the
    client machine.
    Take a look into Applets, or maybe ActiveX controls.Thanks for the reply.
    Any idea on how to use the ActiveX controls in this regard?

  • Calling a CAF program via web service generates QName cannot be null error, but only for 1/5 of the same call in a parallel for loop.

    I'm calling 5 identical web service calls using a parallel for loop in BPM. Obviously the data in each slightly differs. Why would this call suspend the process and give the following errors:
    handleCommunicationError( ErrorContextData, Throwable, TransitionTicket ): A technical error occurred.
    Interface namespace = myNamespace
    Interface name = myService
    Operation name = myOperation
    Connectivity type = WS
    Application name = myAppName
    Reference name = 8bd95deb-8cf1-453d-94e5-0576bb385149
    Message Id = null
    WS style = DOC
    Start time of WS call = 2014-02-26 17:51:23.297
    Return time of WS call = 2014-02-26 17:51:23.412
    Principal name = SAP_BPM_Service
    Root error message = local part cannot be "null" when creating a QName
    Error message = Could not invoke service reference name 8bd95deb-8cf1-453d-94e5-0576bb385149, component name myComp application name myappname
    com.sap.engine.interfaces.sca.exception.SCADASException: Could not invoke service reference name 8bd95deb-8cf1-453d-94e5-0576bb385149, component name
    myCompname
    at com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:341)
    at com.sap.glx.adapter.app.ucon.SCADASWrapperImpl.invoke(SCADASWrapperImpl.java:101)
    at com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallObject.invokeWebServiceOperation(UnifiedWebServiceCallObject.java:101)
    at com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.invoke(UnifiedWebServiceCallClass.java:178)
    at com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:657)
    at com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:248)
    at com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:798)
    at com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:78)
    at com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:196)
    at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:163)
    at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    at com.sap.glx.core.resource.impl.j2ee.J2EEResourceImpl$Sessionizer.run(J2EEResourceImpl.java:261)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:152)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:337)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:149)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
    Caused by: java.lang.IllegalArgumentException: Could not process message for operation myOperation in web service plugin module.
    at com.sap.engine.services.sca.plugins.ws.WebServiceImplementationInstance.accept(WebServiceImplementationInstance.java:228)
    at com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:314)
    ... 19 more
    Caused by: java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
    at javax.xml.namespace.QName.<init>(QName.java:246)
    at javax.xml.namespace.QName.<init>(QName.java:190)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.getInterfaceInvoker(DInterfaceImpl.java:126)
    at com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASImpl.<init>(WSDASImpl.java:43)
    at com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASFactoryImpl.createWSDAS(WSDASFactoryImpl.java:39)
    at com.sap.engine.services.sca.plugins.ws.tools.wsdas.WsdasFactoryWrapper.createWsdas(WsdasFactoryWrapper.java:30)
    at com.sap.engine.services.sca.plugins.ws.WebServiceImplementationInstance.initWsdas(WebServiceImplementationInstance.java:256)
    at com.sap.
    Surely if it was the service group unassign then reassign issue then none of the calls would have worked?

    Hi David,
    While a random error is still an error it will be difficult for support to find a problem for an error which is not reproducible. It is always a faster resolution if you can determine how to provoke the error and provide those details. If we can reproduce an error on internal systems then we can fix the problem quickly and without having to access your system.
    regards, Nick

  • How to get Parameters in a jsp page called by VB program via xmlHttp

    I have a VB programm sending a request using xmlHttp.
    xmlHttp.Open "POST", varTarget, True 'True means asynchronous
    xmlHttp.Send xmlSendStr
    This worked fine with ASP
    the crucial ASP code was:
         set xml = server.createObject("MSXML2.DOMDocument")
         xml.load(request)
         VBData = cstr(xml.getElementsByTagName("value").item(0).firstChild.nodeValue)
    now I have a webserver (tomcat) and try to have a simular functionality
    but
    request.getParameter()
    seems not to do the job.
    what do I have to do
    I am thankfully looking forward to you reply
    peter

    Hi,
    thanks for your reply!
    If I have the parameters in the URL and use the method GET it works all right.
    but I need the method to be POST. I suppose, I have the wrong way identifying the parameter name
    This is from VB
    varTarget = "http://localhost:9090/gm/getData" ' getData is my servlet
    xmlSendStr = "SQLStmt=SELECT TCPD_Cars.* From TCPD_Cars WHERE (((TCPD_Cars.CarIdent)=45));"
        xmlHttp.Open "POST", varTarget, True   'True means asynchronous
        xmlHttp.Send xmlSendStrthis is part of my Servlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter writer  = response.getWriter();
              String SQLStmt = request.getParameter("SQLStmt") ;
            //make the database query and get the returns
            writer.println(GetSQLData(SQLStmt));
            //close the write
            writer.close();                    
         }I would appreciate any suggestions

  • RFC destination definition with non-unicode external program

    Hello All,
    we have one issue with our RFID system connecting to WM system (SWD). 
    For most functions, external RFID server/middleware makes RFC call to SAP system.  Means, from outside system to inside SAP.  This seems to be working fine.
    But in one case, SAP needs to print label to RFID printer.  In this case, SAP is calling external RFID server/middleware using RFC destination.  Means, from inside SAP to outside system.  This is failing.
    We think this has something to do with ECC60 being unicode system, and the RFC destination setup.  We define rfc destination "ZRFID_SSI" in SM59.  We define it same way as in as-is SSI 4.6B production system.  But in SWD ECC60 system, SM59 has more options.  We define as 'non-unicode' because target RFID server/middleware is non-unicode Windows server.  RFC destination is actually working ok.
    To send label to printer, SWD calls function ZFSSIRF202 with remote destination ZRFID_SSI.   Listener on RFID server/middleware will respond to function call.  This also seems to be working.  But then, RFID server/middleware cannot process the data from ZFSSIRF202, log says that data is "0".  (Actually, the first time SWD calls, log says 0 data, the 2nd time there is connection failure, the 3rd time it is 0 data, 4th time connection failure, etc, etc.)
    Compared with production environment, everything is the same, except that SAP is unicode system.  So, our suspicion is, that when ECC60 system sends data, it is encoded somewhat a little different than when SAP 46B system sends data.  I have similar experience with our other interface (XSI), also involving RFC desintion, but XML file exchange.  Here, ECC60 is encoding XML file with UTF-16, but SAP46B was encoding with UTF-8.
    Anyone know how to help ?

    Hi Jeongbae,
    as of NW 7.0 EhP2, it is possible to directly set the code page in SM59.
    In earlier releases, this is not possible.
    In general, SAP systems use the logon language (SY-LANGU)  to determine the code page, if this is available.
    Please check SAP note 788239.
    Please also have a look at SAP note 991572 for possible alternative settings, if SY-LANGU is not available.
    In addition I would recommend to have a look at SAP note 1021459.
    However in order to analyze the problem properly, you need to know the exact short dump text (via rfc trace).
    For XML processing, please read SAP note 1017101. UTF-16 should NOT be used in an XML file !
    Best regards,
    Nils Buerckel
    SAP AG

  • Independent stateful calls from different threads on one destination

    Hello SAP-Experts,
    i'm dealing with the problem on the Web AS to guarantee some independent stateful call sequences for different calling threads.
    One application running on a WAS (the WAS-app) is called by different clients to pass some data. The WAS-app has to distribute the data to another system by using one RFC-destination.
    As i have understood i have to guarantee thread-safe sessions for stateful calls from different thread by implementing a custom SessionReferenceProvider that binds the session to the thread. I have done this.
    My problem is to register my custom SessionReferenceProvider to the WAS environment. By trying i get the following error:
    [java.lang.IllegalStateException: SessionReferenceProvider already registered [com.sap.engine.sessionmgmt.jco.applib.impl.SessionReferenceProviderImpl]]
    Does anyone can tell me how to register the custom SessionReferenceProvider on a WAS?
    Thanks and greetings
    Robert

    Hi Robert,
    You can first try stopping a Java application named sessionmgmtjcoapplib from Star&Stop, then register yours sessionReferenceProvider again.
    Jian

  • Call two programs from one program.

    HI all,
    I have two BDC interface in seperate programs.
    I want to call that two programs from one program based on a condition.
    Is there any way.
    I tried with call transaction 'SE38'.
    set parameter ID but it is taking buffered value.
    Thanks,
    sri

    use submit program to call other program.
    SUBMIT prog|(field) [AND RETURN] [options].
    also if you want BDC prog, then probably you can call the BDC recording using PERFORM bdc_prog (in program name).
    PERFORM (<fsubr>)[IN PROGRAM (<fprog>)][USING   ... <pi>... ]
                                           [CHANGING... <pi>... ]
                                           [IF FOUND].
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm

  • How many RFC Destinations / RFC Sender Channels

    Hello everybody!
    I have several RFC --> XI --> JDBC/FILE/SOAP integration scenarios. For each scenario I have one RFC Destination created (pointing to XI) in SM59 in R/3. For each RFC Destination I have created one RFC Sender Channel in XI.
    But this doesn't make sense, don't you agree? I should have only one RFC Destination in R/3 to XI, right?
    If that is the case:
    1) Should I also have only on RFC Sender Channel in XI?
    2) What about load balance? What about concurrence? With only one RFC Sender Channel I have to set "Initial Connection" propertie to a big value to be able to handle several RFC calls (to different RFC Functions) in parallel. Is there a limit (a maximum value) I can use in "Initial Connection" propertie?
    Thanks
    Julio

    hi julio,
    <b>Yes</b>. We can have only one RFC to point to Same XI System and in the XI, we need <b> only one</b> RFC Sender too.
    <i>For LoadBalancing and concurrence, refer the links:</i>
    1) https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c3d9d710-0d01-0010-7486-9a51ab92b927
    <i>Limitations regarding RFC Sender</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/58/11e6418b7eca17e10000000a155106/content.htm
    <i>Bonus Link: </i>
    Re: RFC Adapter as Sender
    regards,
    nikhilbos

  • ** End-to-End Monitoring - RFC destination error while save config in RWB

    Hi Friends,
    We have 2 RFC destinations in our XI server. 1) PMI<client>001 2) PMI<client><client>800. First one is for XI server. Next one is for Sender/Receiver System.
    We want to activate End-to-End Monitoring in RWB. For this, when I save configuration, it throws the following error.
    Incorrect RFC Destinations: When the configuration is saved, an RFC destination is created on the monitoring server for each XI component to enable end-to-end monitoring of the respective XI component. However, the test call failed for the destinations listed. Therefore, you must check the call and the authorization on the monitoring server for the destinations concerned, by using transaction SM59. Also check whether RFC user used for the destination is maintained in the relevant XI component. Note that a component can only be monitored when its RFC destination is maintained correctly.
    I have checked the user in the above destinations. For the first destination, we have assigned PIRWBUSER of XI system. Test Connection is OK, but unable to login remote. At the same time, PIRWBUSER is not locked.
    For the second destination, I have assigned some login user of sender/receiver system. Test connection is OK. Able to login remotely.
    There is no RFC user in our XI system. (I tried using RFCUSER* thru SU01 tcode).
    There is no PIRWBUSER in the Sender/Receiver System.
    In RWB, Configuration, 3 components are there. 1) XIIntegrationServer 2) Business System (for Sender/Receiver System) 3) XI Adapter Framework. I selected last two. (First one is already selected). Monitoring Level : Medium (for all 3). Send and Receive Check box is selcted for the last two.
    So, what could be the problem for the above error?
    Could you kindly clarifiy friends.
    Thanking you
    Kind Regards,
    Jeg P.

    Hi friends,
    I have one RFC Destination PMI<sysid>001. (Abap Connction) in my XI system. This destination is for  XI server. Connection Test is OK. Remote Logon by using the PIRWBUSER is also ok.
    In the 'Configuration' tab of the Runtime Workbench, when we select 'Save Configuration', (Business System and Adapter Framework is not activated) with the default activation for XI Integration Server, the system throws the following error.
    Incorrect RFC Destinations: When the configuration is saved, an RFC destination is created on the monitoring server for each XI component to enable end-to-end monitoring of the respective XI component. However, the test call failed for the destinations listed. Therefore, you must check the call and the authorization on the monitoring server for the destinations concerned, by using transaction SM59. Also check whether RFC user used for the destination is maintained in the relevant XI component. Note that a component can only be monitored when its RFC destination is maintained correctly.
    When we save configuration, an one more destination is automatically created in the name as below.
    PMI<sysid>001<yyyymmdd>. For Example, PMIPID00120080207. 
    When we test  newly created RFC destination, connection is OK, but not able to remot login using the same user PIRWBUSER.
    The difference between old and new RFC destination, in old, we have selected Load Balancing is 'Yes', but in the new it is 'No'. The system also tells the error below.
    Name or Password is incorrect (repeat logon) - PMIPID00120080207
    But, still remote login is possible in the old RFC destination using the PIRWBUSER.
    So, What could be the problem ...?
    Kindly reply, friends.

Maybe you are looking for

  • Need help in embedding a link to url within a text edit

    Hi,    We need to embed a LinkToURL within a textedit in a webdynpro view. We are extracting content from KM and displaying the content in the text edit. Immediately after the extracted content is displayed in the textedit, we need to embed a LinkToU

  • HP Laserjet P2055dn won't print pdf files

    I have just hooked up a new iMac with Mac OS 10.9.5 and now my reliable HP Laserjet P2055dn won't print .pdf files anymore--it just hangs for hours. I am an academic and work 50% with pdf's.  I tried to download a new driver from the HP site for all

  • Initialzation error on dvd player (nilP)

    hello all, this is my 1st post...i keep getting an initialzation error while trying to play a dvd...the error is (nilP)...can anyone help...i've had this problem for 3 weeks now..computer is month old..i am a new mac user....dvd player work for 1 wee

  • Version Management for Scheduling Agreement

    Hi Experts, We have activated Version Management for Scheduling Agreement - LP. When we create a Scheduling Agreement, it is generating zero version but 'Net Order Value' is showing as zero in versions tab. We have also addressed fields 'NETPR' and '

  • Services in PM work order

    Hello SAP colleagues, At work order when choosing items from contract or adding free text description to Services short text field  "Unlimited Overfulfillment" field should always be ticked on. Do you know if this is controlled by customizing? I have