简体   繁体   中英

Getting RFC function module parameters in C#

I am currently using the SAP .NET Connector 3.0 in C# and I want to get the parameters like Import, Export and Table from a given function module.

Is there any way in C# while using the SAP .NET Connector to do this?

Assuming that you are referring to a function module's interface definition, the functionality to query and interpret this RFC meta data from a SAP system is already contained in the connector library.

As an entry point for NCo 3.0, have a look into its official API documentation NCo30APIDocumentation.chm at class RfcFunctionMetadata and loop over its Items. You can get the RfcFunctionMetadata object for a specific ABAP function module from method RfcRepository.GetFunctionMetadata(string functionName) .

The most official and efficient way is to call the function RFC_METADATA_GET . It's explained in the SAP note 1456826 - Reduction in roundtrips with SAP Connectors

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM