Skip to Content
0

whether there exists a Remote Function Module to call any given regular function module

Dec 27, 2016 at 08:12 AM

141

avatar image
Former Member

Hello All,

Is there a way to dynamically call any given regular function module via a Remote Function Module (RFM) ? I need to use various regular function modules externally and cannot create/convert them to RFMs in each of these external SAP systems.

In a related case, to dynamically access tables remotely from my scripts, I use the RFM RFC_READ_TABLE and supply table and field names to read the tables.

Similarly is there any available RFM with which I can dynamically execute any given regular function module? I understand that I cannot use regular function module which produce GUI output. I only want to remotely call some regular function modules in any given SAP system.

Thank you

-Regards,

Arvind

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Dec 27, 2016 at 03:55 PM
0

I don't believe there exists a function which can do what you're asking, not that you couldn't create one (dynamic function calling within an RFC). I feel like this would be a security concern being able to call any SAP function remotely.

Share
10 |10000 characters needed characters left characters exceeded
Kiran Kumar Valluru Dec 27, 2016 at 04:24 PM
0

Hi,

There is no standard function. You could create one Wrapper RFC to dynamically call any FM via the wrapper RFC.

Check the below wiki to call Function dynamically. Create a wrapper RFC which accepts the Function module name and the parameters. https://wiki.scn.sap.com/wiki/display/Snippets/ABAP+-+Dynamic+Function+Call

Regards,

Kiran

Share
10 |10000 characters needed characters left characters exceeded
Christopher Solomon
Dec 27, 2016 at 06:14 PM
0

There is a way (function) to send in "code" to the function and have it execute the code ....which can be anything including calling some function itself. However, this is a BIG security hole/risk that was addressed years ago and THAT particular functionality is usually locked down and only used in extreme circumstances (none I have even heard!). So in the "old days", yes, you could do this. Now? Not so sure it would fly with a security team.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 28, 2016 at 11:33 AM
0

Thanks guys for the answers. I realize that it is a security issue to allow users to call regular FMs via RFMs. I was hoping that there may be some authorization object for function modules like S_TABU_DIS is for tables (restricts table access and activity).

Share
10 |10000 characters needed characters left characters exceeded