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 problem

Former Member
0 Likes
1,521

Hello

I'm calling a remote function:

CALL FUNCTION 'Z_RFC_TEST' DESTINATION i_rfc-host

At first it worked. But now I always get the error: "FUNCTION MODULE Z_RFC_TEST not found.

Any idea what this could be?

Greets.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,488

Hi,

You have to check out two main things as follows:

1. Check whether the function module exists in the remote system or not. If it exists just go the properties and check whether the remote enabled option have selected or not.If the function module is not exist just create it as a remote enabled function module. Also there might be some problem with the function group where the function module is resided. So just activate the function group.

2. Just check out the RFC destination name. I think you are passing the RFC destination name to the variable as i_rfc-host.

Just make sure the destination name.

Regards,

Sankar.

12 REPLIES 12
Read only

Former Member
0 Likes
1,488

I hope you are getting this error message during run time.

The function module 'Z_RFC_TEST' must exist in the target system. If not, it will give you error.

Please award points, if ur issue is solved

Read only

Former Member
0 Likes
1,488

Hi

check if u r not making in calling the function module..spelling or case

Read only

abapdeveloper20
Contributor
0 Likes
1,488

goto SM59 for checking ur RFC connection

Read only

0 Likes
1,488

NO spelling mistakes..

RFC connection exists.

No clue what it could be. When I double-click then name (Z_RFC_TEST) I come inside the function module..

Strangest thing to me is that it worked an hour ago.. I've only moved it in the program so that wil probably be the problem..

Read only

Former Member
0 Likes
1,489

Hi,

You have to check out two main things as follows:

1. Check whether the function module exists in the remote system or not. If it exists just go the properties and check whether the remote enabled option have selected or not.If the function module is not exist just create it as a remote enabled function module. Also there might be some problem with the function group where the function module is resided. So just activate the function group.

2. Just check out the RFC destination name. I think you are passing the RFC destination name to the variable as i_rfc-host.

Just make sure the destination name.

Regards,

Sankar.

Read only

0 Likes
1,488

THANKS! Now I know what the problem is. It doesn't exist in the remote system.. So I have to create it in every system I want to use?

(BTW still don't understand that it worked in the beginning..)

Read only

0 Likes
1,488

Hi,

Check any path of the remote server is changed recently

or try to execute the TEST CONNECTION with that RFC module.

Read only

0 Likes
1,488

System name is the same.. I also tested the connection succesfully.

But I have to create the function in every system they can select?

Edited by: Bert Neels on Mar 27, 2008 1:41 PM

Read only

0 Likes
1,488

Hi bert,

Just ensure that the IP address of the remote system is correct or not. Because the IP address of the system may change. That would cause the issue.

Regards,

Sankar.

Read only

0 Likes
1,488

The problem is solved already. I just wanted to know for sure:

-Do I have to create the function in every possible destination system?

Read only

0 Likes
1,488

Yes.

Read only

0 Likes
1,488

OK thx!