cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Server (exe file)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi zemon,

how r u doing ?

thank you for the 'solved problem answer' reward points

with respect,

amit

Message was edited by:

amit chawathe

Answers (1)

Answers (1)

Former Member
0 Kudos

usually, when a connection is opened to a RFC, it should be closed at the end of it's use

this is a programming practice, and not a necessity, it will depend on how the has handled the call, the possibility of non handled exxceptions will also leave the connection open ...

i am not aware the relation of number of clicks [invocation] creating a new process everytime, but that will again come down to how the program was written

with respect,

amit

Former Member
0 Kudos

I'm SAP learner and begin of .dot net and weakness in english lang. I follow the how to step by step then my project is work SAP send datatable to RFC Server and then get return in multirecord it work well but i don't understand some section of code example ,I try to understand C:\Program Files\SAP\SAP .NET Connector 2.0\Samples\CSServerSimple\SAPProxy1Impl.cs

-


/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 .

-


/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?

Former Member
0 Kudos

>> 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