SAP Variable Tech Name in MDX

Hi Friends,
I have a question related to SAP Variable usage in MDX statement.
I have a hierarchy node variable, which is mandatory and has a default value..
When technical name of this variable is something like ZXYZ_SM, it appears differently in MDX, as !V0000017..
Problem is, i have to use this variable in two seperate queries and this MDX technical name changes query to query..
Eg.: when it is !V0000017 in Query A, it is !V0000015 in Query B.. I need them to be identical across queries, because this is a global filter of a huge dashboard..
Can you please help me how to proceed? I need solution on Bex side..
Thanks in advance,
Sunil
====================================================
SAP Variable tech name needs to be shorter than 10 chars in order to be supported by MDX. So, changing variable name fixed the issue...
====================================
Edited by: SunilKmr on Nov 29, 2010 1:27 PM

What Rohit is trying to say is that the technical name of the BEX variables is not shown to an end user,
and also not used to combine user input, only the prompt text is.
(BTW, the technical name is determined by the position of the variable prompt in the BEX query,
so the first variable shown will be !V000001, the second !V000002, etc.
So in your case the order in the two BEX queries is different)
So if you have two BEX queries, this means two universes.
Now when you want to report data out of these two universes you will build a query in the WebI report on each universe.
Both queries will ask you for input for their respective BEX variables,
but to do that they using the prompt text, not the tech name.
By default this prompt text will be the name of the BEX variable,
but you can change the text in the universe without implications.
As long as the two prompt texts are the same for these two different tech name variables,
BO will give just one prompt and feed it to !V0000017 in the query on the universe for BEX query A
and !V0000015 in the query on the universe for BEX query B.
Hope this is clear enough,
Marianne

Similar Messages

  • Value in input field of Hier.Node variable displays tech.name of the IO

    Dear all,
    we are facing an issue with Hierarchy node variable(auth.) in the selection screen of webReports.
    After selecting a hierarchy node value,it is displayed along with + sign and tech.name of the Infobject in input field .
    example: lets say we have Country Hierarchy and i have selected Country group 'NAM' node..This is displayed as "+NAM(ZCOUTRYGRP)". where ZCOUTRYGRP is tech.name of the InfoObject Country group.
    Expected value is just "NAM" which is Key .Does anyone have solution for this? This Problem occuers when we select Level 01 value of hierarchy and we do have hierarchy node values from same INfoObject.
    Regards,
    Murali.
    Edited by: Muralidhar c on Aug 1, 2009 1:24 PM
    Edited by: Muralidhar c on Aug 3, 2009 10:40 AM

    it works as designed.found in sap help.

  • SAP BW Query in CR2008: only tech names displayed when query is changed

    Hello Experts,
    we have the following constellation / problem:
    SAP Query BW 7.0
    a report built upon this query with Crystal Reports 2008
    the report is currently not using any of the Database fields, is just consists of the layout
    Now we want to change / add the underlying query. But either if we add the new query or replace the old query by the new query, the result is the same:
    only the technical names of the query structures (UIDs) are shown, neither the descriptions nor the technical names (concerning SAP BW) are shown.
    The 'new' query is a slightly changed copy of the old query, I don´t think that is has to do anything with the query.
    As mentioned, everything seems to be perfect as long as we just do 'Create Report upon query', then the descriptions and technical names (not the UIDs) are shown, but not if we add / replace the existing query through another.
    Many thanks for your help in advance !
    Frank

    So the solution seems to be:
    Open the Query Designer and tick 'Allow External Access to this Query' on the Advanced Tab to allow access with OLE DB for OLAP to the query.
    Then the query appears in Crystal Reports under the source system and 'Queries' whereas before it is only accessible directly under the source system.
    If a query is accessible under the source system, the BW Query Driver is used, which seems not to be able to cope correctly with the technical names.
    If accessed via 'Queries', the BW MDX Driver comes into action and not only the tech names but also the description etc. is displayed.

  • MDX Error for SAP Variables

    Hi All,
    We have used QAAWS for creating a dashboard in Xcelsius using Trigger cell for a selection variable in BI Query.When a different selection is maded for that variable getting the below error (In this case i have selected US for the variable)
    A database error occured. The database error text is: The MDX query SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING US failed to execute with the error Unknown error. (WIS 10901)
    checked in MDXTEST giving  the query
    SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING US
    It thrown an error saying the above query is invalid.
    Later i tried with the below query
    SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING [0SALESORG].[US]
    Now it perfectly worked fine.
    Can any one let me know why a wrong MDX query is getting generated and how to rectify it?
    Regards,
    Pra

    Hi Ingo,
    Sorry for the late reply....
    Yes i am sending the Key values as the input for the variables.
    If you observe the 2 MDX Statements(the last line especially) .....i guess [SalesOrg] needs to get appended in the MDX Statement  for the Key values  that i input and as it is not happening it is throwing an error saying MDX error.
    Regards,
    Pra

  • OLAP BAPI - MDX Extension - SAP VARIABLES

    Hello,
    we use OLAP BAPI in oder to run queries angainst BW. Queries are written in MDX using the SAP VARIABLES extension to MDX. When using a variable for characteristic "0MATERIAL", the system returns an error stating that the specified value is not correct with this characteristic (we test our queries using tx "mdxtest"). In fact, the specified value exists for 0MATERIAL. Are there any further restrictions to using the SAP VARIABLES-clause (e.g., ALPHA-conversion exit)?
    Thank you!
    Kind regards,
    Tom

    Hello Rishi,
    thank you for your comment. You are right - the conversion exit is MATN1. In fact it does not work either using a material number in external format or using a material number in internal format. Any further ideas - are there any specifics to MDX using clause SAP VARIABLES?
    Thank you!
    Kind regards,
    Tom

  • Variable in ''Name of Variable(Input Only Using F4).' for variant attribute

    Hi All,
    I Have a small problem with saving variant.
    I am trying to save the Variant.In the varaint Attributes we have a field 'Name of Variable(Input Only Using F4).
    I  have created the PID 'XUS' in SU3.But i am not able to to view the variable in ''Name of Variable(Input Only Using F4).'.
    Anybody please let me know how to make it.
    Thanks,

    Please follow the below steps to restrict the user to access 2 company codes,
    1)Mark the IO(Company code) Authorization relavent and activate it.In the IO Business Explorer tab check the Authorization relavent check box.
    2)Go to T-code RSECADMIN -Under Maintainance -Enter the name of Authorization Object an click on create Authorization.Insert the IO and also SAP recomended Objects 1.0TCAACTVT, 2.0TCAIPROV and 3.0TCAVALID.
    Maintain the values for these objects.Select the company code and click on details.
    3)T-code RSU01-Enter the name of the user to be assigned with the authorization object and click the change button.The select the relevant authorization object and save.
    4)Create Authorisation Variable in Query Designer Create an Authorization Variable - Variable with Processing by Authorisation in Query Designer as Below for Sales Organisation
    Note : Also include all Authorisation Relevant Objects which are used in that infoprovider in addition to the above additional 3 objects otherwise you may get "No Authorisation" error when you execute the query.
    Note : 0BI_ALL is the authorization object to access all the info objects which are   authorization relevant.
    Reagrds,
    Ramitha

  • Change Source system Tech.Name

    Production :   PRE -
    >  PRB
    PRE-Production    :   PPE -
    > PRE
    We make a copy of our production BI to Preproduction BI (PPB) we follow note # 886102. We want to connect this system to our pre production ERP (PPE).We already run BDLS change the logical system name we created new RFC created which is pointed to new R3 system .Problem is when we are going to run Tcode RSA1 in source system it shows old Tech name PRE600. We are unable to activate the source system.
    We can create new source system (PPE),but All our BI objects mapped with old source System (PRE600). I am afraid to change thousands of BI objects ( change source system from PRE600 to PPE600).
    Is there any work around we can change the Logical Source system Tech.Name? or some batch job which change the source system name for all BI objects.
    Appreciate your earliest reply.
    Nawab

    Hi
    Can you please check the Tcode BDLS
    Check the document it will be helpful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bff13df2-0c01-0010-6ba7-bc50346a6fd8
    Regards

  • How to find R/3 field  tech name with the help of BW fields.

    Hi ,
    How will i come to know that particular R/3 field is mapped to BW field.
    for .e.g
    I have BW Fields in Cubes , how can i see the R/3 field tech names for that .I can see in Infosource , but for few areas i am not able to find the infosource in sap help.com.
    Pls let me know how to find the R/3 Fields for BW Fields?
    Regards,
    Nithi.

    Hi
    These are the following approaches used
    1.) Check the SAP BI Content website "http://help.sap.com/saphelp_nw70/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm". From here find your datasource . here u can get a list of fields in the datasource along with your R3 field and infobject.
    2.) Go to Transfer rules structure of the cube or DSO, there u wuld  be able to see all fields in Datasource structure fields, See the left pane and right pane. there u will se ur R3 fields and Infoobjects of BW along with their mapping.
    3.) Follow this process
    in R/3 system - use tcode SE11 ->ROOSFIELD -> GIVE Extract Structure & Field Name > Check Records with Version D and A.
    NOTE : Make sure the fields of the datasource in R3 are not hidden , otherwise you wont be able to vierw ur data.
    From
    ManesH

  • Using a variable to name a window?

    Is it possible to use a user-defined variable to name a
    window? I'm hoping to set up a "template" system of sorts for a
    family of products, all of which are very similar. I'd just like to
    name the window accordingly to the product name via a variable if
    possible.

    Hi there
    If this is a feature you feel would be a valuable addition to
    those offered by RoboHelp, consider telling the Adobe RoboHelp
    Development team about it. You may do that by
    clicking
    here and completing the form.
    Cheers... Rick

  • Variable file name through Receiver mail Communication channel

    I need to send a file through receiver communication channel   with the following name ( YYMMDD schema)  . The YYMMDD is current date .  I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work  .  If you have any ideas , can you please share with me ?
    ABC_MMYYDD.TXT
    Thanks.
    Ritvik

    Hi Ritvik,
    Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
    Re: Problem in dynamically file name generation procedure
    Best Regards

  • Using variable coulmn name in sql function

    Hi there,
    I am not an expert with PL/SQL and I can not figure out how to use variable column names in my function.
    My function is:
    CREATE OR REPLACE FUNCTION RESET_TRIGGERS(aTrigger VARCHAR2) RETURN NUMBER IS
    TEMP_ID NUMBER;
    TEMP_USER_ID NUMBER;
    BEGIN
    SELECT 'LIMS.'||'$aTrigger'||'.NEXTVAL' INTO TEMP_ID FROM DUAL;
    SELECT 'LIMS.'||'$aTrigger'||'_USER.NEXTVAL' INTO TEMP_USER_ID FROM DUAL;
    IF TEMP_ID > TEMP_USER_ID THEN
    LOOP
    SELECT LIMS.SQ_U_FINALRESULT_USER.NEXTVAL INTO TEMP_USER_ID FROM DUAL;
    EXIT WHEN TEMP_USER_ID = TEMP_ID;
    END LOOP;
    ELSE
    WHILE TEMP_ID < TEMP_USER_ID LOOP
    SELECT LIMS.SQ_U_FINALRESULT.NEXTVAL INTO TEMP_ID FROM DUAL;
    END LOOP;
    END IF;
    COMMIT;
    RETURN (TEMP_ID);
    END;
    What I want is that I pass a seqencename with aTrigger and that two triggers will be equal if not.
    eg ifaTrigger = 'SQ_U_FINALRESULT'
    than I want the triggers LIMS.SQ_U_FINALRESULT and LIMS.SQ_U_FINALRESULT_USER to be set equal.
    The above function will not work, but what will?????
    I hope you can help me out!
    Cheers

    A very strange function indeed.
    But here is what I think he meant to do:
    SQL> create procedure reset_sequences
      2  ( p_sequence_name in  varchar2
      3  , p_nextval          out number
      4  )
      5  is
      6    l_nextval1 number;
      7    l_nextval2 number
      8    ;
      9    procedure reset_sequence_value
    10    ( p_sequence_name in varchar2
    11    , p_current_value in number
    12    , p_new_value     in number
    13    )
    14    is
    15      l_dummy number;
    16    begin
    17      execute immediate 'alter sequence ' || p_sequence_name || ' increment by ' || to_char(p_new_value-p_current_value);
    18      execute immediate 'select ' || p_sequence_name || '.nextval from dual' into l_dummy;
    19      execute immediate 'alter sequence ' || p_sequence_name || ' increment by 1';
    20    end reset_sequence_value
    21    ;
    22  begin
    23    execute immediate
    24      'select ' || p_sequence_name || '.nextval,' || p_sequence_name || '_user.nextval from dual'
    25    into l_nextval1, l_nextval2
    26    ;
    27    if l_nextval1 < l_nextval2
    28    then
    29      reset_sequence_value(p_sequence_name,l_nextval1,l_nextval2);
    30    end if
    31    ;
    32    if l_nextval1 > l_nextval2
    33    then
    34      reset_sequence_value(p_sequence_name || '_user',l_nextval2,l_nextval1);
    35    end if
    36    ;
    37    p_nextval := greatest(l_nextval1,l_nextval2)
    38    ;
    39  end reset_sequences;
    40  /
    Procedure is aangemaakt.
    SQL> show err
    Er zijn geen fouten.
    SQL> create sequence testseq start with 5 increment by 1
      2  /
    Reeks is aangemaakt.
    SQL> create sequence testseq_user start with 2 increment by 1
      2  /
    Reeks is aangemaakt.
    SQL> declare
      2    l_new_value number;
      3  begin
      4    reset_sequences('testseq',l_new_value);
      5    dbms_output.put_line(l_new_value);
      6  end;
      7  /
    5
    PL/SQL-procedure is geslaagd.
    SQL> select testseq.currval from dual
      2  /
                                   CURRVAL
                                         5
    1 rij is geselecteerd.
    SQL> select testseq_user.currval from dual
      2  /
                                   CURRVAL
                                         5
    1 rij is geselecteerd.Regards,
    Rob.

  • Performancepoint Hierarchy Disable Drill Down Level on changing Column name in MDX query

    Hello All,
    I have created a report in Performance Point dashboard designer but when I change Column name (Measure Name) in MDX query this causes all the built-in ad hoc
    navigation and decomposition tree functionality that PP provides to become disabled. Is there any solution or alternative way to achieve this. Please provide solution for this.
    Thanks in advance.
    Sapna Kshirsagar

    try these links as reference/:
    https://support.office.com/en-nz/article/Getting-acquainted-with-PerformancePoint-Dashboard-Designer-9e014283-afec-4819-87b9-78be6f6ef0d0?ui=en-US&rs=en-NZ&ad=NZ
    https://technet.microsoft.com/en-us/library/ee748644%28v=office.15%29.aspx
    https://support.office.com/en-gb/article/Creating-scorecards-by-using-PerformancePoint-Dashboard-Designer-2faa3bd6-c361-4c26-a7f9-b81227c875d8
    https://msdn.microsoft.com/en-us/library/office/ee557851%28v=office.15%29.aspx
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • Mdrmsap - retrieve SAP variables

    I'm trying to retrieve the properties of the SAP variables, used in a BI query, using a VB 6 application.
    Using the following command :
    Dim myObj As Object
    Set myObj = m_cube.GetSchemaObject(adObjectTypeMember, "SAP VARIABLES")
    generates the error : "Internal error when creating MEMBER SCHEMA ROWSET. Error #MEMBER"
    How do I retrieve the properties of the SAP variables in VB 6 ? I need to retrieve the VARIABLE_SELECTION_TY
    PE.
    Thanks in advance

    Hi Sat,
    I've checked following objects within the references  :
    Microsoft ActiveX Data Objects (Multi-dimensional) 2.8 Library (MSADOMD.DLL)
    Microsoft ActiveX Data Objects 2.8 Library (MSADO15.DLL)
    Microsoft DAO 3.6 Object Library
    so the version of MSADOMD is newer than the one you mentioned.
    Data of the info provider is read fine, using the cellset.open function.
    I need the properties of the parameters of the query, because I have to build a filter screen in my VB application, and I
    need to know whether or not it's a required parameter and what kind of parameter is used (single entry, single input list, range
    regards,
    Danielle

  • Variable array names...i think

    I have a list of arrays which need filling and i have created a for lop that will run the necessary commands to fill the arrays...
    how do i put an array name into the 'for' loop that will change each time...
    ie.
    for(int x = 0; x < 3; x++)
        array ?x? [index] = tempVariable;
    }Message was edited by: Reashlin
    reashlin

    You don't.
    An array's index can be variable, but a variable's name cannot. If you really need "named" arrays, put the arrays into a map.
    Map<String, int[]> arrayMap = new HashMap<String, int[]>();
    int[] array1 = new int[10];
    arrayMap.put("array1", array1);
    array1[0] = 123;http://java.sun.com/docs/books/tutorial/collections/
    Or, if accessing the array by an index is enough, then just use an array of arrays.
    int [][] arrays = new int[5][10];
    array[0][0] = 1;
    ... etc. ..

  • Variable/method names standardizing

    Hi All,
    The problem we've got here is that same things are named in slightly different way by different developers or development groups.
    Typical example:
    'id' property. accessors could be named like: 'getID' or 'getId'.
    Or even better example: term 'Work List' implementation of which has nothing to do with Java List. So, property could be named as 'worklist' or 'workList' with similar names for accessors.
    I think, this problem is slightly outside of coding standards scope. And as project is very massive ~300000 lines of code, there are a lot of different terms named like in example above.
    Has anyone come across such problem before?
    I suspect, solution would be to keep a kind of variable/method names library.
    Are there any better solutions?
    Thanks in advance
    Andrei

    I think, this problem is slightly outside of coding
    standards scope. It is, and I'm glad it is because the "people" who make the standards that we do have end up creating dumb, inconsistent stuff as it is. Better they don't get too granular.
    Has anyone come across such problem before?Every day
    I suspect, solution would be to keep a kind of
    variable/method names library.
    Are there any better solutions?How you name stuff is a matter of opinion. I personally don't care if you do someID or someId or even someid, what kills me is stuff like someid and someid. But again, it's all what you're used to.

Maybe you are looking for