conversion error in JCo outbound call
i am working on making OUTBOUND call from SAP using JCo,
our SAP system is Unicoded and i am refering Jco example 5 from JCo2.1.8 demo.
i am able to make connection successfully , but while running test ABAP program for testing connection, i am getting Short dump error headed :
Conversion error "ECHOTEXT" from character set 4103 to character set 4102
A conversion error occurred during the execution of a Remote Function
*Call. This happened either when the data was received * or when it was
*sent. The latter case can only occur if the data is sent from * a Unicode
system to a non-Unicode system.
The current program had to be terminated because of an
error when installing the R/3 System.
my ABAP prg. is this :
REPORT z_jco_test. PARAMETERS: requtext LIKE sy-lisel. *ECHOTEXT LIKE SY-LISEL **" RESPTEXT LIKE SY-LISEL DATA: echotext type SYLISEL, resptext LIKE sy-lisel, rfctest TYPE TABLE OF rfctest, wa_rfctest TYPE rfctest. wa_rfctest-rfcdata1 = requtext. wa_rfctest-rfcdata2 = 'Hello World'. APPEND wa_rfctest TO rfctest. CALL FUNCTION 'RFC_PING' DESTINATION 'JCO'. *CALL FUNCTION 'STFC_CONNECTION' * EXPORTING * requtext = ** IMPORTING ** ECHOTEXT = ** RESPTEXT = . CALL FUNCTION 'STFC_CONNECTION' DESTINATION 'JCO' EXPORTING requtext = requtext IMPORTING echotext = echotext resptext = resptext TABLES rfctest = rfctest. WRITE: 'Echo Text: ', echotext. WRITE: 'Response Text: ', resptext. LOOP AT rfctest INTO wa_rfctest. WRITE: / 'rfcdata1: ', wa_rfctest-rfcdata1. WRITE: / 'rfcdata2: ', wa_rfctest-rfcdata2. ENDLOOP.
i have made RFC connection unicode yes.
please guide me