Platforms to show: All Mac Windows Linux Cross-Platform

Back to RFCFunctionMBS class.

RFCFunctionMBS.Constructor(typeDescription as RFCFunctionDescriptionMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a data container that can be used to execute function calls in the backend via Invoke.

The importing parameters can be set using the Value() properties. After the RfcInvoke call returned successfully, the exporting parameters can be read from this data container via the Value() properties.

RFCFunctionMBS.DescribeFunction as RFCFunctionDescriptionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the function description that is valid for the system to which connection points to.

If the function description is already in the repository cache for that system ID, it will be returned immediately (from the cache), otherwise it will be looked up in the system's DDIC using the connection. The result from the DDIC lookup will then be placed in the cache. The RFC Runtime maintains a cache for every SAP System ID, as the meta data may be different depending on the SAP release. This is the main API that should be used.

RFCFunctionMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The destructor.

RFCFunctionMBS.Invoke

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Executes a function module in the backend system so far.
Example
Dim fd As RFCFunctionDescriptionMBS = connection.FunctionDescription("BAPI_COMPANY_GETDETAIL")
Dim f As RFCFunctionMBS = fd.CreateFunction

f.StringValue("COMPANYID") = "000007"
f.Invoke

Dim s As RFCStructureMBS = f.StructureValue("RETURN")
Dim t As String = s.StringValue("MESSAGE")

MsgBox t

RFCFunctionMBS.ParameterActive(Name as String) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether a parameter is active.

This is particularly useful for BAPIs which have many large tables, in which you are not interested.
Deactivate those and leave only those tables active, in which you are interested. This reduces network traffic and memory consumption in your application considerably.

This functionality can be used for input and output parameters. If the parameter is an input, no data for that parameter will be sent to the backend. If it's an output, the backend will be informed not to return data for that parameter.
(Read and Write computed property)

The items on this page are in the following plugins: MBS Tools Plugin.


The biggest plugin in space...