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 a function module inside of another function module

Former Member
0 Likes
2,568

Has anyone ever called a function module inside of a remote enabled function module? Maybe this needs to be accomplished inside of an include. Just wondering.

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,332

Hi,

Check the BAPI..BAPI_MATERIAL_SAVEDATA..Which is remote enabled...And there are lot of function modules called in this..

Please let us the know your requirements..

Thanks,

Naren

7 REPLIES 7
Read only

Former Member
0 Likes
1,333

Hi,

Check the BAPI..BAPI_MATERIAL_SAVEDATA..Which is remote enabled...And there are lot of function modules called in this..

Please let us the know your requirements..

Thanks,

Naren

Read only

Former Member
0 Likes
1,332

There is no problem in calling like that. The first RFC enabled FM already makes the connection the another system. Hence the FM inside that RFC FM will acts like RFC enabled. But check that both the FM are avilable in the destination.

Regards,

Prakash.

Read only

Former Member
0 Likes
1,332

Hi

I don't believe, I thinl it only need to insert the call in the calling fm.

Max

Read only

Former Member
0 Likes
1,332

I have a remote function module in R/3. I am calling it from our BW environment. Since I was in R/3, I want to call RE_LAST_DAY_OF_MONTH and pass this back through the first FM. It just bypasses. Not a huge deal, just wondering. I see it can be done, I'll look into it.

Read only

0 Likes
1,332

Hi

No u can't do it because the RE_LAST_DAY_OF_MONTH is not remote function module.

If you need to call it u should insert it in a RFC, so u should create in R/3 a new RFC calling both fms: RE_LAST_DAY_OF_MONTH and the remote one.

And so call this new rfc instead of the other one.

Max

Read only

Former Member
0 Likes
1,332

Max,

I was able to get it to work by placing the above function module into my custom remote enabled one. Thanks for the input, I will award points.

Thank you all for your time.

Read only

0 Likes
1,332

I'm sorry, Ryan

so if you knonw already the solution u can only close this post.

Max