Application Development 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: 

Calling RFC

Former Member
0 Kudos

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

Former Member
0 Kudos

Are you having authorizations to connect to the other system?

plz check for the authorization.

Thanks,

Sree.

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Yes SM59 is working fine.

Former Member
0 Kudos

Are you having authorizations to connect to the other system?

plz check for the authorization.

Thanks,

Sree.

Former Member
0 Kudos

Yes , I have the authorization to connect other system.