Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 02:38 AM

    Please try to execute the function module in SE37 with the TCP/IP Destination created.

    It may created a dump in st22. Please check the dump for more details.

    Is the message is recorded in SXMB_MONI ? If so paste the error here.

    You need BPM to connect the RFC with file in synchrnous mode.

    or

    If you want call RFC asynchrnous , Please call the RFC in background mode.

    Thnz

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2008 at 05:18 AM

    Hi Priya,

    Run the Function Module in Background Task.

    In the Report

    Specify the RFC Destination in Background task and Execute the Report.

    CALL FUNCTION 'Z_TEST'

    IN BACKGROUND TASK DESTINATION 'SAP_TO_XI'

    Regards,

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.