Handling BW variables/BO prompts

Hi,
What is the best-practice way of handling prompts/input variables in a BW/BO scenario when it comes to the time characteristic/dimension?
I want to report on
Cost Center
Company Code
Value Current Fiscal Period (user input)
Value Year to date (based on the current fiscal Period)
Value Last year same period (same period(s) as the two values mentioned above)
I want o be able to modify the chosen time period by using input control i WebI, e.g. without doing a new search in the database, only by using the data that is already in the cache.
I'd appreciate input on best practices for this scenario.
Thanks!!
Regards,
Fredrik

Best practice would be to design the report using classes defined in the Universe with an exported list of values.  This will limit database traffic to refreshing the LOV and the reports will bind to that.

Similar Messages

  • Handling special characters in prompt

    Hi,
    I have a prompt on employees who should be active in a particular cycle of the year, which is also selected using a prompt. Now I use a presentation variable to capture the cycle and use it in the sql query of the employee prompt.
    The problem is the cycle value has a "degree" symbol like "2° Cycle 2010" and so the employee prompt is throwing a syntax error - [nQSError: 27002] Near <°>: Syntax error
    Could anyone please help me in handling this.
    Thanks,
    Ronnie.

    This is the query I used for Employee prompt based on Cycle filter:
    SELECT "Current Employee"."Employee Full Name" FROM "Customer" where "Time"."Cycle"=@{Ciclo}{valueof(CURRENT_CYCLE)} and "Objective Measures"."# of Objectives" > 0
    This is the complete error message that I get:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <°>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT "Current Employee"."Employee Full Name" FROM "Customer" where "Time"."Cycle"=2° Ciclo 2010 and "Objective Measures"."# of Objectives" > 0
    Similar to this I tried out Employee prompt based on Year Filter which worked fine:
    SELECT "Current Employee"."Employee Full Name" FROM "Customer" where "Time"."Year" =@{Anno}{'valueof(CURRENT_YEAR)'} and "Objective Measures"."# of Objectives" > 0

  • Using @variable('BOLanguage') prompts in webi documents

    Hello,
    I am using @variable('BOLanguage') in the universe to handle multilinguism.
    Unfortunately, when running my webi document, the variable prompts whereas it is a BO variable.
    On top of that, let us suppose, I enter "test" as a value for this variable, when it is evaluated, the variable is evaluated as 'fr' or 'en' but not as 'test' which proves that this variable should not prompt.
    Does anyone have any idea about how to prevent 'BOLanguage' from prompting.
    Thanks in Advanced
    Sylvie

    Oh, ok that's interesting. I went back to find the documentation but couldn't find anything specific to BOLANGUAGE, just to @Variable in the Universe designers guide.
    http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_designer_en.pdf
    It mentions entering -var parameter at the command line when starting BO to get access to other variables, and the syntax to use for @variable. It also mentions language variables like 'Preferred Viewing Locale', but nothing about 'BOLanguage'. Anyway, looks like you have answered your own question.
    Thanks

  • Dsc module modbus server handling uint8 variables

    Hello!
    I have a problem with handling Modbus uint8 variables in the dsc module . Unit8 Shared variables
    are available in labview but Modbus i/o server Unit8 variables are not:
    http://zone.ni.com/reference/en-XX/help/371618J-01/lvmve/dsc_modbus_using/
    In our controller we split some 16 bit modbus registers into two 8 bit variables to pack some more usefull data in there. 
    All of my shared variables are running nicely in the shared variable engine but I've no way of
    easily binding them to my Modbus i/o server uint8 variables easily.
    Any ideas?
    I like the auto-scaling logging and binding of the DSC module shared variables
    so I want to avoid some manual labview processes.
    I want to view all shared variables in my front ponel at run time. I have 300+ variables so I'm trying to avoiding manual one-off hacks.
    James

    jamesy777, 
    The reason Unit8 variables are not available in the Modbus I/O sever is the nature of the I/O server data types compatible with the registers. If you’re writing to two registers, you can just read those two separate registers as U16s in LabVIEW. Otherwise, if you’re writing to the upper and lower half of the register, you can split the register into its 8-bit halves using the Split Number function in LabVIEW.
    Split Number Function - http://zone.ni.com/reference/en-XX/help/371361L-01/glang/split_number/
    Regards, 
     

  • Presentation Variable in prompt, then BIN

    Hello,
    I have a 4 presentation variables, related to date which will be entered by the user (prompted). Can I use the presentation variables to setup the BINS? I have tried it and it just doesn't quite like it.
    Example,
    We a field called Issue Date
    Now, I want to check and compare 2 different Incident Date ranges.
    Therefore I have 4 presentations variables which hold the start and end date for each set. So, if I put Start date -01-05-2010 end date 10-05-2010 it will look into issue dates between this 2 dates. The issue is that the start and end date are entered by the user. So when I am creating a Bin I get a couple of errors:
    1. filter Editor Template not found on page
    2. nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-00 is out of range. (HY000)
    If anyone can shet some light into how can I resolve this. I will highly appreciate it .
    Thanks.

    Hi,
    Yes you can use the presentation variable in the prompts.
    But first check if the presentation variable is getting assigned where you have called in the physical query generated. In Manage session-->view log.
    Try using a single quotes in the beginning and ending of the variable otherwise.
    And for the default selection, try building a dynamic variable in the rpd and call it in the prompt and check.
    Hope this helped/ answered.
    Regards
    MuRam

  • WEB Application / Dynamic variable input / Prompts

    I've defined a variable on characteristic Currency with the following definition:
    Processing by              : User Entry/ Default Value
    Variable represents        : Single Value
    Variable entry is          : Optional
    Ready for input            : yes
    Can be changed in query nav: yes
    Default Value              : EUR
    This variable ist used in "Currency Translation" as "Target currency" (variables entry: yes)
    The query is used in a Web-Report that performs the following command by selecting currencies from a checkbox:
    url=SAP_BW_URL_Get() +"&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=SL_CURR&VAR_VALUE_EXT_1=";
    url=url+value;
    (value is the code of the selected currency)
    Everything works pretty good, but opening the web-report I get a prompt window for the variable. How can I avoid this ?
    Changing the variable property <Ready for input : no> causes the effect that the dynamically changing of the variable doesn't work anymore. It seems that in this case always the default value of the variable is taken.
    The application should use the default value while opening the report, afterwards it should be possible to set the variable dynamically.
    Thank you very much for your ideas !!

    Hi Stefan,
    you can activate/deactivate the variable screen with parameter "Force Variable Screen" in your web template.
    bye

  • Using variable in prompt label

    Hi,
    Does anybody now if/how you can use a session variable in a prompt label? I want to make a multiligual prompt.
    regards
    John
    Edited by: John Minkjan on Apr 15, 2009 4:28 AM

    Stijn,
    That did the trick!
    I will put it on the blog ASAP.
    EDIT: http://obiee101.blogspot.com/2009/04/obiee-multi-lingual-prompt.html
    regards
    John
    http://obiee101.blogspot.com/
    Edited by: John Minkjan on Apr 15, 2009 10:44 AM

  • How to handle empty variable in BPEL Assign.

    Hello ,
    I am using SOA 11g R1
    I have created one Human task with task Details. Also i am assigning the Usercomments/task/comments to onw of my variable, but if I dont provide the comments from worklist comments section, and approves the task, My Assign is giving error as it is empty. So i want to know is there any function in BPEL which can handle Empty string.
    Thank you,
    Sandeep

    By using this type
    bpws:getVariableData('Invoke_DB_WorkOrderNumber_DB_WorkOrderNumber_OutputVariable','OutputParameters','/ns10:OutputParameters/ns10:P_Name')
    !=''
    also i cant give counts because before comparing accessing variable itself gives empty <message fault > error.
    I am still getting selection failure fault as my comments is empty (i..e I am not giving comments)
    does bpws:getVariableData() itself try to access the given parameter and populates empty error.?
    I tried
    bpws:getVariableData('AssigneeApprovalProcess_1_globalVariable','payload','/task:task/task:userComment/task:comment') !=''
    string-length(bpws:getVariableData('AssigneeApprovalProcess_1_globalVariable','payload','/task:task/task:userComment/task:comment') )>0
    but same error still.

  • Variable in Prompts instead of a Date column

    Hi,
    How do I create a presentation variable of type date to use it in the prompt? I do not want to use the date column, but use a variable to pass the start date and end date. This is because, I have two views in a report. Both the views accept different date columns as input. Can someone please guide me here to solve this issue?
    Thank You,
    AK

    Hi,
    I was able to pass values to two different views from the date prompt. The only issue I have is with the filter.
    This is what I have in the filter:
    VariableExpr = myPresentationVariableName
    default = valueof(myRepositoryVariableName)
    The report runs fine, but I see errors when I click on 'Results' tab in Answers. The errors say, "Expecting datetime value but got valueof(myRepositoryVariableName)"
    I even tried to Cast it to date which says CAST(valueof(myRepositoryVariableName) AS DATE). But it did not work.
    Am I missing anything here? The errors appear only in Results tab of Answers. When the report is run through the dashboard, it runs just fine.
    Thank You,
    AK

  • Unable to set presentation variable to prompt default.

    i am tying to apply prompt default value as some presentation variable.
    as i want to set depending on the value selected by Same prompt.please help me.
    or else help me to write sql statement with presentation variable(of other prompt) to set default.
    Edited by: user12078402 on Oct 28, 2009 5:21 PM

    Okay, I just tried something that works, but it's a workaround that may or may not work for you depending on the number of values in the column.
    Anyway, try this:
    1) Create your first prompt and save it to a presentation variable (PV), say prompt1
    2) Use the same column and create another dashboard prompt. In this one however, change the "Show" to "SQL Results."
    3) Now after the SQL in the window, add WHERE tablename.columnname IN ('@{prompt1}', 'value1','value2', etc...)
    Here is the drawback, you have to list the values explicitly (unless someone knows a better way), but this will default the second prompt to the first prompt's selected value while allowing the user the choices of the rest of the column.
    Not the prettiest solution, but it does work...

  • Creating Variable for prompt

    Hi,
    I have a requirement where i have to create a variable based on a specific requirement.
    A prompt is placed on the year field. Now two variables should be created
    1.The Sales Revenue of the year that is selected by the user, and
    2.The Sales Revenue of the previous year for the year that is selected by the user.
    Please Help
    Thanks and Regards,
    Raja.N

    Hi  Rohit,
    I practiced the same formulas on eFashion. I used [year], [sales revenue] objects and prompt with equal to condition
    Cyear =UserResponse("Enter Year:")
    Pyear =FormatNumber(ToNumber(UserResponse("Enter Year:"))-1 ; "####")
    Csales =[Sales revenue] Where ([Year]=[cyear])
    Psales =[Sales revenue] Where ([Year]=[pyear])
    I created the above 4 variables(all are measures), but i couldn't get the data for 'Psales'. You said, you practiced on eFashion and you got the result. Please let me know if i do any mistakes.
    Looking forward to your reply.................
    Thanks,
    Shahin.

  • Variables in Prompt Label

    Hi,
    Is it possible to use any variables(session/repository/presentation) in Prompt Labels?
    Thanks,
    Satheesh

    Hi sateesh,
    You can use presentation variables in your dashboard prompts.How to use it you can follow this
    http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
    UPDATED POST
    I suppose no we cant do it,never i tried or heard of it.Anyways got a blog from john
    http://obiee101.blogspot.com/search/label/VARIABLES
    hope answers your question.
    Cheers,
    KK
    Edited by: Kranthi.K on Mar 24, 2011 1:21 AM

  • @Variable vs @Prompt

    Hi,
    My deski has a free hand sql and uses @Variable.The issue is that when i run the report from DESKI it prompts the user to type the date but when i run the same report from infoview it prompts the user to select the date from a calender.How can i make this calender option disabled? I think it is ease to do this with @Prompt as it has the option (Free and Constraint) but how to overcome this issue in @Variable?

    Just ask for the date in a character string way, then convert it to date.
    So in oracle syntax
    use
    datecolumn = to_date(@variable('type date in the format dd-mm-yyyy'),'dd-mm-yyyy')
    i.s.o.
    datecolumn = @variable('give date')
    the latter will trigger the calendar dialogue...
    Hope this helps

  • Issue with presentation variables, dashboard prompt and filter

    Dear Guru's,
    I have a question about constraining a request with presentation variable set by a dashboard prompt. I have a dashboard prompt, that stores its value in a presentation variable . The prompt is about region. When the dashboard opens, the default of the prompt is all choices and it needs to show my reports with "All Choices". I've created the following filter on my two reports on the dashboard:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    One report is just the column "Dim Student"."Region" (to see if it works) and with this report the above filter works just fine. When nothing is prompted it shows "All Choices" when a choice is made the report responds accordingly.
    BUT
    The second report on my dash with the same region column, but extended with some time dimension columns and a measure gives an error which I'm not able to solve.
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for ToDate(# Feitelijke Instroom:[DAggr(Feit Instroom en Uitstroom Opleidingen.# Feitelijke Instroom by [ Dim Tijd.Maand Omschrijving, Dim Tijd.Maand Nummer, Dim Tijd.Jaar, Dim Kwalificatie.Kwalificatie Niveau, Dim Leerling.RCBREGIO Regio] )], [Level JAAR]) are compatible with the detail filter [Dim Tijd.Maand Nummer = 3, Dim Tijd.Jaar = 2010].+
    +(HY000)SQL Issued: SELECT "Dim Tijd".Jaar saw_0, "Dim Tijd"."Maand Nummer" saw_1, "Dim Tijd"."Maand Omschrijving" saw_2, "Dim Kwalificatie"."Kwalificatie Niveau" saw_3, "Dim Leerling"."RCBREGIO Regio" saw_4, "Feit Instroom en Uitstroom Opleidingen"."# Feitelijke Instroom Cumulatief" saw_5, REPORT_SUM(saw_5 BY saw_0, saw_1, saw_2) FROM repos_x WHERE ("Dim Tijd".Jaar = 2010) AND ("Dim Tijd"."Maand Nummer" = 3) AND (("Dim Leerling"."RCBREGIO Regio" = 'Noord-Oost') OR ('Noord-Oost' IS NULL)) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4+
    While the exact same report but without the "or '@{variables.GILLES}' IS NULL" doesn't throw any errors but doesn't show the "all choices" by default.
    The ultimate goal to achieve is to build a dashboard with several reports from several subject areas with one single prompt that opens default with "all choices" and constrains the reports accordingly.
    Any help is highly appreciated.
    Kind Regards,
    Gilles

    Phani,
    I know "All Choices" is a special value and that it doesn't represent NULL. My filter construction seems to work fine.
    My filter condition:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    When it's set by the prompt it filters the request accordingly (first condition evaluates to true), when it's not set the second condition evaluates to true and shows all the results (or it's not filtered).
    The problem is that it doesn't work when time dimensions are combined with this filter. Then it throws the error mentioned in the first post.
    By the way: your suggested solution doesn't work.

  • Using Presentation variables in Prompt Default using SQL Results.

    I have set a presentation variable in a prompt(say 1st prompt). In the 2nd prompt, using default option, when I try to reference this variable in SQL Results, I get this error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)
    The syntax used for SQL is:
    SELECT <tab>.<col1> FROM <subject area> WHERE <tab>.<col2> = @{variables.myvar}
    Note: However the same SQL works fine in SHOW option.
    Thanks in advance..
    Edited by: user457687 on Feb 27, 2009 3:13 PM
    Edited by: user457687 on Feb 27, 2009 4:49 PM

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

Maybe you are looking for

  • Nomachine NX/FreeNX, can't get 3D accelearation support for Virtualbox

    Greetings to everyone! I have a problem, which hopefuly someone knows how to solve? I've installed everything I needed for one small headless testing server based on Arch linux (x64, kernel 2.6.32 and X.Org X Server 1.7.3.902 (1.7.4 RC 2)), and have

  • Statement of Last Billing Cycle's Calling/Texting Details?

    How can I just get a report of last month's (last billing cycle's) usage details for calls and text messages ~ just looking for basics like phone numbers, dates, times for texting and calling.  I can't seem to access that online now? Thank you.

  • Patching mid tier and infrastructure tiers.

    Greetings!!! I am having some questions on patches and hope someone can help me here. We have two Oracle Application Server machines both on Windows 2003 servers 32-bit and both are on 10.1.2.0.2 release. The first machine is hosting HTTP Server, For

  • Java Swing - save JPanel as GIF/JPEG.

    WE are using Java swing to draw graph(Genes, SNP ,repeats etc related to bio-informatics).text files we are using are quite big eg- more than 25 MB. first it makes the process slow.One of our problem is to save whatever "we draw as an image file(GIF/

  • How to get details by clicking the commnd link

    hi, iam rajesh, iam going to develop a forum as part of our project my problem is when i click on the command link of topics i have to get the details of particular topic for example like our forum please guide me for my problem we are using JSF,ADF