mangesh
mangesh

Reputation: 521

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

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

Upvotes: 0

Views: 1571

Answers (3)

Sandra Rossi
Sandra Rossi

Reputation: 13656

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)

Upvotes: 1

bsrdjan
bsrdjan

Reputation: 436

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

Upvotes: 0

Mikael G
Mikael G

Reputation: 742

RFC_GET_FUNCTION_INTERFACE returns the parameters of a given RFC.

Upvotes: 2

Related Questions