2008 Jan 28 11:30 AM
Hi All
Iam using Customize RFC.I given export parameter, but it has no values for Import parameter. This SY-SUBRC = 4.but I dont 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
2008 Jan 28 11:36 AM
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.
2008 Jan 28 11:44 AM
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