XMII OLAP Query Template SAP Variables Count Limit

While working with the MII OLAP Query template and connecting to a a BW Adhoc query with many input variables.  I have noticed the SAP Variables list available in the MII OLAP Query template seems to be limited.  Is this really true, can it be configured to display more variables, is there something else that would cause variales not to be displayed in the query template list? 
I have tried to type in SAP variables not displayed in the list but actually in the BW Query but this just resulted in an error.
Any insight would be really helpful.  Thanks

Gary,
One again drawing some analogies here , this time with the JCO. Suppose you are interfacing to a ZBAPI and at some point you make some changes to the Z function in R/3. These changes are not automatically reflected in MII unless you refresh/clear the JCO Proxy. Could a similar scenario be attributing to your issue?
What I would suggest is to disable / save / enable / save your OLAP data server and see if that makes any differnce.
I may be totally off track here but just a thought.
Goodluck
Regards
Udayan

Similar Messages

  • Comments in OLAP Query

    I have tried unsuccessfully to use the traditional comment indicators (--, // or /../) in the MII OLAP Query Template.  Can any one offer any insight ?  We are running xMII 11.5 Thanks
    Edited by: Gary Wilson on Mar 18, 2010 4:17 PM

    The error returned is:
    com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an error
    The query below runs successfully without the comment.  I have tried using all 3 comments types, all yielded the error.  I also tried using them different places in the query and all yield the error above.
    SELECT
         [Measures].[4H6FMCTGVWP1OONPFSU60LPHL],
         [Measures].[4H6FMD15EVAR7B75LMWIANO7D],
         [Measures].[4H6FMD8TXTWGPXQLRGYUKPMX5],
         [Measures].[4H6FMDGIGSI68KA1XB16URLMX],
         [Measures].[4H6FMDO6ZR3VR6TI353J4TKCP],
         [Measures].[4H6FMDVVIPPL9TCY8Z5VEVJ2H],
    --      [Measures].[4H6FME3K1OBASFWEET87OXHS9],
         [Measures].[4H6FMEB8KMX0B2FUKNAJYZGI1],
         [Measures].[4H6T8MSDUVPDDCUKTO2LASITL],
         [Measures].[4H6T8N02DUB2VZE0ZI4XKUHJD]
    ON COLUMNS,
    NON EMPTY
         [ZBRSPPLNT].MEMBERS
    ON ROWS
    FROM
         [Z_SD_C33/Z_Z_SD_C33_Q0127A]
    SAP VARIABLES
         [Param.1]
         [ZCYTCMC] INCLUDING "[Param.2]":"[Param.3]"
         [Param.4]
         [Param.5]
    ~~~~~~~ End of query ~~~~~~~
    Param.1 = [ZS_RPLTC] INCLUDING "[P145]" [ZS_RPLTC] INCLUDING "[P146]"  [ZS_RPLTC] INCLUDING "[P151]"
    Param.2 = 05/2009
    Param.3 = 05/2009
    Param.4 = [ZS_CATGY] INCLUDING "[C]"  [ZS_CATGY] INCLUDING "[G]"  [ZS_CATGY] INCLUDING "[W]"
    Param.5 = [0SALEORG] INCLUDING "[BP01]" [0SALEORG] INCLUDING "[CR01]"
    ~~~~~~~~ End Params ~~~~~~~
    Notes:
    We are using SAP BI  7.0
    While the above query is only using the "---" the same error is returned if either of the comments indicators are included.
    I'm sorry the test editor doesn't seem to like the code.... especially the strike through.  That and the liks are unintended.
    Thanks for taking the time to review our issue and offer suggestions
    Edited by: Gary Wilson on Mar 19, 2010 12:31 PM
    Edited by: Gary Wilson on Mar 19, 2010 12:34 PM

  • OLAP Query. More than one Column/Row.

    Hi all experts.
    I am developing an OLAP query and need to create it in this way:
    Material: As BI Characteristic.
    Unit: As BI Characteristic.
    Value: As BI Ratio.
    Returned structure in MII should be like this:
    Material    Unit      Value
    Mat1          M3        250
    Mat2          KG       140
    Mat3          M3        200
    The BI query I am using is showing data in that way using BEx Analyzer.
    However, I am not able to create it using MII's MDX syntax coded like this:
    SELECT
              [Measures].[xxxxxxxxxxxxxxxxxxxxxxxxxxx]      ---> This is my BI Ratio "Value"
    ON COLUMNS,
    NON EMPTY
              [SM_MATERI].MEMBERS, [1CUDIM].MEMBERS         ---> These are Materials and Units
    ON ROWS
    FROM MYCUBE/MYQUERY
    Which will return data in this way, whithout crossing Materials & Units:
    Material   Unit  Value
    Mat1        -
          250
    Mat2        -
          140
    Mat3        -
          200
               M3      450
               KG      140
    Any idea about how should I code my query?
    I have checked both SAP's Help website and SDN Posts but without success.
    Many thanks and kind regards.
    Albert.
    Edited by: a.pozos.basterrica on Apr 27, 2011 9:19 AM

    Albert,
    It's tough to follow what you're after without knowing the definition of your cube but here's a document that will help you:
    [http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/458ba574-0a01-0010-2aab-d1ee76ee9820|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/458ba574-0a01-0010-2aab-d1ee76ee9820]
    It's also available under the Connectivity section of the MII Wiki, in case this link doesn't work for some reason.  Also, the best way to write your OLAP Queries is not from within the MII OLAP Query template but rather via the SAP GUI interface of the BW system in transaction code MDXTest.  This is a bit more comprehensive and gives you better error messages.
    Hope this helps,
    Sam

  • Calling Oracle stored procedure from xMII Query Templates.

    Hi All,
    We have a requirement to call a Oracle stored procedure from xMII, the SP expects some inputs and then it returns multiple rows.
    I tried different approches with no results, I remember some posts on the same topic but I could not get in search results.
    Looking for some help in this regards
    Rupesh.

    Hi Rupesh Bajaj,
    In oracle stored procedure we have to use Packages..if you used packages the u have to assign to some variable.
    To calling Stored procedure  in Query Template is CALL Testing('[Param.1]','[Param.2]',,:X)
    In above line Testing is Stored procedure name and Param.1 is parameters and X is Package.
    Thanks
    Ravilla Ramesh

  • SAP UI5 Chart using SAP MII Query template

    Hi All, I am new to SAP UI5. I am trying to create SAP UI5 chart using SAP MII Query template. could anyone please tell me how to pass the Query Template as input to the SAPUI5 Chart? If possible please share sample code for doing so Regards Praveen Reddy

    Hi,
    If you want to embed UI5 objects in an IRPT here is a very simple code snippet:
    <HTML>
    <HEAD>
      <TITLE>TestUI5</TITLE>
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart"></SCRIPT>
      <SCRIPT>
      var Grid = new com.sap.xmii.grid.init.i5Grid(SpecifyDisplayTemplateHere, SpecifyQueryTemplateHere);
      Grid.setGridWidth("640px");
      Grid.setGridHeight("400px");
      Grid.draw("div1");
      </SCRIPT>
    </HEAD>
    <BOD
      <DIV id="div1"/>
    </BODY>
    </HTML>

  • 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

  • Calling a Stored Procedure with output parameters from Query Templates

    This is same problem which Shalaka Khandekar logged earlier. This new thread gives the complete description about our problem. Please go through this problem and suggest us a feasible solution.
    We encountered a problem while calling a stored procedure from MII Query Template as follows-
    1. Stored Procedure is defined in a package. Procedure takes the below inputs and outputs.
    a) Input1 - CLOB
    b) Input2 - CLOB
    c) Input3 - CLOB
    d) Output1 - CLOB
    e) Output2 - CLOB
    f) Output3 - Varchar2
    2. There are two ways to get the output back.
    a) Using a Stored Procedure by declaring necessary OUT parameters.
    b) Using a Function which returns a single value.
    3. Consider we are using method 2-a. To call a Stored Procedure with OUT parameters from the Query Template we need to declare variables of
    corresponding types and pass them to the Stored Procedure along with the necessary input parameters.
    4. This method is not a solution to get output because we cannot declare variables of some type(CLOB, Varchar2) in Query Template.
    5. Even though we are successful (step 4) in declaring the OUT variables in Query Template and passed it successfully to the procedure, but our procedure contains outputs which are of type CLOB. It means we are going to get data which is more than VARCHAR2 length which query template cannot return(Limit is 32767
    characters)
    6. So the method 2-a is ruled out.
    7. Now consider method 2-b. Function returns only one value, but we have 3 different OUT values. Assume that we have appended them using a separator. This value is going to be more than 32767 characters which is again a problem with the query template(refer to point 5). So option 2-b is also ruled out.
    Apart from above mentioned methods there is a work around. It is to create a temporary table in the database with above 3 OUT parameters along with a session specific column. We insert the output which we got from the procedure to the temporary table and use it further. As soon the usage of the data is completed we delete the current session specific data. So indirectly we call the table as a Session Table. This solution increases unnecessary load on the database.
    Thanks in Advance.
    Rajesh

    Rajesh,
    please check if this following proposal could serve you.
    Define the Query with mode FixedQueryWithOutput. In the package define a ref cursor as IN OUT parameter. To get your 3 values back, open the cursor in your procedure like "Select val1, val2, val3 from dual". Then the values should get into your query.
    Here is an example how this could be defined.
    Package:
    type return_cur IS ref CURSOR;
    Procedure:
    PROCEDURE myProc(myReturnCur IN OUT return_cur) ...
    OPEN myReturnCur FOR SELECT val1, val2, val3  FROM dual;
    Query:
    DECLARE
      MYRETURNCUR myPackage.return_cur;
    BEGIN
      myPackage.myProc(
        MYRETURNCUR => ?
    END;
    Good luck.
    Michael

  • Transaction demarcation in query templates and BLE?

    We have a business process which needs to insert N-many records into a table as a single transaction - if one insert fails, they all rollback.  The number of records and record values are, of course, variable.  How does xMII 11.5 support this or does it? 
    I could think of some very ugly hacks using a fixed query and creative use of query template parameters, but I'd rather not go there.
    Thanks,
    -tim

    XMII has no database transactional support.
    The last site I worked at rolled their own action block to handle this and support distributed transactions.  Basically, any number of data connections and SQL statements could be passed to the action block and then commiited in one pass.  It was quite a bit of work but it was a major requirement of the client.

  • How to pass value from templates to variables

    I have a part of my stylesheet(xslt)like the below example:
    <xsl:variable name="amount">
    <xsl:call-template name="amountaggregate">
    <xsl:with-param name="sum">
    <xsl:value-of select="number(0)"/>
    <xsl:with-param>
    <xsl:with-param name="cucount">
    <xsl:value-of select="number(1)"/>
    </xsl:with-param>
    </xs:call-template>
    </xsl:variable>
    in my template "amountaggregate" i will be setting a maximum count and will be incrementing the cucount by 1 each till cucount=maxcount. For each increment i will be adding some values to the parameter sum. i need to assign the final value of sum to the variable amount so that i can access it by "$amount"
    Can anyone help me?

    Hi,
    Some of the tutorials for the ABAP WebDynPro
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    for your question ,
    1. you should have two views and a Node in the Component controller
    2. In the first view you should bind the Component controller node attribute Employee ID.
    3. In the second view also u should bind the Employee id attribute and get the value from that and process the employee id.
    4. Display the employee Details in the Second view.
    all the business Logic please write in the component conntroller.
    the Data will pass like this
    FirstView Context --> Component controller Context --> Second view Context.
    here Component controller context is Global and can be visible to both the views.
    Reward if usefull.
    Regards,
    Ravi.

  • Facing problem in query template editor

    Hi All,
    After creating connection to MySQLserver in my machine through DATA Servers after that i tried to access that server(through name of server ex:mysqlconnect) in
    query template editor by following the procedure then i am not getting the modes list
    procedure what we followed:
    Data Servers->query template editor->select new->select TagQuery->select mysqlconnect
    here in modes window i have to get modesbut i am not getting anything except message "No Data Available".
    In the same way there is one more in Tag Query section that is simulator where i am getting all modes.
    Please help me out how to get that modes for the connection we have created(mysqlconncet)

    Srikanth,
    Based upon the simple nature of this inquiry, and the responses so far, I am speculating that you are very new to the product and have not had any formal product training.  I would encourage you to pursue the SAP education courses to get a proper foundation on the xMII software.
    'No Data Available' always implies that a Fatal Error occured and in the case of the Template Editor you will see additional information in the Sun Java Console which should give you indication as to the underlying issue.  The console is the same place to look if you encounter this error message in any of the runtime applets.
    Any error like this also produces an error message along with all sorts of additional troubleshooting details in the general logs which are accessible from the main Menu.
    Regards,
    Jeremy Good

  • Maintaining multiple query templates

    Hi,
    We created a generic query templates for SQL Query and this query template does not have any query specified inside the Query Template. The SQL query is assigned inside the xMII transaction. Instead of creating and maintaing multiple query templates for various SQL queries, we created this single query template and we use this query template by assigning the SQL query in xMII Transaction at runtime. Will there be any issues around this approach?
    Thanks,
    Sara

    This approach limits the reusability/maintainability of your queries.  If any query is to be used more than once (e.g. in a UI application or more than one BLS transaction), it makes sense to put it in its own query template.  Also, if you want to take advantage of xMII's caching infrastructure, you should also do this.
    There's also a small possibility in the future (I'm no longer with SAP, but just suggesting it is a possible outcome) that the SQL will not be dynamically assignable to avoid SQL code injection security issue(s).

  • Query Template Not Loading

    Hi,
    We are using XMII 12.0 and NW 7.1,
    We have deployed Query templates in web pages and while loading , applets are not loading...
    in NWA we saw the following error
    Unable to load template PATH [pathId=<id no>,<Query Template Path>]..
    Category:  /Applications/XMII
    Location:  com.sap.xmii.Illuminator.templates.TemplateManager
    Application:  sap.com/xappsxmiiear
    but the template mentioned in the error is in the same path and working fine if we open from work bench.
    and also we are seeing the following error.
    Exception of type com.sap.sql.log.OpenSQLException caught: Synchronisation reader could not access data source java:comp/env/jdbc/XMIIDataSource..
    Pages are not working...
    What is the problem? How to solve it?
    Regards,
    Senthil

    I think that you have the wrong version of NW for the installation of MII 12.0.  It is not NW 7.1 (NWCE), but rather 2004s (7.0?).
    Check the installation guide.  There may be some other downloads required before loading NW.
    Good luck,
    Mike

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • OLAP query returning "name" rather than "key" attribute for a dimension

    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the "x-axis", as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.
    Is it possible to force the "key" attribute to be returned instead of the "name" attribute? I have identified two preferred options:
    1. MDX syntax of the query itself
    2. configuration of the OLAP connector
    I have not found a way to do this through MDX syntax, but would welcome any suggestions.
    Alternatively, perhaps there is a non-standard way of configuring the OLAP connector so that the key rather than the name attribute is returned for all dimensions. Has anyone anything, e.g. chosen a non-standard ColumnNameAttribute or DataTypeAttribute, in this regard?
    Thanks,
    Marc Chaplin

    <b>Apologies for the formatting above</b>
    Part 1:
    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the <i>x-axis</i>, as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.

Maybe you are looking for