Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1521

Key instead of Text in SAPListofMembers

$
0
0

Hello everybody,

 

I have a question concerning the SAPListofMembers method.

In my workbook I have several pop-ups that consist of user forms which are intended to read in user inputs. With these inputs I want to select the members of variables of my planning functions.

Here is one of the pop-ups: In this case the user has to select a plant.

fdsafdsa.jpg

 

The list is filled via the following method:

 

Sub fillCombobox(cntr As MSForms.ComboBox, dataSource As String, memberType As String, name As String) ' Methode um die Kombo Boxen aus einer Variable zu füllen

    Dim lData() As String
    Dim length As Integer
    Dim result
    Dim i As Integer
   
    'On Error Resume Next
   
    result = Application.Run("SAPListOfMembers", dataSource, memberType, name, Key)
    If Not IsError(result) Then
        length = UBound(result)
        Dim lLine
   
        ReDim lData(length)
       
        'On Error Resume Next
        For i = 1 To (length)
            lLine = ""
            lLine = WorksheetFunction.Index(result, i)

            If TypeName(lLine) = "String" Then
                lData(i) = lLine
            Else
                lData(i) = lLine(2)
            End If
        Next i
        On Error GoTo 0
    End If
   
    cntr.List = lData
   
End Sub

 

And this method is called via the following code:

Call fillCombobox(UserForm1.ComboBox6, "PS_1", "PLAN_PARAMETER", "ZPLANT_MMEO_01")

 

My problem ist the following:

Depending on the Logon Language in Analysis either the keys or the Texts are shown in the list:

  • Logon in german: Texts are shown (unfortunately I am not allowed to show that as a screenshot)
  • Logon in english: Keys are shown (see screenshot), probably because there are no english texts maintained.

 

Now I want to be able to have the list consisting of the keys instead of the texts also when I logon in german, because my customer uses the german logon (but wants to use the keys to select the plants). But I don't see any possiblity to define that in the SAPListofMembers method. I also tried to change the display behaviour in the query, but this did not change anything. Does anyone have an idea?

 

Thank you and best regards,

Jan Gutzeit


Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>