Platforms to show: All Mac Windows Linux Cross-Platform

Back to RFCModuleMBS module.

RFCModuleMBS.LoadLibrary(file as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the sapnwrfc library.
Example
#If TargetWin32
Const path = "sapnwrfc.dll"
#Else
Dim path As FolderItem = GetFolderItem("libsapnwrfc.dylib")
Dim LibPath As String = path.parent.NativePath

Call RFCModuleMBS.SetCurrentWorkingDirectory(libPath)
#EndIf

If RFCModuleMBS.LoadLibrary(path) Then
MsgBox "Library loaded."
Else
MsgBox "Failed to load library"+EndOfLine+EndOfLine+RFCModuleMBS.LibraryLoadErrorMessage
quit
End If

Pass path to sapnwrfc.dll on Windows or libsapnwrfc.dylib on MacOS or libsapnwrfc.so on Linux.
If file is installed in system path, you may just pass file name.

Returns true on success or false on failure.
The LibraryLoadErrorMessage function returns error message on failure.

See also:

RFCModuleMBS.LoadLibrary(path as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the sapnwrfc library.

Pass path to sapnwrfc.dll on Windows or libsapnwrfc.dylib on MacOS or libsapnwrfc.so on Linux.
If file is installed in system path, you may just pass file name.

Returns true on success or false on failure.
The LibraryLoadErrorMessage function returns error message on failure.

See also:

RFCModuleMBS.LocalTransactionID as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Retrieves a unique 24-digit transaction ID.

The API will attempt to generate a TID locally using the operating system's UUID.

RFCModuleMBS.ReloadIniFile

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Loads the contents of the sapnwrfc.ini file into memory.

Searches the directory given by IniPath (or the current working directory) for the file sapnwrfc.ini and loads its contents into memory.

RFCModuleMBS.SetCurrentWorkingDirectory(path as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the current working directory.
Example
Dim path As FolderItem = GetFolderItem("libsapnwrfc.dylib")
Dim LibPath As String = path.parent.NativePath

Call RFCModuleMBS.SetCurrentWorkingDirectory(libPath)

This is often useful to make sure the DLLs in that folder are found.

See also:

RFCModuleMBS.SetCurrentWorkingDirectory(path as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method RFC MBS Tools Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the current working directory.

This is often useful to make sure the DLLs in that folder are found.

See also:

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


The biggest plugin in space...