Skip to Content
author's profile photo Former Member
Former Member

Microsoft .NET Data Provider for mySAP Business Suite ---used in chinese

hello every guys:

when i use Microsoft .NET Data Provider for mySAP to get data from my ecc5 system in my .net project, i get bad coding for chinese(just replace by a '#'), how can i resolve this problem, my sap logon

is v710, list my test code:

SAPConnection con = new SAPConnection("ASHOST=202.135.88.112;CLIENT=800;SYSNR=00;USER=**;PASSWD=***;LANG=ZH");

con.Open();

SAPCommand cmd = new SAPCommand(con);

cmd.CommandText = "SELECT NAME1 FROM KNA1"

SAPDataReader dr = cmd.ExecuteReader();

do

{

Console.WriteLine("read datatable: " + dr.GetSchemaTable().TableName);

while (dr.Read())

{

string line = "";

for (int i = 0; i < dr.FieldCount; i++)

line = line + "| " + dr.GetString(i);

Console.WriteLine(line);

}

}

while (dr.NextResult());

Console.ReadLine();

*********************when i run the test code, i get a result like below: ************

value of returned datareader: SchemaTable

| #####

| ####2

| #######1

| ####1

| ####2

| #######

| #######

| #######

| #######

| #######

| #######

| ######3

| ######2

| ######3

.......

  • the '#' repalce a chinese character******************

how can i resolve this problem.

thanks A lot

and by the way, where can i find the develop document of this provider?

Edited by: zhiyong Chen on Feb 9, 2009 10:38 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2009 at 12:34 AM

    yes, i have resolved it

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 09:35 AM

    Hello

    If anybody has the solution..;

    I have the same problem today.

    The two RFC's used are: Z_READ_FUNCTION_METADATA and Z_EXTRACT_DATA_FULL

    Best Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.