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 rfc DESTINATION class->attribute

Former Member
0 Likes
537

hi all,

An RFC call returns an exception 1 of type system_failure.

CALL FUNCTION rfc

DESTINATION class->attribute

importing ...

exporting ...

EXCEPTIONS

system_failure = 1

OTHERS = 2.

rfc doesnt have exception of its own.

while execution, an exception 1 is raised (in a FM that RFC calls) This exception is because of problem in generating next number .

Can someone plz explain what happened ?

the raised exception 1 (sy-subrc =1 ) for "not being able to generate number" is finally represented as "system-failure" declared in Destination exception 1 ?

3 REPLIES 3
Read only

Former Member
0 Likes
424

Hi,

I think the problem is with RFC class->attribute. Can you check whether the RFC is been calling properly or not?

Test the RFC from the remote system.

Regards,

Satish

Read only

Former Member
0 Likes
424

Hi,

Make sure the user in target system is authorized to execute your function - object s_rfc: rfc_type = 'FUGR', rfc_name = function GROUP, actvt = 16. You can check it using one of reports that are available in transaction SUIM.

Regards,

Raj.

Read only

0 Likes
424

thanks for the quick response.

satish : actually this is standard SAP code.

raj : we were able to excute the rfc earlier without any exception. i am not able to test for authorization right now , but if the user doesnt have authorization , will it throw this exception?

plz suggest something.