cancel
Showing results for 
Search instead for 
Did you mean: 

Does SAP.Functions support unicode?

Former Member
0 Kudos

Hi,

I have an ASP page using Server.CreateObject("SAP.Functions") to connect to SAP ecc 6.0. Does anyone know whether the wdtfuncs.ocx supports unicode? The result i got back from SAP shows English contents correctly but not Cyrillic character. Source code is something like this

Set oSAP = Server.CreateObject("SAP.Functions")

Set oConn = oSAP.Connection

oConn.User = sUID

oConn.Password = sPWD

oConn.Language = "EN"

oConn.Destination = sServer

oConn.Client = iClient

oConn.GroupName = sServer

oConn.MessageServer = sMessageServer

oConn.codepage = "4110"

oConn.Logon 0, True

Set oRFC = oSAP.Add(SAPFunctionModueName)

Set oParam = oRFC.Exports(ParameterName)

oParam.Value = ParameterValue

Set oOut = oRFC.Tables(SAPoutputTableName)

oRFC.Call

The SAP .net connector works well, but in this case i have to use the .ocx file trying to avoid rewriting existing application with .net.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Sorry - it's an old thread - didn't notice date.

Edited by: William Lawlor on Apr 1, 2010 3:53 PM

Edited by: William Lawlor on Apr 1, 2010 3:54 PM

Former Member
0 Kudos

Hello Sara,

I would import wdtfuncU.ocx into your .net project as a reference in order to get the unicode version. This should be in the same directory as the wdtfunc.ocx as you are using.

Also even thou you are using code page 4110 in your project you are logging in as english. I would also set your login language to RU or whatever characterset you wish to retrieve.

Regards

Matt

Former Member
0 Kudos

Sorry, the SAP version is 710