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.

Setting Up a Connection to R/3<br />

Logon using the method "Logon"<br />

Set RFCConnection = RFCServer.Connection<br />

If RFCConnection.Logon True Then<br />

RFCServer.Application.Quit<br />

Exit<br />

End If<br />

Logon using the method "Open"<br />

RFCConnection.User= User1”<br />

RFCConnection.System= D22”<br />

...<br />

RFCConnection.Open<br />

© SAP AG<br />

ODER<br />

Application<br />

Server collection<br />

Server<br />

Connection<br />

To call a function module in R/3, you must set up a connection to an R/3 application server. Only one<br />

connection is possible for each server object. There are two ways of setting up a connection:<br />

“Logon” method:<br />

You should use this method if the user has to enter most of the connection information. Since it<br />

automatically displays a dialog field for entry of the logon information, you then do not need to code<br />

this.<br />

“Open” method:<br />

You should use this method if you can set all the connection information in the program, since no<br />

dialog field is automatically displayed in this case. The “Open” method works only if all the logon<br />

information is predefined.

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

Saved successfully!

Ooh no, something went wrong!