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: 

Doubt

Former Member
0 Kudos
122

Hi All

Iam using Customize RFC.I given export parameter, but it has no values for Import parameter. This SY-SUBRC = 4.but I don’t know why it has no Import parameter; it may be NODATA, COMM (No communication between two system) and SYS (system failure).what is SY-SUBRC if RFC fails due to NODATA, COMM and SYS?

How can I find NODATA etc with sy-subrc?

I capture exception as follows.

EXCEPTIONS

NODATA = 1

COMM = 2

SYS = 3

OTHERS = 4.

Pls help me, To be reward all helpful answers.

Regards.

JNJ

2 REPLIES 2

Former Member
0 Kudos
99

Hi,

See ur exceptions

EXCEPTIONS

NODATA = 1

COMM = 2

SYS = 3

OTHERS = 4.

if its no data sy-subrc ll be 1 and not 4

simillarly if its comm failure sy-subrc is 2,sys is 3

and 4 is for others.....

Cheers,

Will.

Former Member
0 Kudos
99

Hi JNJ,

we have to check like this then ur problem is resolved ok.we have to write this IF statement after the function module ok.

if sy-subrc EQ 1.

write:/ 'NO DATA'.

endif.

if sy-subrc EQ 2.

write:/ 'COMM'.

endif.

if sy-subrc EQ 3.

write:/ 'SYS'.

endif.

if sy-subrc EQ 4.

write:/ 'OTHERS'.

endif.

Reward points if helpful

Kiran Kumar.G.A