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

Calling RFC

Former Member
0 Likes
803

Hi Team,

I am calling RFC fron ECC 6.0 to SAP 4.6c.

Destination is maitained in SM59.

Problem:

When i am calling RFC through my report program.

Sy-subrc is 1.

When running FM at orginal destination it is working fine.

Any helpful pointers...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
775

Are you having authorizations to connect to the other system?

plz check for the authorization.

Thanks,

Sree.

7 REPLIES 7
Read only

Former Member
0 Likes
775

Sy-subrc represents the value of the exception.

For example



CALL ZFUNC DESTINATION ZZ.
  EXPORTING


  IMPORTNG

 EXCEPTIONS
       data not found = 1.          "Check this description for your case, This is your error
       communication error = 2.

Whatever is defined for one is your problem

Read only

Former Member
0 Likes
775

Hello,

Try to test the connection at transaction SM59 , if everything is working fine, in the destination server go to transaction SM58 and look for some error message.

Regards.

Read only

Former Member
0 Likes
775

Hi Team,

But while in debug mode my RFC , when press F5 is not going to the FM and returning the exception as 1.

Could any idea why my RFC is not going to destination.

Read only

0 Likes
775

Did you tested the destinations in SM59. are you able to test it successfully. check it once.

what is the exception 1 in your funtion module..?

Edited by: Vijay Babu Dudla on Oct 1, 2008 10:43 AM

Read only

Former Member
0 Likes
775

Yes SM59 is working fine.

Read only

Former Member
0 Likes
776

Are you having authorizations to connect to the other system?

plz check for the authorization.

Thanks,

Sree.

Read only

Former Member
0 Likes
775

Yes , I have the authorization to connect other system.