on 07-23-2014 4:58 AM
I have macros in BEx 7.2 report calling FM from BW. In BEx 3 it's all right but in BEx 7 russian symbols of inport/export parametrs are displayed like symbol "?".
I do this
Dim sapConnection As Object
Set sapConnection = Run("BEXAnalyzer.XLA!sapBEXgetConnection")
Dim sapFunctions As Object
Set sapFunctions = CreateObject("SAP.Functions")
Set sapFunctions.Connection = sapConnection
Dim sapFunction As Object
Set sapFunction = sapFunctions.Add("ZMY_FM")
sapFunction.Exports("PARAM").Value = "Параметр"
But parametr sapFunction.Exports("PARAM").Value = "????????"
Many pepople solved the problem using SAP.Functions.Unicode like this
Dim sapConnection As Object
Set sapConnection = Run("BEXAnalyzer.XLA!sapBEXgetConnection")
Dim sapFunctions As Object
Set sapFunctions = CreateObject("SAP.Functions.Unicode")
Set sapFunctions.Connection = sapConnection
Dim sapFunction As Object
Set sapFunction = sapFunctions.Add("ZMY_FM")
sapFunction.Exports("PARAM").Value = "Параметр"
But in my case I have
sapFunction = Empty
sapFunction.Exports("PARAM").Value = Object required
some people had the problem due to missing file wdtlogU.ocx in directory c:\Program Files\Common Files\SAP Shared\
I have the file there.
We tryed to install SAP GUI 7.2 SP17 but we still have the problem
Basically it's a Unicode problem. Your Russian letters are not able to interpret in your system.
Have you tried with the code what others have used to solve this problem?
But in my case I have
sapFunction = Empty
sapFunction.Exports("PARAM").Value = Object required
Why don't you change your code as per the right code what you have collected?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what do you mean?
I tried with
SAP.Functions
and got
sapFunction.Exports("PARAM").Value = "????????"
I tried with
SAP.Functions.Unicode
and got
sapFunction = Empty
sapFunction.Exports("PARAM").Value = Object required
I checked file wdtlogU.ocx.
I tried to write codepage
sapFunctions.Connection.CodePage = "1504"
and
sapFunctions.Connection.CodePage = "1251"
and
sapFunctions.Connection.CodePage = "1252"
and
sapFunctions.Connection.CodePage = "8600"
too
I tried to change language.
I checked it on BEx 7.30
sorry, Suman)))
Yes, I can debug.
sapFunction = Empty
sapFunction.Exports("PARAM").Value = Object required
and
sapFunction.Exports("PARAM").Value = "????????"
I watch it in debug
Yes, Russian language is installed.
In BEx 3 we have not the problem in calling FM with russian parametrs but in BEx 7 it does not want to work.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.