Platforms to show: All Mac Windows Linux Cross-Platform
The module RFCModuleMBS
module RFCModuleMBSType | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
module | RFC | MBS Tools Plugin | 20.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can use this module and related classes to connect Xojo to SAP applications and databases.
We support MacOS, Windows and Linux.
You need to get a SAP login (maybe become SAP developer) and download
SAP NetWeaver RFC SDK 7.50.
You need SAP license for user and maybe a developer license yourself.
Please read SAP documentation for various RFC functions to get more details.
MBS Plugin manages memory for you, does reference counting and makes API easier to use for Xojo developers.
- method LoadLibrary(file as folderitem) as boolean
- method LoadLibrary(path as string) as boolean
- method LocalTransactionID as String
- method ReloadIniFile
- method SetCurrentWorkingDirectory(path as folderitem) as boolean
- method SetCurrentWorkingDirectory(path as String) as boolean
- property IniPath as String
- property LibraryLoadError as Integer
- property LibraryLoadErrorMessage as String
- property Loaded as Boolean
- property MajorVersion as Integer
- property MinorVersion as Integer
- property PatchLevel as Integer
- property TraceDir as String
- property TraceEncoding as String
- property TraceType as String
- property Version as String
- 30 constants
Errors
Constant | Value | Description |
---|---|---|
kErrorAbapClassException | 27 |
The called function module raised a class based exception |
kErrorAbapException | 5 |
The called function module raised an Exception (RAISE or MESSAGE ... RAISING) |
kErrorAbapMessage | 4 |
The called function module raised an E-, A- or X-Message |
kErrorAbapRuntimeFailure | 3 |
SAP system runtime error (SYSTEM_FAILURE): Shortdump on the backend side |
kErrorAuthorizationFailure | 29 |
Authorization check error |
kErrorBufferTooSmall | 23 |
The given buffer was to small to hold the entire parameter. Data has been truncated. |
kErrorCanceled | 7 |
No longer used |
kErrorClosed | 6 |
Connection closed by the other side |
kErrorCodepageConversionFailure | 21 |
Codepage conversion error |
kErrorCommunicationFailure | 1 |
Error in Network & Communication layer |
kErrorConversionFailure | 22 |
Error while converting a parameter to the correct data type |
kErrorExecuted | 16 |
Inbound tRFC Call already executed (needs to be returned from RFC_ON_CHECK_TRANSACTION in case the TID is already known and successfully processed before.) |
kErrorExternalFailure | 15 |
Error in external custom code. (E.g. in the function handlers or tRFC handlers.) Results in SYSTEM_FAILURE |
kErrorIllegalState | 19 |
The operation is not supported on that handle at the current point of time (e.g. trying a callback on a server handle, while not in a call) |
kErrorInvalidHandle | 13 |
An invalid handle was passed to an API call |
kErrorInvalidParameter | 20 |
An invalid parameter was passed to an API call, (e.g. invalid name, type or length) |
kErrorInvalidProtocol | 11 |
The received data has an unsupported format |
kErrorLogonFailure | 2 |
Unable to logon to SAP system. Invalid password, user locked, etc. |
kErrorMemoryInsufficient | 9 |
Memory insufficient |
kErrorNotFound | 17 |
Function or structure definition not found (Metadata API) |
kErrorNotSupported | 18 |
The operation is not supported on that handle |
kErrorOk | 0 |
Everything O.K. Used by every function. (no exception) |
kErrorRetry | 14 |
ListenAndDispatch did not receive an RFC request during the timeout period |
kErrorSerializationFailure | 12 |
A problem while serializing or deserializing RFM parameters |
kErrorStartSapguiFailure | 26 |
Failed to start and attach SAPGUI to the RFC connection. |
kErrorTableMoveBof | 24 |
Trying to move the current position before the first row of the table. |
kErrorTableMoveEof | 25 |
Trying to move the current position after the last row of the table. |
kErrorTimeout | 8 |
Time out |
kErrorUnknownError | 28 |
"Something" went wrong, but I don't know what... |
kErrorVersionMismatch | 10 |
Version mismatch |
Some examples which use this module:
Blog Entries
The items on this page are in the following plugins: MBS Tools Plugin.