How to get parameters of RFC module in node-rfc?

1.2k Views Asked by At

I want to introspect input parameters (and maybe output as well) of a RFC given it's name.

I found methods RfcGetParameterCount and RfcGetParameterDescByIndex which have been used by the node-rfc library itself. But I am not able to figure out how to call these methods using client.invoke() or any other way.

https://www.npmjs.com/package/node-rfc

3

There are 3 best solutions below

6
On BEST ANSWER

RFC_GET_FUNCTION_INTERFACE returns the parameters of a given RFC.

0
On

Nowadays, you should call the function module RFC_METADATA_GET which is the standard way used by SAP official RFC Client libraries, rather than RFC_GET_FUNCTION_INTERFACE, which is older (now, it's currently still used internally by RFC_METADATA_GET but might not evolve with future releases).

Source in external link: https://answers.sap.com/answers/13891692/view.html (useful information about the internal logic of RFC_METADATA_GET and RFC_GET_FUNCTION_INTERFACE, by an SAP employee)

0
On

You may try this new rfmcall package: https://www.npmjs.com/package/rfmcall