17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating an RFC Server Object<br />

Application<br />

Server collection<br />

© SAP AG<br />

Server<br />

Application<br />

Server collection<br />

Server<br />

With "server object"<br />

Set RFCServer = CreateObject ("RFC.ServerObject")<br />

OR<br />

With "application object" and the method Add<br />

Set RFCApp = CreateObject("RFC.Application")<br />

Set RFCObjs = RFCApp.ServerObjects<br />

Set RFCServer = RFCObjs.Add("Server1")<br />

To work with other objects in the RFC object hierarchy apart from the application object, you must<br />

generate a server object.<br />

To generate a server object, there are two options.<br />

1. When using CreateObject("RFC.ServerObject"), the following steps are executed automatically:<br />

a. An application object is created.<br />

b. An entry for a new server object is added to the server collection object.<br />

c. A server object is created.<br />

2. When using CreateObject("RFC.Application"), the following steps are executed:<br />

a. An application object is created.<br />

When using RFCObjs.Add to create a server object, the following steps are executed:<br />

a. An entry for a new server object is added to the server collection object.<br />

b. A server object is created.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!