on 09-22-2008 12:35 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.