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

Similar Messages

  • How to retrieve SAP variables via XMLA

    Hi Experts,
    I would like to know how to retrieve SAP BW variables via XMLA.
    Full points will be assigned.
    Thanks,
    Sapna

    HI
    /people/prakash.darji/blog/2006/09/04/work-with-xmla-web-service-for-bi-data-in-external-applications
    http://publib.boulder.ibm.com/infocenter/wpfhelp/v6r1m2/index.jsp?topic=/com.bowstreet.designer.doc/designer/c_sapbw_data_builder.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67acb63d-0401-0010-b685-b1b87dd78892
    Hope it helps

  • SAP variables via XMLA

    Hi Experts,
    I would like to know how to retrieve SAP BW variables via XMLA.
    Full points will be assigned.
    Thanks,
    Sapna

    Hi Sapna,
    Find the below link ....this may helpful.....
    http://209.85.175.132/search?q=cache:cw1fHe2QhUEJ:download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/UsingRSwithSAPNetWeaver.dochowtoretrieveSAPBWvariablesthroughXMLA&hl=en&ct=clnk&cd=4&gl=in
    Thanks==points
    Regards
    Sudheer
    Edited by: SUDHEER on Jan 6, 2009 7:17 AM

  • 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

  • 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

  • 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

  • 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

  • Retrieve POST variables just like in a normal HTTP forms

    Hi All :D
    Can anyone tell me how to retrieve POST variables just like
    in a normal HTTP form?
    I have 2 flex applications. One will send the POST variables
    and I would like the other to retrieve
    these variables. How to implement this?
    Thanks :D

    "JuggerOgre" <[email protected]> wrote in
    message
    news:g92bce$kgf$[email protected]..
    > Hi All :D
    >
    > Can anyone tell me how to retrieve POST variables just
    like in a normal
    > HTTP
    > form?
    > I have 2 flex applications. One will send the POST
    variables and I would
    > like
    > the other to retrieve
    > these variables. How to implement this?
    Flex is a client side application. You could send them from
    one client and
    then request them from the other client, or you could use
    something like
    BlazeDS to "push" the information.
    HTH;
    Amy

  • How to retrieve sessions variables in JSP

    hi,
    I am trying to retrieve session variable from servlet to JSP.
    In the servlet i am retrieving employeenames from database and storing them in a ArrayList variable then i am setting this variable into the session.
    When retrieving the session in the jsp it displays as [empname1, empname2].
    Please help how to retrieve them
    Thanks in Advance,
    sha

    At the servlet:
    ArrayList<String> employeeNames = new ArrayList<String>();
    employeenames.add(blahBlahblah);
    session.setAttribute("eNames", employeeNames);
    At the JSP:
    ArrayList<String> names = (ArrayList<String>) session.getAttribute("eNames");
    for (String nom : names) {
    do something with the name stored in String variable nom...
    }

  • Is it possible to store and retrieve request variables from the same page?

    I can't seem to get this to work.
    In the page constructor to retrieve the variable on reload of the page:
    String myReqValue = (String) getValue("#{requestScope.name}");
    and in public void beforeRenderResponse() {}
    setValue("#{requestScope.name}", some_var);
    Of course in th page constructor I check that its not null to know if its the first load of the page.
    Regards
    Jonathan

    Hi,
    Your setters and getters looks fine.
    This is what i did.
    public String button1_action() {
    setValue("#{requestScope.name}", "abcd");
    return "case1";
    In the page constructor .
    String check = (String) getValue("#{requestScope.name}");
    Just check whether this can help you.

  • Year to Date using SAP variables

    I've run into a sticking point when trying to create a year to date calculation that works without user entry. The infocube is updated by finance each month (for the previous month) after the final adjustments are made. For this reason, when the query pulls YTD information, it should be cumulating from January 20XX to Current Month - 1.
    The first way that I tried was to use overlapping restrictions: Fiscal Year/Period < Current Fiscal Year/Period AND Fiscal Year = Current Fiscal Year. This worked very well until we reached January. Now the overlapping restrictions return no results since all previous months are not in the current fiscal year.
    I've also attempted using the SAP exit variable 0FYTLFP (Cumulated to Last Fiscal year Period) on Fiscal Year/Period. It is not working, and I assume it is because the last fiscal year period is falling into a different fiscal year. Using it today, the value I get is equal to the value for Jan 2007. The variable seems to first look up the first day of the current fiscal year, saves that as one end of the range, then goes to the previous month to get the other end of the range. I tried offsetting this variable by -1 and the value returned was equal to Dec 2006, but not YTD.
    I'm assuming it must be possible to use the standard SAP delivered objects to create a working YTD calculation that does not require manual entry and cumulates correctly through current period - 1. Does anyone have any suggestions?
    Thanks!

    Dear Adam,
    For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
    Thanks,
    Krish

  • Problem retrieving Session variables in Flex from Coldfusion

    For about a year I've been using a cfc that allows me to remote call from within Flex to retrieve session-level variables.  I much prefer this to using FlashVars because with the remote call the session values don't show up in the page source.
    This was working fine when I was using an Application.cfm file to manage my Coldfusion pages.  However when I switched to using an Application.cfc file, the cfc stopped working.  Neither the cfc or the cfm file contain any code to manage these session variables (they are set in other pages), so the only real difference seems to be changing from Application.cfm to Application.cfc.
    Any thoughts why?  Thanks.

    Ok, this is resolved.
    The problem seems to have been related to the scope of Application.cfc and Application.cfm.  The directory which contained the cfc files had an Application.cfm controlling the session, while the directory with the pages that included the flex swf files had an Application.cfc file.  Apparently these two don't talk to each other.
    The solution is to use either Application.cfc or Application.cfm files, but not to mix them.  In other words, use either -- but be consistent.

  • Retrieving ODI variable in Java Beanshell (Target Beanshell Source Oracle)

    Hi Guys:
    I'm facing a simple problem, but I'm not able to find the solution in the documentation or any post in this forum. I have a procedure where I use both tabs (Source and Target) and need to retrive the result of the "StrParam" (Oracle query) into a BeanShell variable (OracleMessageData).
    In the target tab I have these commands (Java BeanShell Techonology):
    <@
    import java.io.FileNotFoundException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.io.UnsupportedEncodingException;
    import java.util.ArrayList;
    String OracleMessageData = "#strParam";
    String PathOfXMLFiles = "<%=odiRef.getSchemaName("LS_FILE_XMLFULL", "D")%>";
    @>
    In the Source Tab, I have this command (Oracle Techonology):
    SELECT MESSAGEDATA FROM <%=odiRef.getSchemaName("LS_ORACLE_ODI_WRK", "D")%>.CONTENT_RIB_MSGDATA strParam
    How can I retrieve the content of the Source Command into the variable in the Target? The line bellow doesn't work:
    String OracleMessageData = "#strParam";
    I'm using ODI_11.1.1.6.0_GENERIC_111219.1055
    Regards.
    Luiz Araujo
    Edited by: Luiz_Araujo on 25/07/2012 06:43
    Edited by: Luiz_Araujo on 25/07/2012 06:45

    Hi Luiz
    Use Below query on source tab.
    SELECT MESSAGEDATA STRPARAM FROM <%=odiRef.getSchemaName("LS_ORACLE_ODI_WRK", "D")%>.CONTENT_RIB_MSGDATA
    Then on target tab use
    String OracleMessageData = "#STRPARAM ";
    If it wont work try putting colon.
    String OracleMessageData = ":STRPARAM ";
    Thanks.

  • Retrieve environment variables (but not classpath or other java ones..)

    Hi,
    Does somebody know another way than System.getPropriety() to retrieve a environment (system) variable? I have a variable so-called CSServer designing a path, and I do not succeed to retrieve it from a Java program.
    Any ideas?
    Thanks
    Richie

    I once implemented it by creating a process that executedecho %<yourVar>%and reading the output, but I'm not very proud of it.
    For other options, search the forums.
    Kind regards,
      Levi

  • SAP variables

    Hi All,
    there are some variables provided by SAP for eg. 0CMONTH which when used displays the data of current calendar month. how to find the code written for it. guess i can goto se37 and i donno how to proceed from there on.
    thanks
    rahul

    Hi
    These are not necessary ahve code (only if it is type User Exit).
    if it is you can go to CMOD trax and look at the code
    for them.
    Edan

Maybe you are looking for