|
SAP NetWeaver RFC SDK 7.50
|
Functions for creating and looking up metadata descriptions in the R/3 DDIC. More...
Modules | |
| Metadata for structures/line-types | |
| Functions for creating, reading and traversing through structure descriptions. | |
| Metadata for function modules | |
| Functions for creating, reading and traversing through function module descriptions. | |
| Metadata for ABAP classes | |
| Functions for creating, reading and traversing through ABAP class descriptions. | |
Classes | |
| struct | _RFC_TYPE_DESC_HANDLE |
| Handle to a cached metadata description of a structure or table type. More... | |
| struct | _RFC_FUNCTION_DESC_HANDLE |
| Handle to a cached metadata description of a function module. More... | |
| struct | _RFC_CLASS_DESC_HANDLE |
| Handle to a cached metadata description of a class. More... | |
| struct | _RFC_FIELD_DESC |
| Structure for reading (RfcGetFieldDescByIndex() or RfcGetFieldDescByName()) or defining (RfcAddTypeField()) the properties of a field in a structure/table. More... | |
| struct | _RFC_PARAMETER_DESC |
| Structure for reading (RfcGetParameterDescByIndex() or RfcGetParameterDescByName()) or defining (RfcAddParameter()) the properties of a parameter in a function module. More... | |
| struct | _RFC_EXCEPTION_DESC |
| Structure for reading (RfcGetExceptionDescByIndex() or RfcGetExceptionDescByName()) or defining (RfcAddException()) the properties of an exception key in a function module. More... | |
| struct | _RFC_CLASS_ATTRIBUTE_DESC |
| Structure for reading (RfcGetParameterDescByIndex() or RfcGetParameterDescByName()) or defining (RfcAddParameter()) the properties of a parameter in a function module. More... | |
| struct | _RFC_METADATA_QUERY_RESULT_ENTRY |
| Structure containing the error that occurred during the metadata query. More... | |
Enumerations | |
| enum | _RFC_DIRECTION { RFC_IMPORT = 0x01, RFC_EXPORT = 0x02, RFC_CHANGING = RFC_IMPORT | RFC_EXPORT, RFC_TABLES = 0x04 | RFC_CHANGING } |
| Used in RFC_PARAMETER_DESC::direction for specifying the direction of a function module parameter. More... | |
| enum | _RFC_CLASS_ATTRIBUTE_TYPE { RFC_CLASS_ATTRIBUTE_INSTANCE, RFC_CLASS_ATTRIBUTE_CLASS, RFC_CLASS_ATTRIBUTE_CONSTANT } |
| Determines the type of an ABAP Object attribute. More... | |
| enum | _RFC_METADATA_OBJ_TYPE { RFC_METADATA_FUNCTION, RFC_METADATA_TYPE, RFC_METADATA_CLASS } |
| An RFC_METADATA_OBJ_TYPE indicates whether in a call to RfcGetMetadataQueryFailedEntry() or RfcGetMetadataQuerySucceededEntry() you are interested in the error/success message for a function module (_FUNCTION), structure/table (_TYPE) or ABAP Class (_CLASS). More... | |
Functions | |
| DECL_EXP RFC_FUNCTION_DESC_HANDLE SAP_API | RfcGetFunctionDesc (RFC_CONNECTION_HANDLE rfcHandle, SAP_UC const *funcName, RFC_ERROR_INFO *errorInfo) |
| Returns the function description that is valid for the system to which rfcHandle points to. More... | |
| DECL_EXP RFC_FUNCTION_DESC_HANDLE SAP_API | RfcGetCachedFunctionDesc (SAP_UC const *repositoryID, SAP_UC const *funcName, RFC_ERROR_INFO *errorInfo) |
| Looks for a cached function description. More... | |
| DECL_EXP RFC_RC SAP_API | RfcAddFunctionDesc (SAP_UC const *repositoryID, RFC_FUNCTION_DESC_HANDLE funcDesc, RFC_ERROR_INFO *errorInfo) |
| Adds a function description to the cache for the specified R/3 System. More... | |
| DECL_EXP RFC_RC SAP_API | RfcRemoveFunctionDesc (SAP_UC const *repositoryID, SAP_UC const *functionName, RFC_ERROR_INFO *errorInfo) |
| Removes a function description from the cache for the specified R/3 System. More... | |
| DECL_EXP RFC_TYPE_DESC_HANDLE SAP_API | RfcGetTypeDesc (RFC_CONNECTION_HANDLE rfcHandle, SAP_UC const *typeName, RFC_ERROR_INFO *errorInfo) |
| Returns the structure description that is valid for the system to which rfcHandle points to. More... | |
| DECL_EXP RFC_TYPE_DESC_HANDLE SAP_API | RfcGetCachedTypeDesc (SAP_UC const *repositoryID, SAP_UC const *typeName, RFC_ERROR_INFO *errorInfo) |
| Looks for a cached structure/table description. More... | |
| DECL_EXP RFC_RC SAP_API | RfcAddTypeDesc (SAP_UC const *repositoryID, RFC_TYPE_DESC_HANDLE typeHandle, RFC_ERROR_INFO *errorInfo) |
| Adds a type description to the cache. More... | |
| DECL_EXP RFC_RC SAP_API | RfcRemoveTypeDesc (SAP_UC const *repositoryID, SAP_UC const *typeName, RFC_ERROR_INFO *errorInfo) |
| Removes a type description from the cache. More... | |
| DECL_EXP RFC_CLASS_DESC_HANDLE SAP_API | RfcGetClassDesc (RFC_CONNECTION_HANDLE rfcHandle, SAP_UC const *className, RFC_ERROR_INFO *errorInfo) |
| Returns the class description that is valid for the system to which rfcHandle points to. More... | |
| DECL_EXP RFC_CLASS_DESC_HANDLE SAP_API | RfcGetCachedClassDesc (SAP_UC const *repositoryID, SAP_UC const *className, RFC_ERROR_INFO *errorInfo) |
| Looks for a cached class description. More... | |
| DECL_EXP RFC_RC SAP_API | RfcAddClassDesc (SAP_UC const *repositoryID, RFC_CLASS_DESC_HANDLE classDesc, RFC_ERROR_INFO *errorInfo) |
| Adds a class description to the cache for the specified R/3 System. More... | |
| DECL_EXP RFC_RC SAP_API | RfcRemoveClassDesc (SAP_UC const *repositoryID, SAP_UC const *className, RFC_ERROR_INFO *errorInfo) |
| Removes a class description from the cache for the specified R/3 System. More... | |
| DECL_EXP RFC_RC SAP_API | RfcClearRepository (SAP_UC const *repositoryID, RFC_ERROR_INFO *errorInfo) |
| Removes all metadata from the repository cache of the specified R/3 System. More... | |
| DECL_EXP RFC_RC SAP_API | RfcSaveRepository (SAP_UC const *repositoryID, FILE *const targetStream, RFC_ERROR_INFO *errorInfo) |
| Stores the currently cached objects of a repository into a JSON formatted text file. More... | |
| DECL_EXP RFC_RC SAP_API | RfcLoadRepository (SAP_UC const *repositoryID, FILE *const targetStream, RFC_ERROR_INFO *errorInfo) |
| Retrieves metadata from a JSON formatted text file and creates the according repository to use for function calls. More... | |
| DECL_EXP RFC_METADATA_QUERY_RESULT_HANDLE SAP_API | RfcCreateMetadataQueryResult (RFC_ERROR_INFO *errorInfo) |
| Creates the metadata query resultMetadata query results contain the names of functions, types and classes queried successfully, and the corresponding errors, if the query failed. More... | |
| DECL_EXP RFC_RC SAP_API | RfcDestroyMetadataQueryResult (RFC_METADATA_QUERY_RESULT_HANDLE handle, RFC_ERROR_INFO *errorInfo) |
| Destroys the metadata query resultReleases all resources allocated by the metadata query result. More... | |
| DECL_EXP RFC_RC SAP_API | RfcDescribeMetadataQueryResult (RFC_METADATA_QUERY_RESULT_HANDLE handle, RFC_METADATA_OBJ_TYPE type, unsigned *successful, unsigned *failed, RFC_ERROR_INFO *errorInfo) |
| Describes the metadata query resultReturns the number of succeeded and failed entries in the metadata query result. More... | |
| DECL_EXP RFC_RC SAP_API | RfcGetMetadataQueryFailedEntry (RFC_METADATA_QUERY_RESULT_HANDLE handle, RFC_METADATA_OBJ_TYPE type, unsigned index, RFC_METADATA_QUERY_RESULT_ENTRY *entry, RFC_ERROR_INFO *errorInfo) |
| Returns the error entry from the metadata query resultReturns the object name and the error text, if an error occurred during the query. More... | |
| DECL_EXP RFC_RC SAP_API | RfcGetMetadataQuerySucceededEntry (RFC_METADATA_QUERY_RESULT_HANDLE handle, RFC_METADATA_OBJ_TYPE type, unsigned index, RFC_ABAP_NAME succeedObj, RFC_ERROR_INFO *errorInfo) |
| Returns a succeeded entry from the metadata query resultReturns the object name of a successfully queried object. More... | |
| DECL_EXP RFC_RC SAP_API | RfcMetadataBatchQuery (RFC_CONNECTION_HANDLE rfcHandle, const SAP_UC **functionNames, unsigned functionCount, const SAP_UC **typeNames, unsigned typeCount, const SAP_UC **classNames, unsigned classCount, RFC_METADATA_QUERY_RESULT_HANDLE handle, RFC_ERROR_INFO *errorInfo) |
| Queries the meta data for function, type and class lists. More... | |
Functions for creating and looking up metadata descriptions in the R/3 DDIC.
Functions for traversing through metadata descriptions.
Determines the type of an ABAP Object attribute.
| Enumerator | |
|---|---|
| RFC_CLASS_ATTRIBUTE_INSTANCE |
Instance attribute (object member) |
| RFC_CLASS_ATTRIBUTE_CLASS |
Class attribute (global) |
| RFC_CLASS_ATTRIBUTE_CONSTANT |
A constant. |
Definition at line 689 of file sapnwrfc.h.
| enum _RFC_DIRECTION |
Used in RFC_PARAMETER_DESC::direction for specifying the direction of a function module parameter.
Definition at line 642 of file sapnwrfc.h.
An RFC_METADATA_OBJ_TYPE indicates whether in a call to RfcGetMetadataQueryFailedEntry() or RfcGetMetadataQuerySucceededEntry() you are interested in the error/success message for a function module (_FUNCTION), structure/table (_TYPE) or ABAP Class (_CLASS).
It needs to be passed to the above two functions.
| Enumerator | |
|---|---|
| RFC_METADATA_FUNCTION | |
| RFC_METADATA_TYPE | |
| RFC_METADATA_CLASS | |
Definition at line 5382 of file sapnwrfc.h.
| DECL_EXP RFC_RC SAP_API RfcAddClassDesc | ( | SAP_UC const * | repositoryID, |
| RFC_CLASS_DESC_HANDLE | classDesc, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Adds a class description to the cache for the specified R/3 System.
This API should be used with care and is only for special scenarios, e.g. if you want to write an RFC server that offers/uses classes, which do not exist in the R/3 system's DDIC. If repositoryID is NULL, the description is added to the "default repository".
| [in] | *repositoryID | System ID of R/3 System, to whose cache you want to add the class description, or NULL for the default repository. |
| [in] | classDesc | The class description. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcAddFunctionDesc | ( | SAP_UC const * | repositoryID, |
| RFC_FUNCTION_DESC_HANDLE | funcDesc, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Adds a function description to the cache for the specified R/3 System.
This API should be used with care and is only for special scenarios, e.g. if you want to write an RFC server that offers function modules, which do not exist in the R/3 system's DDIC. If repositoryID is NULL, the description is added to the "default repository".
| [in] | *repositoryID | System ID of R/3 System, to whose cache you want to add the function description, or NULL for the default repository. |
| [in] | funcDesc | The function description. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcAddTypeDesc | ( | SAP_UC const * | repositoryID, |
| RFC_TYPE_DESC_HANDLE | typeHandle, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Adds a type description to the cache.
| [in] | *repositoryID | System ID of R/3 System, to whose cache you want to add the type description, or NULL for the default repository. |
| [in] | typeHandle | The type description. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcClearRepository | ( | SAP_UC const * | repositoryID, |
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Removes all metadata from the repository cache of the specified R/3 System.
If repositoryID is NULL, the "default repository" is cleared.
| [in] | *repositoryID | System ID of R/3 System, whose cache you want to clear, or NULL for the default repository. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_METADATA_QUERY_RESULT_HANDLE SAP_API RfcCreateMetadataQueryResult | ( | RFC_ERROR_INFO * | errorInfo | ) |
Creates the metadata query resultMetadata query results contain the names of functions, types and classes queried successfully, and the corresponding errors, if the query failed.
| [out] | *errorInfo | More details in error case |
| DECL_EXP RFC_RC SAP_API RfcDescribeMetadataQueryResult | ( | RFC_METADATA_QUERY_RESULT_HANDLE | handle, |
| RFC_METADATA_OBJ_TYPE | type, | ||
| unsigned * | successful, | ||
| unsigned * | failed, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Describes the metadata query resultReturns the number of succeeded and failed entries in the metadata query result.
The entries' content can be read with RfcGetMetadataQueryFailedEntry() and RfcGetMetadataQuerySucceededEntry().
| [in] | handle | Handle to a metadata query result |
| [in] | type | Type of the metadata objects you are interested in |
| [out] | *successful | Number of metadata objects queried successfully |
| [out] | *failed | Number of metadata objects that could not be queried |
| [out] | *errorInfo | More details in error case |
| DECL_EXP RFC_RC SAP_API RfcDestroyMetadataQueryResult | ( | RFC_METADATA_QUERY_RESULT_HANDLE | handle, |
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Destroys the metadata query resultReleases all resources allocated by the metadata query result.
| [in] | handle | Handle to a metadata query result |
| [out] | *errorInfo | More details in error case |
| DECL_EXP RFC_CLASS_DESC_HANDLE SAP_API RfcGetCachedClassDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | className, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Looks for a cached class description.
This API should be used with care and is only for special scenarios, for example: 1. You know for sure, that a class description has already been cached via RfcGetClassDesc(), and don't want to open an extra rfcHandle that will never be used. In this case simply use the SAP System ID as the repositoryID. 2. You have created a hard-coded repository via RfcAddClassDesc(), which contains classes that do not exist in the backend's DDIC.
If repositoryID is NULL, the "default repository" is used.
| [in] | *repositoryID | System ID of R/3 System, for which this class description has been cached, or NULL in case you want to look for it in the default repository. |
| [in] | *className | Name of the class. |
| [out] | *errorInfo | Requested class name not in cache? |
| DECL_EXP RFC_FUNCTION_DESC_HANDLE SAP_API RfcGetCachedFunctionDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | funcName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Looks for a cached function description.
This API should be used with care and is only for special scenarios, for example: 1. You know for sure, that a function description has already been cached via RfcGetFunctionDesc(), and don't want to open an extra rfcHandle that will never be used. In this case simply use the SAP System ID as the repositoryID. 2. You have created a hard-coded repository via RfcAddFunctionDesc(), which contains function modules that do not exist in the backend's DDIC.
If repositoryID is NULL, the "default repository" is used.
| [in] | *repositoryID | System ID of R/3 System, for which this function module description has been cached, or NULL in case you want to look for it in the default repository. |
| [in] | *funcName | Name of the function module. |
| [out] | *errorInfo | Requested function name not in cache? |
| DECL_EXP RFC_TYPE_DESC_HANDLE SAP_API RfcGetCachedTypeDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | typeName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Looks for a cached structure/table description.
Similar to RfcGetTypeDesc(), but it only looks into the cache. Again it should almost never be necessary to get a metadata description of a single structure.
| [in] | *repositoryID | System ID of R/3 System, for which this type description has been cached, or NULL in case you want to look for it in the default repository. |
| [in] | *typeName | Name of the DDIC structure/table. |
| [out] | *errorInfo | Requested type name not in cache? |
| DECL_EXP RFC_CLASS_DESC_HANDLE SAP_API RfcGetClassDesc | ( | RFC_CONNECTION_HANDLE | rfcHandle, |
| SAP_UC const * | className, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Returns the class description that is valid for the system to which rfcHandle points to.
If the class 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 rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different from R/3 release to R/3 release. This is the main API that should be used.
| [in] | rfcHandle | Open client connection to the R/3 System, for which you need the class description. |
| [in] | *className | Name of the class to look up. |
| [out] | *errorInfo | More error details in case something goes wrong. |
| DECL_EXP RFC_FUNCTION_DESC_HANDLE SAP_API RfcGetFunctionDesc | ( | RFC_CONNECTION_HANDLE | rfcHandle, |
| SAP_UC const * | funcName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Returns the function description that is valid for the system to which rfcHandle 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 rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different from R/3 release to R/3 release. This is the main API that should be used.
| [in] | rfcHandle | Open client connection to the R/3 System, for which you need the function module description. |
| [in] | *funcName | Name of the function module to look up. |
| [out] | *errorInfo | More error details in case something goes wrong. |
| DECL_EXP RFC_RC SAP_API RfcGetMetadataQueryFailedEntry | ( | RFC_METADATA_QUERY_RESULT_HANDLE | handle, |
| RFC_METADATA_OBJ_TYPE | type, | ||
| unsigned | index, | ||
| RFC_METADATA_QUERY_RESULT_ENTRY * | entry, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Returns the error entry from the metadata query resultReturns the object name and the error text, if an error occurred during the query.
| [in] | handle | Handle to a metadata query result |
| [in] | type | Type of the requested object |
| [in] | index | Index of the requested object. Must be between 0 and "failed - 1", where "failed" is the value returned from RfcDescribeMetadataQueryResult() for the given RFC_METADATA_OBJ_TYPE. |
| [in,out] | *entry | Pointer to the allocated structure to store the name of the metadata object and the error text |
| [out] | *errorInfo | More details in error case |
| DECL_EXP RFC_RC SAP_API RfcGetMetadataQuerySucceededEntry | ( | RFC_METADATA_QUERY_RESULT_HANDLE | handle, |
| RFC_METADATA_OBJ_TYPE | type, | ||
| unsigned | index, | ||
| RFC_ABAP_NAME | succeedObj, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Returns a succeeded entry from the metadata query resultReturns the object name of a successfully queried object.
| [in] | handle | Handle to a metadata query result |
| [in] | type | Type of the requested object |
| [in] | index | Index of the requested object. Must be between 0 and "successful - 1", where "successful" is the value returned from RfcDescribeMetadataQueryResult() for the given RFC_METADATA_OBJ_TYPE. |
| [in,out] | *succeedObj | Pointer to the allocated buffer to store the name of the metadata object |
| [out] | *errorInfo | More details in error case |
| DECL_EXP RFC_TYPE_DESC_HANDLE SAP_API RfcGetTypeDesc | ( | RFC_CONNECTION_HANDLE | rfcHandle, |
| SAP_UC const * | typeName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Returns the structure description that is valid for the system to which rfcHandle points to.
If the structure 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 rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different from R/3 release to R/3 release.
| [in] | rfcHandle | Open client connection to the R/3 System, for which you need the structure description. |
| [in] | *typeName | Name of a DDIC structure or table. |
| [out] | *errorInfo | More error details in case something goes wrong. |
| DECL_EXP RFC_RC SAP_API RfcLoadRepository | ( | SAP_UC const * | repositoryID, |
| FILE *const | targetStream, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Retrieves metadata from a JSON formatted text file and creates the according repository to use for function calls.
This function will create a repository with the given ID - or a default repository, if the ID is NULL - and populate it with the function descriptions and parameter descriptions contained in the JSON formatted text file (see RfcSaveRepository()). That way the RFC program does not need to fetch the metadata from the backend DDIC, which is useful, if you want to improve the startup performance of your program or if your program is an RFC server that does not have login parameters for the backend. It is also possible to use JSON files created by SAP .NET Connector and SAP Java Connector.
| [in] | *repositoryID | System ID of R/3 System, for which you want to use the metadata contained in the JSON file, or NULL for the default repository. |
| [in] | *targetStream | FILE pointer opened by the user. |
| [out] | *errorInfo | More error details in case something goes wrong. |
| DECL_EXP RFC_RC SAP_API RfcMetadataBatchQuery | ( | RFC_CONNECTION_HANDLE | rfcHandle, |
| const SAP_UC ** | functionNames, | ||
| unsigned | functionCount, | ||
| const SAP_UC ** | typeNames, | ||
| unsigned | typeCount, | ||
| const SAP_UC ** | classNames, | ||
| unsigned | classCount, | ||
| RFC_METADATA_QUERY_RESULT_HANDLE | handle, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Queries the meta data for function, type and class lists.
Queries the meta data for function, type and class lists. All meta data is fetched using one roundtrip, the result is cached in the repository cache.
| [in] | rfcHandle | Open client connection to the R/3 System, for which you need the function module, type or class descriptions. |
| [in] | *functionNames | Names of the function modules to look up |
| [in] | functionCount | Length of the function name list |
| [in] | *typeNames | Names of the types (structures and tables) to look up |
| [in] | typeCount | Length of the type name list |
| [in] | *classNames | Names of the classes to look up |
| [in] | classCount | Length of the class name list |
| [in] | handle | Query result, may be null |
| [out] | *errorInfo | More error details in case something goes wrong |
| DECL_EXP RFC_RC SAP_API RfcRemoveClassDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | className, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Removes a class description from the cache for the specified R/3 System.
If repositoryID is NULL, the description is removed from the "default repository".
| [in] | *repositoryID | System ID of R/3 System, from whose cache you want to remove the class description, or NULL for the default repository. |
| [in] | *className | The name of the ABAP class, whose description you want to remove. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcRemoveFunctionDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | functionName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Removes a function description from the cache for the specified R/3 System.
This API can be used, e.g. if the signature (imports, exports, etc.) of a function module has been changed in the backend, while the external RFC program is still running. If the RFC library continues using the old cached metadata description, garbage values (if fields have been deleted from the function module) or missing values (if new fields have been added to the function module) will result. If repositoryID is NULL, the description is removed from the "default repository".
| [in] | *repositoryID | System ID of R/3 System, to whose cache you want to add the function description, or NULL for the default repository. |
| [in] | *functionName | The name of the function module, whose description is to be removed from the cache. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcRemoveTypeDesc | ( | SAP_UC const * | repositoryID, |
| SAP_UC const * | typeName, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Removes a type description from the cache.
| [in] | *repositoryID | System ID of R/3 System, from whose cache you want to remove the type description, or NULL for the default repository. |
| [in] | *typeName | The name of the type, whose description is to be removed from the cache. |
| [out] | *errorInfo | Not much that can go wrong here. |
| DECL_EXP RFC_RC SAP_API RfcSaveRepository | ( | SAP_UC const * | repositoryID, |
| FILE *const | targetStream, | ||
| RFC_ERROR_INFO * | errorInfo | ||
| ) |
Stores the currently cached objects of a repository into a JSON formatted text file.
This function will create a JSON formatted text file that contains all currently cached function module descriptions with their parameters, so it can be reloaded at another time (see RfcLoadRepository()) without opening connections to the backend and fetching metadata from the DDIC. This JSON file can also be used by the SAP .NET Connector and SAP Java Connector.
| [in] | *repositoryID | System ID of R/3 System, whose cache you want to save, or NULL for the default cache. |
| [in] | *targetStream | FILE pointer opened by the user. |
| [out] | *errorInfo | More error details in case something goes wrong. |