Application Development and Automation 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: 
Read only

Unicode coversion

Former Member
0 Likes
641

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
Read only

Former Member
0 Likes
593

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

Read only

0 Likes
593

Ravi,

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

any more inputs?

Giri

Read only

0 Likes
593

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

Read only

0 Likes
593

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

Read only

Former Member
0 Likes
593

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