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

call FM in BEx 7.2

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 23, 2014 at 04:48 AM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Suman Chakravarthy K

      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.

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.