17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Calling an R/3 Function (2.2)<br />

Define values for export objects and use<br />

"Call" method for function object<br />

Set FunctionExports = RFCFunction.Exports<br />

FunctionExports.Item( PARAM1 ) = LocParam1<br />

FunctionExports.Item( PARAM2 ) = LocParam2<br />

Result = RFCFunction.Call<br />

Set local variable to import object to get result<br />

of function call<br />

Set LocParam3 = FunctionImports.Item("PARAM3")<br />

© SAP AG<br />

Function collection<br />

Imports coll.<br />

Application<br />

Server collection<br />

Server<br />

Function<br />

Parameter<br />

Exports coll.<br />

Before calling the function module with the method “Call”, you must also set the export parameters<br />

using the exports collection object.<br />

To get the import parameters after the function call, you must assign the local variable to the object item<br />

of the import collection. This is different from dynamic retrieval where the import parameters of the local<br />

variables are assigned automatically.

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

Saved successfully!

Ooh no, something went wrong!