RFC Server (exe file)

I notice the list of process at windows task manager it have my rfc process = the number of click that i do on sap 
My question is :
If i click 100 time or more does it will crack my system ?
Does it can open connection and then close when it end of process? if it can please be exampled me the code.
If you have some idea about sap connection to rfcserver effective please detail to me.
regards,
Zemon

>> I'm SAP learner and begin of .dot net and weakness in english lang.
we all start sometime somewhere somehow )
do now worry the forum's members will do their best to help out ...
/1/
const int numberOfServers = 3;
SAPServerHost host = new SAPServerHost();
SAPProxy1Impl server = null;
for(int i = 0; i < numberOfServers; i++)
Console.WriteLine("Create RFC Server SAPProxy1Impl instance {0}" ,i);
server = new SAPProxy1Impl(args,host);
what numberOfServer mean ? I think it just loop 3 time and create 3 new proxy with same agrument and host .
yes u're understanding of the code is correct, it creates 3 instances of the proxy object
/2/
I don't understand process too and try to stop connection(clear process).
SAPServerHost host = new SAPServerHost();
server = new SAPProxy1Impl(args,host);
host.Start();
Should i stop server or host object?
When and how to stop object?
I think i will stop the connection affter the process finish but i don't know how to stop can you guide me or example?
host.Stop()
will stop the host
please read this blog by Robert Chu:
/people/sap.user72/blog/2004/12/31/some-tips-on-developing-idoc-receiver-programs-with-net-connector
the class definition of SAPServerHost
http://help.sap.com/saphelp_nw2004s/helpdata/en/84/69492b8212e445b387d94316a53263/frameset.htm
with respect,
amit

Similar Messages

  • Reg : Executing .exe file from application server

    Dear Experts,
                        i have a requirement to execute an .exe file from application server,i tried with method CL_GUI_FRONTEND_SERVICES=>EXECUTE but it executes .exe file from presentation server only.can
    anyone kindly clarify to execute .exe file from application server?
    Thanks in advance,
    Sujay

    Hi,
    Did you search before posting?
    Re: Execute a .exe file present in the Application Server
    Vikranth

  • Require script or a method to Run .exe files on target computers using task scheduler or any other Windows server intigrated tool

    Hi All,
    We are outsourcing services to our clients. One of our clients whom we manage the whole Active directory / Exchange 2010 infrastructure have a requirement.
    We would like to run a .exe file from one server to another server / servers remotely to generate a report. The challenge is that we do not have permissions on some servers to access so we cannot login manually and run the .exe file to generate that report.
    (All are in the same domain restricted or non restricted)
    The domain Administrator (Client) Has restricted us to login to those servers due to security reasons. And is not providing us permissions or not giving the username and password to login to those servers.
    Requirement is :
    To run a .exe file with some parameters in it on the restricted servers Via powershell script or task scheduler (As the task will be created by the domain admin in the server in which we have access by entering the domain account).
    As we have to run this .exe file on around 60 servers (restricted) so an option should popup asking the name of the agent in which you want to RUN the .exe file or a source input via CSV will also be fine.
    Can anyone tell me or can this be possible ? Is there any one who has made such a script.
    Can anyone please help.
    Gautam.75801

    Hi Justin,
    Thank you for the suggestion.
    Below is the script what i Executed.
    "C:\Windows\system32\PsExec.exe" @C:\HPS\Serverrlist.txt cmd /C "server name\C$\hps\hps.EXE"
    Pause
    I tried using PSExec. But in the LAB domain as well as in the production i tried this on servers in which i have full access. When i execute this i get the output as Access is denied. Below is the screenshot of the Error.
    I have installed Psexec on both machines.
    I have full admin rights to the shared folder or network location which i have scratched in the screenshot. Not sure why i am getting this error.
    Also analysed the event logs and found a failure event once i execute this script.
    A handle to an object was requested.
    Subject:
    Security ID:
    Domain name\My username
    Account Name:
    Lg167978
    Account Domain:
    My Domain
    Logon ID:
    0x234992
    Object:
    Object Server:
    Security
    Object Type:
    File
    Object Name:
    C:\Windows\System32\eventvwr.msc
    Handle ID:
    0x0
    Process Information:
    Process ID:
    0x17e0
    Process Name:
    C:\Windows\System32\mmc.exe
    Access Request Information:
    Transaction ID:
    {00000000-0000-0000-0000-000000000000}
    Accesses:
    READ_CONTROL
    SYNCHRONIZE
    WriteData (or AddFile)
    AppendData (or AddSubdirectory or CreatePipeInstance)
    WriteEA
    ReadAttributes
    WriteAttributes
    Access Reasons:
    READ_CONTROL: Granted by
    D:(A;;0x1200a9;;;BA)
    SYNCHRONIZE:
    Granted by D:(A;;0x1200a9;;;BA)
    WriteData (or AddFile):
    Not granted
    AppendData (or AddSubdirectory or CreatePipeInstance):
    Not granted
    WriteEA:
    Not granted
    ReadAttributes:
    Granted by ACE on parent folder D:(A;;0x1301bf;;;BA)
    WriteAttributes:
    Not granted
    Access Mask:
    0x120196
    Privileges Used for Access Check:
    Restricted SID Count:
    0
    Can you help in solving this.
    Gautam.75801

  • Error Happened at RFC Server Cannot Open the Job Batch File.

    We have BW 7.0  and Data services 12.1. We are scheduling a Infopackage in BW that triggers a job in Dataservices server.
    We had checked the connection between Dataservices source system in BW and RFC server on Dataservices side and these connections are good. on the 3rd party sellections tab in infopackage we specify the batch file name that we exported in Dataservices server. When we execute the infopackage we get the following error.
    Error Happened at RFC Server Cannot Open the Job Batch File.
    This error started occuring from yesterday and prior to that it was working fine. We are not understanding what changed in the system to cause this error.
    Can anyone suggest any solutions for the above issue.
    Thanks,
    Naveen.

    I'm not sure what the root cause would be here. Is the file still available ? Did file permissions change ? ...
    But I wanted to point your attention to the fact that in Data Services/Data Integrator XI 3.2 (=12.2) we significantly enhanced the integration with BW. In XI 3.2, the RFC server is now integrated into the Data Services Management Console (so no need to start as a seperate executable) and you can start jobs from BW by just specifting the job's name in the repo (no need anymore to export execution commands to .bat files). So if upgrading to XI 3.2 is an option, things should go much smoother.
    More details on the wiki  : http://wiki.sdn.sap.com/wiki/display/BOBJ/Loading+BW
    Thanks,
    Ben.

  • How to run a "exe" file that is residing in application server.

    Hi,
    I have a requirement in which a .exe (Windows executive) file needs to be run through code, which is residing in the application server. That exe file is nothing but a pdf-excel converter that will convert a pdf file to excel. The corresponding pdf file is also in the application server. Is there any function module to make this happen? I have come across the FM GUI_EXEC, but it operates on exe and pdf files that are in the presentation server.

    HI Anirban
    SM49 /SM69 might be of help
    Could you please look into the link below.
    Re: sm49/sm69

  • How to run a exe file that is residing in the application server.

    Hi,
      I have a requirement in which a .exe (Windows executive) file needs to be run through code, which is residing in the application server. That exe file is nothing but a pdf-excel converter that will convert a pdf file to excel. The corresponding pdf file is also in the application server.  Is there any function module to make this happen? I have come across the FM GUI_EXEC, but it operates on exe and pdf files that are in the presentation server.

    hi
    1. customise external command in sm69
    2. use FM: SXPG_COMMAND_EXECUTE
    regards,darek

  • How to run Exe file through Sql server agent job

    Hello All
    i have 2 servers 
    1.Application Server
    2.Database server
    Application server has a .exe file so i wanted to run this exe file through SQL server agent job from database server.
    What is the process for run this Exe file 
    Can you plz suggest me step by step process
    Kamal

    While i'm trying to implement this below method
    Step1 : Right Click SQL Server Agent. Select New -> Job. This will open a wizard to schedule a new
    job.
    Step2 : Select Steps from options given on the left side of wizard. This is the main place to set your
    exe\program as a running step. Give some name to this step, Select Operating System (cmdexec) for the Type and give the full path of exe in Text box for Command.
    ex:\\10.11.00.98(your application serverIP)\ch.exe
    Thanks vanchan-Please
    mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    I got this below error
    Message
    Executed as user:NJROSJ345\SYSTEM. The process could not be created for step1 of job
    (Reason:Access is Denied)The step failed.
    But i have sys admin rights on the both the servers 
    Kamal

  • How to open  .exe file located in server system by the client system

    hi,
    i am using tomcat 5.0 as server and jsp as front end.
    I placed some of the software in the server system.I want to open the exe of those software from the client system when the user clicks the button.
    I am able to open them in the server system itself but if i try to open it from other system(client system using ip address of server system), the exe file gets opened and displayed in the server system only but not in the client system.
    any idea???
    Please help.
    Thanks & Regards,
    sirisha

    i am not using applets and downloading the software to clients machine is not required, the user has to click the "open software buttton" and it should get displayed in his system.
    anyhow can u give me some idea on using applets--- iam not good in applet coding.
    thanks & regards
    sirisha

  • Cannot run the big size exe file ( 900MB) on Windows Storage Server 2003 x86 SP2 OS(Hyper-V VM machine)

    When I run a big size exe file(>900 MB) on Windows Storage Server  2003 x86 SP2 OS VM mchine(which is managered by Hyper-V server), I got the following error message:
    Windows cannot open this program because the license enforcement system has been tampered with or become corrupted.
    This setup.exe should be a trusted source because of it run other OS(windows 2003, windows 2008, 2008 R2 etc.).  we use the same way to create the exe whose size < 700MB, it works fine on the same machine(Windows Storage
    Server 2003 x86 SP2 OS VM machine).  So I assume that the file size(>900MB) causes the problem, It seems that OS dont' support it.
    My questions:
    1. Is there the limitation of exe size to run on Windows
    Storage Server  2003 x86 SP2 OS VM machine?  If yes, what is the size of limitation?
    2. What reason is this error? Is it related with Hyper-V?
    Thanks,
    Recky

    Did you install the 2003 VM from scratch or did you create it via a P2V process?  In addition to what Shaon says about not all applications running properly in VMs, performing P2V to create VMs can also cause issues with a variety of things. 
    First thing to check would be Shaon's suggestion to try it in another VM.  If it works in another VM, and you P2V'ed this VM, try creating your Storage Server VM from scratch and try again.  Better yet, if the application can be run on a later version
    of the OS, create a 2012 Storage Server instead of the 2003 Storage Server as your VM and give it a try.
    .:|:.:|:. tim

  • CPICTRC File Generation from RFC Server application

    My company has developed a Windows Service that acts as a RFC Server application and pings SAP for remote function calls every so often. We have been running into an issue with the generation of a trace file when the SAP client is shut down. We have tried multiple methods to stop the generation of the trace file but each time it is generated as soon as the connection to the SAP client is severed. Below are the three methods we have used:
    1) Pass TraceLevel = 0 into the RegisterRFCServer method when we register our server application.
    2) Set the CPIC_TRC and even CPIC_TRACE environment variables to 0.
    3) Unchecked the 'Trace' checbox on the RFC destination in SAP.
    Each time we have tried this, even after setting the environment variables and rebooting we see that a CPICTRC file is being generated in the System32 folder with the contents similar to below:
    trc file: "CPICTRC1968", trc level: 1, release: "711"
    [Thr 5836] Sat Sep 19 17:06:15 2009
    [Thr 5836] opened by SAP_CMACCPTP (version=711.2008.04.28)
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    [Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
    Does anyone have any idea why this file is being generated even though we are setting the trace level to 0 and, more importantly, how we can go about preventing this file from being generated?

    Hello Rob,
    I assume the gateway trace level is "propagated" from the SAP system to the external server program.
    Can you please check SM59, "Special Options"? There should be a section headed "Send Trace".
    If here the option "Default Gateway Value" is activated, try switching it to  "Do Not Send Trace".
    (Or alternatively you can turn off the gateway trace in transaction SMGW: Menu entry "Goto --> Trace
    --> Gateway --> Reduce Level")
    Best Regards, Ulrich

  • Which .exe file I should choose to apply SP2 for SQL Server 2008r2 Enterprise Edition 64Bit

    Hi All,
    Which .exe file I should choose to apply SP2 for SQL Server 2008r2 Enterprise Edition 64Bit.
    And what is the difference between below .exe files. 
    SQLServer2008R2SP2-KB2630458-x64-ENU.exe
    SQLServer2008R2SP2-KB2630458-IA64-ENU.exe
    Grateful to your time and support. Regards, Shiva

    Good day
    Shiva Shakthi,
    I have change the type of the thread to a question, as this is a question :-)
    please chose the right type next time. If you have a question then use a question thread (this is the default), and that will let you mark the answers that you get.
    Have a nice day :-)
    [Personal Site] [Blog] [Facebook]

  • Can't access FTP server to download tftp.exe file

    I am trying to update the firmware on my WRT54GS v5 router.  I had no problem downloading the firmware, but can't access the FTP site for the TFTP.EXE file.  It won't work in IE or Firefox.  I can't get it through my router, or wireless thorugh my neighbor's router.
    What should I try? 

    To download the TFTP.exe file on your computer click Here.
    Once you download the TFTP file on your computer, now connect your computer to the Linksys router and Follow the instruction below. 
    Double click the TFTP.exe file and click run.
    For Server- Enter the IP Address of the router that you assigned.  By default, the router is 192.168.1.1...
    For Password- Enter the password you assigned the router. By default, the router’s password is “admin”.
    For File- Click the triple “…” button and browse for the .bin firmware file...
    Click Upgrade button to start upgrading.  A progress bar should show up to show the progress.
    Once the Upgrade is done press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...

  • RFC Server - Can't get to work

    I will prefice this by saying I am an ABAP developer with very little VB.Net experience.  Basically I am trying to write an application that will be called from SAP, perform a routine and return some values back to SAP.  In order to prepare for this I am trying to do the sample tutorial that came with the SAP .Net Connector documentation (called "How to Build a Simple RFC Server in .NET").   I have gotten to step 4 without many problems, but I am having trouble finding out where to put the "Command Line Arguments" in the "Set Logon Parameters for your SAP Server" step.  If I go to "ConsoleApplication1" properties pages under "Configuration Properties" there is a place for command line arguments (it is under "Debug").  Is this where I am to put my arguments?  When I run the console do these arguments get executed?  Also, what is the best way to deploy this to the application server?
    Thanks for any help you can provide!

    When you run the exe file from server, you have to pass those paramters in the command line only.
    For Example:
    C:\>ConsoleApplication1 -a<registerd name> -g<servername> -x<Gateway Service>
    We have created a batch file (.BAT) with the above command line parameters. You should make sure that this exe file run always.
    I have read somewhere, it says EXE file can be converted into windows services and deploy it. I have not used this. Let me know if you get this.
    Thanks & Regards,
    Govind.

  • A problem about Simple RFC Server

    I'm developing a Simple RFC Server by SAP dotNet Connnector. As a necessary step, I create a TCP/IP destination on R/3 system, however I meet some problem in this step as following: 
      There is a console exe file as Simple RFC server run on the windows side name "RFCConsole.exe", and I want to create a TCP/IP destination by SM59.
      In the process to create it, three data "Program ID", "Gateway Host", "Gateway Service" should be inputted. How to set them correctly? I guess I should set "RFCConsole.exe" to "Program ID", is it correct? And how about the others? Now, I set Computer Name of the windows side to the "Gateway Host" and "SAPGW00" to the "Gateway Service". It failed when test connection. 
      As a sever, the console program also want to register "Program ID", "Gateway Host", "Gateway Service" when it running, are these three data same to the three ones in destination on R/3?
      Thanks a lot to anyone who answer my question.

    First thanks to Guangwei.
    Now I'm success to call it. The Gateway Service Name can be find from R/3 by several ways, and if you do a search in SAP Library you can get them. I use the program 'RSPFPAR' and find it from the result report.
    To Yevgeniy Trukhin:
    I don't know what you mean. If you realy want to know what value the RFC server has, I only can tell you that I just do it as a technology test, no for any bussiness goal.
    However, I think maybe it will be useful as the following scenarios:
    1. There is a current R/3 system with many programs using RFC call. Formerly, it only be needed to exchange data with another R/3 system, but if now I want to connect it with a NO-SAP server, how I can do it? Yeah, there are a lot of ways can realize the connection like ALE, iDoc and so so. But though them, you want to change you code and solution, as the RFC is not useful in those ways. But if you can develop a RFC server run as a service on the target server, you can still stay your code on the R/3, nothing will change only to configure the TCP/IP destination set. So I think in this scenarios the RFC server is a good solution, save money and time.
    2. R/3 system is a high price product, not all the company can use it. So if in the B2B case, develop a RFC server give us a way to keep connection and exchanging data with the customer's R/3 system without buy one for our side. This is also helpful to keep the current solution on NO-SAP side and reduce cost.
    In the integration, SAP want to realize the loose couple so how to work with NO-SAP products is in consideration.

  • External device connection: RFC Server?

    Hello to all,
    i'm new here.
    I'm facing a new problem i never met before.
    I'm on a 4.7 enviroment and i have to interface sap with an external device.
    The producers of external device, release an executable file that makes (but i don't kwnow how) the communication from the device and sap.
    The only things that i had to do was (following the device documentation):
    1. Create a tcp/ip remote destination that point to one external executable (es: Z_EXT_DEVICE --> c:\device\device2sap.exe) (if i double-click on it, it don't do anything) 
    2. Setup in the external setup device program (setupdevice.exe), the name of the RFC destination (Z_EXT_DEVICE), the sapgateway address (sapgw00) and the sap host address (ex 10.2.4.XX)
    (Note that i don't have to specify sap usr/pwd for the connection in any step).
    3. Call a simple function module in SAP system in this way:
    CALL FUNCTION 'Z_RFC_DATA' DESTINATION 'Z_EXT_DEVICE'
        EXPORTING
          header        = szheader
          data          = szdata
          status        = '0'
          data_len      = szvalue
        IMPORTING
          system           = szretsystem
          code             = szretcode
          ret_text         = szrettext
          header           = szanswerheader
          len_data         = szlendata
          bct_status       = szstatus
          bct_data         = szanswerdata
        EXCEPTIONS
          communication_failure  = 1
          system_failure         = 2
          OTHERS                 = 3.
    The code of the function module is empty :
    FUNCTION Z_RFC_BCT.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(HEADER) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(DATA) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(STATUS) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(DATA_LEN) LIKE  BAPIRET2-MESSAGE
    *"  EXPORTING
    *"     VALUE(SYSTEM) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(CODE) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(RET_TEXT) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(HEADER) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(DATA) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(LEN_DATA) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(STATUS) LIKE  BAPIRET2-MESSAGE
    *"  EXCEPTIONS
    *"      COMMUNICATION_FAILURE
    *"      SYSTEM_FAILURE
    ENDFUNCTION.
    After the call of the function module in sap system, magically the importing variables are filled all by values read from the external device. At this point I'd like to ask u some questions :
    1. I think that external device program (device2sap.exe) is an RFC server program. Is it right ??
    2. How the connection from external executable and sap works if i don't specify usr/pwd in any configuration file? The device    infact, work with every sap (if u execute the three sinple step wrote before)
    3. I'd like write a server like that for a different external device. In the old release of sap (4.0,4.5) there was a sap tools (in function module editor SE37) that permitted (starting from a function module), to generate a client or server external program (in C or VB). In 4.7 this functionality is missing. Is there other sap tools that permitt to do the same thing or this functionality is completly lost?? In the second case, do u have some hits that could help me in this step??
    4. I'd like to have some documentation about the server program and communication methos between external RFC server program and Sap. Where i can find some good documents that could help me in that task ??
    5. I heard about DCOM connector. Where i can find some good documentations that explain how is it , how it works and if it could solve my problem ?
    Thanks a lot in advance.
    Andrea

    Hi, I'm sure the device2sap.exe is developed by a Connector Tools. E.G. .Net Connector, Jco and so on.
    So reply your question as following:
    1. Yes, in the external application side, it can simulate a RFC server for the SAP to call, just like call to another R3 server.
    2. No need on use/pw. it is not DataBase connection, just a RFC connection. The key feature only need is the IP. And you should configure the RFC destination using IP. RFC is a FM call protocol, not to access a DB.
    3. Using the Connector tools I mentioned in the former reply. And you can navigate in the .Net Tech Forum in SDN.
    4. The guide of Connector Development can be get from SDN, and some sample code will be copy in the install directory, after you installed it.
    5. DCOM is the tech used in the former Connector version SAP DCOM conncetor. Now, as the windows is into the Dotnet Time, recommand you to use DotNet Connector.
    That's all.   hope it will be helpful

Maybe you are looking for