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: 

how can i display the chinese via JCO invoke BAPI ?

carlos_zhang3
Participant
0 Kudos
158

Hi experts,

I am using jco (invoke the BAPI) to get the informations from SAP/R3 (4.7) ... but i found that the charset is incorrect . The chinese cannot be displayed ...

Has someone can help me ???

i checked the attribute of the JCOClient found the codepage is : 4103 utf-16...

but my SAP/R3 system is 8400 ....

thanks a lot

Carlos

2 REPLIES 2

carlos_zhang3
Participant
0 Kudos
123

I already assigned the codepage to the jco object, but it seems not available...

jcoPropeties.setProperty("jco.client.client", "590");

jcoPropeties.setProperty("jco.client.user", "BC_TRANS");

jcoPropeties.setProperty("jco.client.passwd", "sapsap");

jcoPropeties.setProperty("jco.client.lang", "ZH");

jcoPropeties.setProperty("jco.client.ashost", "192.168.38.23");

jcoPropeties.setProperty("jco.client.sysnr", "29");

jcoPropeties.setProperty("jco.client.codepage", "8400");

.....

...

Output :

[codepage]4103 LANGEUAGE: 1 CHARSET :UTF16

....

..

Anybody can help me ?

carlos_zhang3
Participant
0 Kudos
123

The problem was solved !

Reason : it is the OS problem , when i using the chinese windows server 2003. the problem is solved !