Classes | |
| struct | _RFC_TRANSACTION_HANDLE |
| Handle to a data container for a tRFC/qRFC LUW. More... | |
Functions | |
| DECL_EXP RFC_RC SAP_API | RfcGetTransactionID (RFC_CONNECTION_HANDLE rfcHandle, RFC_TID tid, RFC_ERROR_INFO *errorInfo) |
| Retrieves a unique 24-digit transaction ID from the backend. | |
| DECL_EXP RFC_TRANSACTION_HANDLE SAP_API | RfcCreateTransaction (RFC_CONNECTION_HANDLE rfcHandle, RFC_TID tid, SAP_UC const *queueName, RFC_ERROR_INFO *errorInfo) |
| Creates a container for executing a (multi-step) transactional call. | |
| DECL_EXP RFC_RC SAP_API | RfcInvokeInTransaction (RFC_TRANSACTION_HANDLE tHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO *errorInfo) |
| Adds a function module call to a transaction. | |
| DECL_EXP RFC_RC SAP_API | RfcSubmitTransaction (RFC_TRANSACTION_HANDLE tHandle, RFC_ERROR_INFO *errorInfo) |
| Executes the entire LUW in the backend system as an "atomic unit". | |
| DECL_EXP RFC_RC SAP_API | RfcConfirmTransaction (RFC_TRANSACTION_HANDLE tHandle, RFC_ERROR_INFO *errorInfo) |
| Removes the TID contained in the RFC_TRANSACTION_HANDLE from the backend's ARFCRSTATE table. | |
| DECL_EXP RFC_RC SAP_API | RfcDestroyTransaction (RFC_TRANSACTION_HANDLE tHandle, RFC_ERROR_INFO *errorInfo) |
| Releases the memory of the transaction container. | |
| DECL_EXP RFC_RC SAP_API RfcConfirmTransaction | ( | RFC_TRANSACTION_HANDLE | tHandle, | |
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Removes the TID contained in the RFC_TRANSACTION_HANDLE from the backend's ARFCRSTATE table.
After RfcSubmitTransaction() has finally succeeded, call RfcConfirmTransaction() to clean up the transaction handling table in the backend.
| [in] | tHandle | A transaction handle that has successfully been submitted. |
| [out] | *errorInfo | Additional error information in case of a network problem. |
| DECL_EXP RFC_TRANSACTION_HANDLE SAP_API RfcCreateTransaction | ( | RFC_CONNECTION_HANDLE | rfcHandle, | |
| RFC_TID | tid, | |||
| SAP_UC const * | queueName, | |||
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Creates a container for executing a (multi-step) transactional call.
If queueName is NULL, tRFC will be used, otherwise qRFC. Use RfcInvokeInTransaction() to add one (or more) function modules to the transactional call. When sending this transactional call to the backend via RfcSubmitTransaction(), the backend will then treat all function modules in the RFC_TRANSACTION_HANDLE as one LUW.
| [in] | rfcHandle | Client connection to the backend, into which you want to send this tRFC/qRFC LUW. |
| [in] | tid | A unique 24 character ID. |
| [in] | *queueName | For tRFC set this to NULL, for qRFC specify the name of a qRFC inbound queue in the backend. |
| [out] | *errorInfo | Error information in case there is a problem with the connection. |
| DECL_EXP RFC_RC SAP_API RfcDestroyTransaction | ( | RFC_TRANSACTION_HANDLE | tHandle, | |
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Releases the memory of the transaction container.
| [in] | tHandle | A transaction handle that is no longer needed. |
| [out] | *errorInfo | Not much that can go wrong here... |
| DECL_EXP RFC_RC SAP_API RfcGetTransactionID | ( | RFC_CONNECTION_HANDLE | rfcHandle, | |
| RFC_TID | tid, | |||
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Retrieves a unique 24-digit transaction ID from the backend.
| [in] | rfcHandle | Client connection to a backend. |
| [out] | tid | Will be filled with the transaction ID. |
| [out] | *errorInfo | Error information in case there is a problem with the connection. |
| DECL_EXP RFC_RC SAP_API RfcInvokeInTransaction | ( | RFC_TRANSACTION_HANDLE | tHandle, | |
| RFC_FUNCTION_HANDLE | funcHandle, | |||
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Adds a function module call to a transaction.
Can be used multiple times on one tHandle.
| [in] | tHandle | A transaction handle created via RfcCreateTransaction(). |
| [in] | funcHandle | An RFC_FUNCTION_HANDLE, whose IMPORTING, CHANGING and TABLES parameters have been filled. |
| [out] | *errorInfo | Actually there is nothing that can go wrong here except for invalid handles and out of memory. |
| DECL_EXP RFC_RC SAP_API RfcSubmitTransaction | ( | RFC_TRANSACTION_HANDLE | tHandle, | |
| RFC_ERROR_INFO * | errorInfo | |||
| ) |
Executes the entire LUW in the backend system as an "atomic unit".
This step can be repeated until it finally succeeds (RFC_OK). The transaction handling in the backend system protects against duplicates (until you remove the TID from the backend's status tables using RfcConfirmTransaction()).
| [in] | tHandle | A transaction handle filled with one or several function modules. |
| [out] | *errorInfo | Additional error information in case anything goes wrong. |
1.5.5