Your program’s overall goal is to call a function in the R/3 System, sending data as input to the function and receiving data as return values. In the Function Control, sending and return parameters are presented as further objects contained in the Function object.
Any application using OLE Automation must perform the programming tasks listed below. You should perform the first three steps for both methods of remote call access:
If you are making non-dynamic remote function calls, continue as follows:
If you are making dynamic remote function calls, do not add the function to the functions collection, but write the function call like a native (local) VB function:
Xfunc (X1: = 5, X2: = nVar, X3: = objVar)
where X1, X2, and X3 are the argument names in the function interface.
Parameters can be either simple variables or object variables.
The following sections show how to program these tasks.