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

Similar Messages

  • 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

  • MDX - ABAP program variable to select the required month

    Dear all,
    Please I would like to ask you about the following MDX issue.
    We have run the following MDX in SAP R/3 using the OLAP BAPI with successful results:
    SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [0SALESORG].[LEVEL01].MEMBERS
    [0DISTR_CHAN].[LEVEL01].MEMBERS
    [0MATERIAL].[LEVEL01].MEMBERS
    properties member_name
    ON AXIS(1)
    FROM [EPSDC108/ZTD_EPSDC108_Q002]
    We now want to select a specific calendar month for the data and generated the following MDX:
    SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [0SALESORG].[LEVEL01].MEMBERS
    [0DISTR_CHAN].[LEVEL01].MEMBERS
    [0MATERIAL].[LEVEL01].MEMBERS
    properties member_name
    ON AXIS(1)
    FROM [EPSDC108/ZTD_EPSDC108_Q002]
    SAP VARIABLES [CALMONTH] INCLUDING <member>
    We would like to know how we use an ABAP program variable to select the required month.
    Thank you in advance for you reply
    Regards
    Ales

    hello,
    the syntax of the MDX should be:
    SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [0SALESORG].[LEVEL01].MEMBERS
    [0DISTR_CHAN].[LEVEL01].MEMBERS
    [0MATERIAL].[LEVEL01].MEMBERS
    properties member_name
    ON AXIS(1)
    FROM [EPSDC108/ZTD_EPSDC108_Q002]
    SAP VARIABLES [CALMONTH] INCLUDING [0CALMONTH].[200412]
    CALMONTH is the Queryvariable!!
    If you wanna use a ABAP veriable you have to concatenate the MDX statement in your ABAP.
    Kind reg.
    Michael

  • Transfer the Pur Order Info through BAPI's between SAP R/3 Systems Using XI

    How to Create a Purchase Order for the Vendor and transfer this data through BAPI's between SAP R/3 Systems Using "Exchange Infrastructure(XI)".
    Please kindly let me know the procedure for creating BAPI's and how to transfer this information between SAP R/3 systems. Please kindly mention the NAVIGATION for this scenario.

    Hi Revathi,
    If you want to do an IDOC to IDOC scenario, then the Points to be noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. You do not need a sender IDOC adapter, and no sender agreement, but a receiver IDOC adapter and a receiver agreement is needed.
    IDOC -> File scenario ref:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    File -> IDOC ->
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    (It concentrates on XSLT mapping but also gives an idea about the configuration part. Do go thru that, it might help you.)
    Apart from this if you need any info on how to configure your ALE, partnet profile,etc  drop me a mail, I have excellent tutors that can help you in the same.
    Regards,
    Bhavesh

  • Step by step bapi to convert SAP to XML please its urgent

    step by step bapi to convert SAP to XML please its urgent
    full points if with full example and coding in ABAP,
    Thank you,
    Regards,
    Jagrut Shukla

    yes i want to convert Catsdb table into xml format and safely in server, i.e secured  place

  • 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

  • Access BAPIs Using the SAP Java Resource Adapter

    Hi experts,
    Can someone tell me how to Access BAPIs Using the SAP Java Resource Adapter?

    hi Shweta,
    Please refer the step by step procedure:
    1. Start the deploy tool of the SAP J2EE Application Server with the DeployTool.bat in the directory //<SAP J2EE Engine Installation Directory/.../j2ee/deploying.
    2. Choose Project &#8594; New Project and enter a name for the new project.
    3. Click on the Deployer tab.
    4. From the menu path, choose Deploy &#8594; EAR &#8594; Load Module and select the sapjra.rar file.
    5. For the newly created node sapjra.rar, choose Server Settings &#8594; Identity Subjects and select Caller Impersonation as authentication type, so that the J2EE user data is used to log on to the ABAP system.
    6. Make sure that the J2EE Application Server is running. Connect to the J2EE Application Server with Deploy &#8594; Connect.
    7. Deploy the sapjra.rar using the menu Deploy &#8594; Deployment &#8594; Deploy Module.
    8. Enter SAPJRADemo as application name and start the application.
    9. Close the deploy tool.
    10. Start the Visual Administrator again.
    11. Select the Cluster tab and switch to <Server Node> &#8594; Services &#8594; Connector Container.
    12. Click on the Runtime tab and choose sap.com/SAPJRADemo &#8594; eis/SAPJRADemoFactory.
    13. Choose Managed Connection Factory &#8594; Properties. On this page, you need to specify the logon data for the ABAP system. There is already some dummy data visible in the property list if no real system data has been specified so far.
    14. To change the value of a property, select the property in the list, change the value underneath it, and add the changes using the Add button. At the end, do not forget to save all changes by pressing the button Save Changes. The user configured for the SAP JRA must be the user authorized to read metadata of function modules.

  • "Java and BAPI Technology for SAP" by by Ken Kroes - Is this book useful?

    Howdy partners,
    I've got a 'book' called "Java and BAPI Technology for SAP" by by Ken Kroes, Anil Thakur, Gareth M. deBruyn, Robert Lyfareff.
    Now, does anyone know if the info in this book is still relevant to the modern SAP world? I mean its still talking about ITS and stuff like that?
    Any input will be appreciated.

    With the blue cover? I have one with the something similar title, but it's quite out of date. There was lot of improvement on the Java side.
    So I would prefer something newer from SAP-PRESS. Check the SAP-PRESS site.
    BTW I don't consider ITS as an old technology...it was just integrated recently into WAS 640 to make it more powerful. This is the only available technology, which converts classic Dynpro to Webpage dynamically.
    Peter

  • BO XI 3.1 Sp2 OLAP Universe - MDX Function

    Hi all,
    How i tuse MDX Functions in OLAP Universe ?
    Iam getting parse ok in Universe . getting error in while creating webi report

    Hi... i´ve seen that this is a typical question but i think it´s still not solved... I need to use the sentence showed but despite using measures using another dimension. I mean i want to create a new dimension which tell me if it has values or not so i want to create another one and use the function IIF and the sentence more or less like that:
    IIF(ISEMPTY(.[D7LE0EX5IUP5U83WHERK13M48]), 1, 0)</EXPRESSION> - it works
    May i use this sentence with dimension/characteristic values or it only works for measures ? Some idea of how to achieve what i´m looking for ?
    Thanks in advance.
    SAP BW 7.02 SP06
    BO XI 3.1 FP 3.5
    J.Casas

  • 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

  • Verifying BAPI posting in SAP R/3

    Hi experts,
                    I am using async RFC (BAPI)  in my scenario. The message has left XI sucessfully, but I do not know whether my BAPI has been posted in SAP.
    Is there any way to find out whether a RFC call has been made in SAP R/3.
    Thanks in Advance.

    Check Comm Channel Monitoring in XI. If no error,then from a XI perspective things look good.
    To check if the BAPI got processed in R3, you will have to check ST22 for any dumps from your BAPI call. Also check the functionality of the BAPI and check if the end result is done. Normally this will be done by the Application Team / Functional Consultant.
    Regards
    Bhavesh

  • MDX and substitution Variable usage in Essbase 7.1.5 -- Problem

    <p>Hi,</p><p> </p><p>Iam trying to write a query like this and Iam unable to validatethis in MDX -</p><p> </p><p>SELECT<br><br>{ [USD]}<br>ON COLUMNS,<br>{&CurMon}<br>ON ROWS<br><br>FROM [Sample.Basic]</p><p> </p><p>It gives me error at "&"</p><p> </p><p> </p><p>Also I tried to use substituion variable in a formula on amember like this and I couldnot get it validated -</p><p> </p><p> </p><p>CASE [Time Periods].CurrentMember<br>WHEN [JAN]<br>THEN SUM( CROSSJoin( {[Net Income]} , {[JAN]} ) )<br>WHEN &CurMon<br>THEN SUM( CROSSJoin( {[Net Income]} ,{[JAN] : &CurMon} ) )<br>ELSE<br>missing<br>END</p><p> </p><p> </p><p>Please reply me if indeed , we cannot use substitution variablesin MDX.</p><p> </p><p>( Note: Subsitution variables were already setup in thesystem)</p><p> </p><p>Thanks<br></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Each essbase application can go up to 2GB only. If you have one application which use more than 2GB of ram, it will probably crash.
    If you use direct I/O, you can use more than 2GB of ram, however it is limited by the operating systems.
    For Windows, it is recommended to turn on the /PAE setting in boot.ini. This will allow the windows to use more than 4GB of RAM. According to Essbase DBA guide, Turning 4GT will allow Essbase to use up to 3GB of RAM when you use direct I/O.

  • Crystal Report on BW BEx Query via MDX in SAP Portal

    Hi!
    We need to display a CR in the Portal. The CR is based on a MDx BW Query. To create and display the report is no problem. Even saving back to BW is working fine.
    But how do we get this CR displayed in the EP?
    Thanks in advance
    Jörn

    Hi,
    Should only the BO SAP Integration Kit iViews / URL iViews be used and are the Crystal Report iViews (http://help.sap.com/saphelp_nw04/helpdata/en/36/d4a94076b63713e10000000a155106/frameset.htm) obsolete?
    Yes as the Crystal Report iView are based on an older version
    If we export the Crystal reports to SAP BW, is it possible to call them with BEx iViews like the xCelsius reports? (Like with DASHBOARD=<report name> for xCelsius)
    From where can we get the Crystal Report ID, if we export them to SAP BW?
    You should use the BusinessObjects Integration Kit iView template for Crystal REports and the ID can be retrieved from the CMC
    Ingo

Maybe you are looking for

  • Help with purchasing a album on store, account will be debited

    I am wanting an album for £7.00 but only have £5.00 added to my Itunes account. I added my credit card a while ago. When I click purchase it says my account will be debited as I don't have enough on my account. Does this mean it will only take £2.00

  • Document on PCM 7.0 tool

    Hi Friends, I am new to SAP PCM tool and have to do some handson on PCM 7.0. If anyone have come across some documents about doing handson on PCM tool, please help me with the link for that. Searched a lot for such document but was not able to find a

  • Problem displaying datatable colum value

    hi , Below is my JSPcode <h:dataTable value ="#{DatabaseBean.table}" var= "row"> <h:column><h:outputText value ="#{row.Description}"/></h:column> Here is bean code I am using ArrayList. I put objects of another Bean User in ArrayList name d 'Question

  • How to make TRACE work in native C++ code for a C# Univeral apps project

    I am playing the real-time communication sample project.  It works as expected but writing to the Output console does not work for the C++ code.  I have tried the TRACE macro,  and also tried the Trace() function of the project. Nothing is shown in t

  • Go Straight into HTML Client

    Using Analyzer 7.2.1<BR><BR>In prevoius versions you could specify a direct link into the HTML version or the Java version, thus bypassing the initail splash screen.<BR><BR>Is it still possible?<BR>If it is what is the link you have to add to go dire