Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

call function modules in another function group

Former Member
0 Likes
1,760

Here we have two Function Groups and two Function Modules:

Function Group A - Function Module C

Function Group B - Function Module D

As we know, in Function Module C, if we want to get global variables which are defined in Function Group B, we can call Function Module D of which the export parameters are the variables we would use in Function Module C.

Here is the question, what if Function Module C is a RFC function?

I am considering that Function Module C & D may be running on the remote system and local system separately.

Can we still get the value by calling Function Module D in this case?

1 ACCEPTED SOLUTION
Read only

furlan
Participant
0 Likes
856

Hi Ming,

Actually, it's the only way 🙂

When you call a function via RFC you will transfer information using parameters (Exporting and Importing). It's exactly in the same way you metion inside de SAP System.

An important detail in case you are using RFC, all your parameters must be passed by value. But don't worry, hence you settled the FM as RFC enabled you can only activate it if all your parameters in the FM  are settled as passed by value.

Take care!

Furlan

2 REPLIES 2
Read only

furlan
Participant
0 Likes
857

Hi Ming,

Actually, it's the only way 🙂

When you call a function via RFC you will transfer information using parameters (Exporting and Importing). It's exactly in the same way you metion inside de SAP System.

An important detail in case you are using RFC, all your parameters must be passed by value. But don't worry, hence you settled the FM as RFC enabled you can only activate it if all your parameters in the FM  are settled as passed by value.

Take care!

Furlan

Read only

Former Member
0 Likes
856

Hi Ming Yu,

yes you can get the value by calling function module even if it is RFC and in another system. Its all the same like Furlan said.

Thanks,

Naveen