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: 

Unicode coversion

Former Member
0 Kudos

Hi experts,

I have a unicode issue with webmethods...

First:

From SAP 4.7 Non-unicode system i sent the data through RFC to webmethods, everything was fine.

Second:

From ECC 6.0 A UniCode system, i sent the data through same RFC, made it as Unicode, to webmethods. But i am getting only half of the data.

Ex: field1 is 10 characters length.

field1 = 'ABCDE12345'.

In webmethods i am getting only 'ABCDE'.

i came to know that unicode takes 1 char = 2 bytes..

so pls help me to come out of this issue?

Regards

Giri

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

Can you change the type of your RFC Parameter to STRING instead of CHAR?

0 Kudos

Ravi,

when i send as string it showing binary characters at webmethods side...

any more inputs?

Giri

0 Kudos

In the RFC, i would keep type CHAR but change your length from 10 to 20 to accomodate the Unicode.

0 Kudos

Robert,

the first thing i did before posting in SDN.

even i made it to char 10 to 100

but it takes same....

RFC fm field value defined as 10 for that field.. i cant chnage the rfc...

thats the problem...

Giri

Former Member
0 Kudos

Hi,

Can u send sample code,where the value's getting truncated.

i think it's not the problem with the char field lenght.

cheers

D.sharma