Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

conversion error in JCo outbound call

Former Member
0 Kudos

hi all

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

2 REPLIES 2

Former Member
0 Kudos

error was due to definition of repository.

it was not supporting unicode system.

0 Kudos

Helo!

We have a similar problem here. Could you please explain your solution in a bit more detail ?

Thanks in advance,

Markus