ADP and Bex variables

Hi there.
I have a Bex query that shows me the data I need, but this query has dynamic filter Date. Basically, the user manually put the DATE everytime he launches the query. My need is automate this process through APD.
I need this query to be launched at the beginning of every month with the DATE being the last date of the last month and the results being transfered to a .CSV file through the APD.
The question is, how could I put the automatic solution to put the DATE automatically into the Bex variable? According to this DATE a lot of Key Figures are calculated in the query, so I can't change it.

- create the a variable for the DATE. processing type by customer exit
- write the code in CMOD
- you can either select IF i_step = 1 or IF i_step = 2
- ensure that the variable is not popped up for the user entry

Similar Messages

  • XI 3.0 Open Document and BEx variables (prompts)

    Can open document in Web Intelligence 3.0  be used to pass values to BEx variable/prompt (where the BEx variable is part of a query which populates the universe)?
    Thanks

    We were actually able to get this to work, but the we have discovered we cannot pass values that have two words.
    For example, the value "Batteries" is accepted successfully.  But the value "Fuel and Gases" is not passed successfully. 
    Here is the open document syntax (as generated by the wizard):
    ="< a href=\"https://stld9862.hydroone.com:8081/OpenDocument/opendoc/openDocument.jsp?iDocID=M0jqGzEABdqBABTwlgAAQ.IAAo4KDH8AAAA&sIDType=CUID&sType=wid&sRefresh=Y&lsMMaterial%20Group%20Mandatory="URLEncode(""URLEncode([L01 Material Group]))"&sWindow=New\" title=\"\" target=\"_self\" nav=\"doc\">"[L01 Material Group]+"</ a>"
    Please note, I changed the tags <a to < a so to keep the formula in BOBJ syntax.
    Edited by: Steve Bickerton on Oct 7, 2008 3:13 PM
    Edited by: Steve Bickerton on Oct 7, 2008 3:14 PM

  • Crystal Reports and values list of BEx variables

    Hello.
    I read this - http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsandBWquery+elements
    And there are writed in wiki:
    "List of values for SAP variables are created automatically by Crystal Reports only when you use SAP Toolbar to create the report:
    The list of values for a variable in Crystal Reports will be static, but the list will be always dymanic in InfoView as long as you use BW Publisher (save reports to BW, publish to BOE)and you logon to BOE using SAP Authentication."
    I have two link to BEx queries from my CR report - and my variables have not values. I think that I don't use "SAP" menu when created the report.
    But... what I can doing now? Is way transform "simple" report into "SAP" report?
    May be is way create "SAP" report and after it copy all content of old report into new "SAP" report including all objects, formats, formulas, connections?
    May be is way load values list from BEx query with "simple" reports?
    And another question - I see that in list I get texts and codes but showing only texts in run-time. Can I tune CR for show codes too?

    Post to Integration Kit SAP forum

  • Crystal Report not Adopting all possible Dropdown Values from BEx Variable

    Hi all,
    I am having an issue in a Crystal report where the drop down parameter that is sourced from a BEx query variable does not include all the possible values in the cube (or in master data). After learning my lesson the first time of not changing the name of the variable or changing it to dynamic (this causes it to break), I had the understanding that the value list may not be complete when running the report in the Crystal client or in the viewer, however, I thought it should be correct when published to the BOE and run in infoview. I am getting the same incomplete list in infoview. I published the report into infoview using the Crystal 2008 desktop client, not the /CRYSTAL/RPTADMIN transaction.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    Here's some info:
    Crystal version: CR2008, version 12.2.4.507
    BOE version 3.1
    SAP BW 7.01 EhP 6
    Thanks,
    Chad

    Hi,
    - in the Crystal Reports designer the list of values is not online and there is a maximum number of values - configured by a registry setting:
    (windows 7)
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\SAP\BWQueryReportWrapper
    Key: MaxPickListSize
    and correct you can not change the name of the variable or set it to dynamic as the definition is based on the BEx query.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    The checkbox on the Multi Structure is not for the option to combine 2 Bex queries - it is for Bex queries with 2 structures and the BW query driver has been deprecated already and you have to use the MDX Driver.
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    in Crystal Reports Designer the list is static and when you publish the report using the BW Publishing to your SAP BusinessObjects Enterprise system the list becomes dynamic in InfoView.
    regards
    Ingo Hilgefort

  • How to get data using BEx variable

    I've build a universe upon a Bex query with a variable.
    When refreshing a WeBi report upon this universe with the filter (BEx variable) it works fine and returns data. The same does the QaaWS.
    But when I use this QaaWS as a source for Xcelsius dashbord it doesn't return any data. The input value for the variable is the same in all cases, e.g.  K4/2009.
    What should be done to fix the issue?

    What Xcelsius patch version you use?
    If I recall correct, this is known issue that was suppose to be fixed in Xcelsius 2008 SP2
    [SP2 direct download URL|https://websmp230.sap-ag.de/sap/bc/bsp/spn/download_basket/download.htm?objid=012002523100009338662009D&userid=I055661&action=DL_DIRECT]
    Thanks
    Subhodeep

  • Sort F4 values in BEX variable screen

    Hi ,
    Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
    Thanks,
    Vaishnavi

    Hi Nara,
    Kindly have a look at below thread,
    Sort the values in Bex query variable screen
    Hope this helps.
    Regards,
    Mani

  • Using currency conversion and text variable at the same time

    Hi all,
    In a 3.5 bex query, i am applying currency conversion on a key figure with a variable of 0currency.
    as i know, to be able to apply currency conversion, variable of currency should not be in Free characteristics or in Filter.
    it has to be selected only on the key figure.
    but now, i want to use text variable for selected currency (with type replacement path). But as i know, to be able to use text variable, variable of currency has to be
    in Free characteristics or in Filter.
    Can you please advise, how to both use currency conversion and text variable on currency?
    Thanks in advance.
    Sancho

    Sancho,
    I'm not 100% sure about this, but I'm thinking that if you are pulling the text variable from a selection in a structure, you should not need it in the free characteristic or filter. Try creating a structure, placing the currency in it as a selection, and creating a text variable as the title for the selection that is based on the currency. This may help.
    Cheers,
    Rusty

  • BEx Variable Key/Name swap when used as Prompt in WebI report

    Hi,
    We are using Bex Variables in a Query used as a base for a BOBJ Universe and Query.
    When refreshing the report the Prompt box displays the Name and Key of the infoobject (Dimension), but when selecting one of those values - moving it to the right, it brings across the Name not Key.
    Our requirement is that the Key is selected value rather than the name - is this possible? And if so how?
    Netweaver 2004S & Business Objects XI 3.0.
    Regards,
    Laurence

    Ingo,
    Thanks, I understand this in the background the Key is used, but is there any way to "swap" the Key and Name in the Prompt box, specifically my users want the Key to display in the right hand side of the Prompt bax when selecting, (or in the dropdown box, in the Prompt tab in WebI)
    Best Regards,
    Laurence

  • Cascading LOV in BEx Query OLAP Universe + BEx variable

    Hi gurus,
    we have an universe where a Cascading LOV has been defined based on a BO Hierarchy ( based on a BW hierarchy), the OLAP universe is based on a BEx query.
    Now, when the users create a WebI report selecting a value from the value list, the Cascading LOV appears and the user selects the value, descending by the nodes.
    We are analyzing the universe performance and we are testing to add some time BEx variables in the query ( in the current version no variables are used).
    Everything works properly but when we try to select a value from the Cascading LOV and try to select a lower level the webI returns a mdx error indicanting that the time variable is not informed. (WIS 10901: A database error ocurred; MDX query can not be executed: specify a value for the variable Z... )
    We thought that the mdx for the LOV get values from the MD table because in the infoobject definition, it has the Business Explorer Settings:
       Query Def. Filter Value Selection = Value in Master Data Table
       Query Execution Filter Val. Selectn  = Value in Master Data Table
    The Query Execution Filter Val. Selectn  can be defined at the infoprovider also (with the provider specific Properties of the infoobject) and also at the query, whe have not modify none of them.
    My first question is which settings has efect at OLAP Universes, the infoobject settings; the infocube settings or the query settings ?
    Are the Cascading LOV integrated with BEx Query OLAP Universe?
    Is it an application error?
    Many Thanks in advanced.
    Best Regards,
    Nuria

    Hi Ingo,
    many thanks for your quick answer.
    That was one of the possibilities we have analized but the problem is that the user has to inform the hierarchy level for all the reports, that kind of variables is translated in the universe as a prompt
    Now we have only one universe and some business analists users create reports themselves for the business area based on that universe.
    The users create WebI filters without prompts,just filtering the hierarchy node. If we add the BEx variable then the user sould inform the prompt for all the reports based on that universe.
    We want to avoid that prompt, we have several hierarchies in the query for different infoobjects.
    Thanks again.
    Best Regards,
    Nuria

  • Need clarification on BEX variable usage in customer exit.

    hi,
    i am an ABAP guy,i dont have any idea about BW,But here i got one problem,
    1)Variable has been craeted in BEX Report (processed by Customer exit).
    2)i am trying to write ABAP code in CMOD customer exit(ZXRSRU01),but when i am calling BEX variable it is not taking it is giving error(it should defined by data statment)so how to call the bex varible in Customer exit,if any body have sample code or any idea kindly let me know.

    Hi and welcome to SDN!
    there are a lot of examples and clarifications in these forums. For instance:
    Re: steps for a customer exit.
    Re: Regarding the Code for the Customer Exit
    Best regards,
    Eugene

  • BEx Variable in Webi Report questions

    Hi Gurus,
    Here is my issue.
    I created a BEx Query 0SD_C03 Cube with following fields
    Two Columns
    One Key Figure:                   Subtotal1
    One Restricted Key Figure:  Subtotal with restriction " Sales Organization 1000"
    Two Rows                             Plant, Sales Organization
    One Variable with Sales Organization.
    When I ran this query in BEx Analyzer I can see all Sales Organization values in prompt list, How ever when I created a Universe and ran a webi query I can see 1000 in the Sales Organization list.
    Is this because I have restricted Key Figure with Sales Organization 1000 in the query?
    I removed my Restricted Key Figure from my query and tried again this time I see some 10 Sales Oraganizations but I didn't see all available Sales Organizations. Does BO Universe LOVs restricte the list?
    Thanks
    Sasi

    Identical entry so this is being closed:
    duplicate:
    BEx Variable in Webi Report questions
    Ingo

  • Urgent!!! How to give a value to a BEx variable in the planning fuction?

    Hi all,
    does anybody know how can set variable's value in the palnning fuction (type exit) in IP?
    The two function modules in BPS which make this job don't work in the IP.
    thanks very much for any proposal.
    hongwei

    Hi,
    Reg the first part of the question, can you please explain how do you want to capture the variable for the custom planning function? Because, when I look at standard functions delivered by SAP, in the FROM CHANGE and TO CHANGE(for example copy function), we can select the BI variables or create new variables also.
    To pass the values to this variable from BEx Analyzer, we need to use the command range in BEx Analyzer and capture the values.
    I have used this approach to capture the BEx variable values into a FOX function using VARV function, but Im not pretty sure how to pass it to a custom planning function.
    Regarding the second part of the question can you pls look at FM :   RSPLSSE_PLSEQ_EXECUTE. I think you need to embedd your planning function into a sequence and call it with the above FM.
    You can also have a look at the ABAP program that is used to trigger a planning sequence by placing a breakpoint in any of the planning functions : "RSPLS_PLSEQ_EXECUTE" wherein you can pass the sequence name in the variant.
    Rgds
    Shyam

  • BEx Variable Input Parameter

    Hi everybody,
    I am doing a BEx report and I have created User Exit variables and Text Variables based on InfoObjects that exists in the InfoCube. But I am needing a Globla Variable, that is not related to the InfoObjects in the InfoCube; depending of the values of this variable, some claculated key figures will have a diferent behaviour.
    Please, how can I create a variable of this type? is it possible in Bex? if not, any suggestions?
    Thanks and Regards,
    Luis Jorge Castro

    Jorge,
       In the Variable screen, you are giving 1 or 2 or 3, you need to get the description for that. Can you tell where you created this Variable? on which info object you created? for that same info object maintain the Texts
    1:Equipment
    2: Physical units
    3: some thing.. etc.
    display this value with either Text or Key and Text.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • Where are the BEx variable stored

    Hi All,
    I have couple of doubts. I would appreciate, if some one can through some light on these.
    1. Where does all the BEx variables stored, if they are stored in BW, then in which transparent tables these are stored.
    2. Where does the properties of the BEx InfoObject in the BEX Query are stored, if they are stored in BW, then in which transparent tables these are stored.
    Thanks in advance,
    CK

    Hi Sudheer,
    Are you ready for have some fun?!? 
    With BW Analyzer loaded and one of your BW workbooks open in Excel do the following:
    First, launch the Visual Basic Editor.  You do this either on the Excel Menu Bar (Tools >> Macro >> Visual Basic Editor); or, by pressing Alt + F11.
    Be sure that the Project Explorer Window is visible.  If not, on the VB Editor toolbar select View >> Project Explorer; or, press Ctrl + R.
    Projects are listed alphabetically.  Probably the first object you see in the Project list is SAPBEX(sapbex.xla).  This is the BW Analyzer.  You can't open it, but you can explore it using the VB Editor Object Browser.  More about that later.
    For now, locate your workbook.  It will probably be named VBAProject(name of workbook.xls).  If there is a "+" to the left of the project name, click on the + to expand it.
    You will see at least two types of objects:
    + Microsoft Excel Objects
    + Modules
    Expand them both.
    Among the Microsoft Excel Objects, you will see worksheets, maybe charts, and the object for the workbook itself (ThisWorkbook).
    Each sheet has two names.  The first is the codename.  The second is the name you see on the tabs when you are in Excel.
    Notice that there are two more worksheets here than you see in Excel.  One of these has a "tab name" of SAPBEXqueries; the other is named SAPBEXfilters.
    There is nothing you can do in Excel to make these sheets visible.  They are not ordinary hidden worksheets. 
    There are two ways you can make them visible:
    1.  using the Properties Window
    2.  using Visual Basic code
    If the Properties Window is not visible, on the VB Editor toolbar select View >> Properties Window; or, press F4.  Double-click on the worksheet object to select it.  Then, change the Visible Property to Visible.
    Or, use this line of code (for example):
    Sheets("SAPBEXqueries").Visible = True
    to return it to its original condition, the VBA command is:
    Sheets("SAPBEXqueries").visible = xlSheetVeryHidden
    Now I must tell you that anything you do from this point on is not covered by your warranty.  Don't worry, you can't break BW.  But, you can create a beautiful report that stops working with the next system patch that gets installed.
    Now that you are looking at these sheets, you probably would like to have a guide as to what they contain.  I posted some of that a few months ago.  I can't locate the posting right now.  You can do a search on my name to find it.  Or, if you wait, I'll find it and post the link to this thread.
    But ... there is a better way than reading my old posting.  Try this ... refresh a query in Excel.  Then, come back to the Visual Basic Editor.  Select the BW Analyzer Object ...  SAPBEX(sapbex.xla).  Then, on the VB Editor menu, select Run >> Run Macro (F5); scroll down to sapbexDebugPrint and run that macro.  It will create an amazing workbook that tells you everything you could ever want to know about the query you just refreshed. (Including a complete list of valid OLAP fire commands.)
    By comparing the various worksheets in this amazing workbook with the tables in the very-hidden SAPBEXqueries worksheet, you can learn what just about every one of those tables is all about.
    But ... before you get too carried away with making changes to the values on those sheets ... I have found that I can do almost everything I need to do without ever needing to touch those very-hidden worksheets.
    What I use mostly are the API functions.  Some of these are listed in the BW documentation.  But, there are about as many API functions that are NOT documented.  To find the API functions ... in the VB Editor, select the BW Analyzer object ... SAPBEX(sapbex.xla).  Then, select on the VE Editor menu bar, select View >> Object Browser (F2).  Change the Library to SAPBEX (this does not work unless you have already selected the SAPBEX oject).  In the Classes column, scroll down to xBEXapi.  You will now see listed all of the API functions and subroutines.
    The Object Browser tells you ALMOST everything you need to know.  Most people need a few examples to get them started.  You can look at my postings here to find examples.  Or, just do a search on "SAPBEX".  Almost every hit will lead to a discussion and/or example of these API functions.
    When you have more questions, write back.
    - Pete

  • How to Install Business Content BEX Variables.

    Hi Experts.
    i want to install all the standard bex variables
    (exits, formulas) available in business content.
    when i go to the business content i see lot of variables
    of 0CALDAY which one to install ?. and even after installation of all none of them seem to appear in the BEX query designer?.
    Is there anything am missing?
    Thanks,
    Hari Anand.

    Hi,
    A little correction to Aby's reply.
    You don't have to have something like Billing date mapped to 0CALDAY in transfer rules.
    It's enough to have just 0CALDAY.
    The other dates (if you need them), like billing date, receiving date etc. are created as A REFERENCE TO 0CALDAY.
    It means that to all derivative dates you may apply variables created on 0CALDAY.
    You may not see all variables installed from a business content. -- Some variables are created on a particular infoobject and you can see those variables in the left panel, beneath this infoobject.
    There are also text and formula variable that might be independent from infoobjects. You can see them while creating a formulas in structures.
    Best regards,
    Eugene

Maybe you are looking for

  • SVG problems

    Recently I've encountered a few problems while working with Edge Animate. Firstly, I was importing SVG Files into Edge that I'd created in Illustrator. This was going fine until Edge stopped responding to my request of adding more SVG files. No error

  • Urgent!!! select methods problem!!!

    hi,all dose anybody have encounter such problem : if the xml nodes have prefix that the select methods can not work as well, the select result is null,but the xml nodes do not have prefix that the result will be right. i use the oracle xdk10.0 ,and p

  • How to install Apex on small business server with IIS already installed?

    I am building an Oracle Application Express application for a small not-for-profit and they only have a single small business server that is already running the microsoft IIS server. Can I install the Oracle Http server and run both the Oracle and II

  • Is there a DigiCamera that can take .mov video?

    Digital Cameras seem to take movies in not-QuickTime formats. From what I've seen, that is. Is there a Digital Camera that takes videos to .mov files? Or, hoping against hope, is there a Digital Camera that can take videos that are editable in iMovie

  • HT1270 Anyone have a MacBook Pro freeze with a beeping alarm sound. What caused this.

    Just wondering what caused my MacBook Pro to freeze and have a loud alarm sound. I just installed new memory.