Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RFC To File Scenario

Hi,

My Scenario is RFC TO File.

I have created an RFC in SAP R/3 box. I am sending this data from R/3 to XI and from there to other box.

I have created an RFC destination using Sm59 transaction on R/3 box. Following are the details

RFC Destination --> SAP_TO_XI

Connection Type --> T

Program ID --> PRG_ID

Activation Type --> Registered Server Program

Gateway Host --> SAPXIS01

Gateway Service --> sapgw00

When I clicked on "Test Connection" button, I got the following on the screen.

-


Connection test SAP_TO_XI

Connection type: TCP/IP connection

Logon: 2 msec

0 KB: 2 msec

10 KB: 3 msec

20 KB: 7 msec

30 KB: 4 msec

-


I want to execute the scenario on SAP XI by executing the RFC on SAP R/3 by writing a report. But I am getting the "System Failure" Report. RFC has only one exporting parameter which returns some data from the table. The select query is inside the RFC.

The following is the statement used in the report to execute the RFC

*********************************************************

Data: LS_CTRY_DTLS TYPE Z_TEST_TABLE.

CALL FUNCTION 'Z_TEST'

DESTINATION 'SAP_TO_XI'

IMPORTING

IS_CTRY_DLTS = LS_CTRY_DTLS

EXCEPTIONS

COMMUNICATION_FAILURE = 1

SYSTEM_FAILUE = 2.

COMMIT WORK.

*********************************************************

I am getting an error SYSTEM_FAILURE. Can you please let me know where I have done wrong.

-Priya

Not what you were looking for? View more on this topic or Ask a question