Parameter LOV

I have a report parameter (an LOV) that has the following two options:
"PO"
"PO, CO"
I am currently using the following code in the report query Where Clause to filter for PO's.
AND (POH.ORDER_TYPE = (SELECT DECODE(:P_ORDERTYPE, 'PO', 'PO')
:P_ORDERTYPE is the parameter name.
My question is when "PO, CO" is selected how do I build the appropriate "OR" statement to append to the base Where Clause?

Ignore the question.
I resolved the issue by using a Lexical Reference in the Validation Trigger of my parameter.
Ken Thurston

Similar Messages

  • Problem opening workbook with parameter LOV

    hi,
    i have created a parameter LOV that contains a huge amount of data. i have set the query timing in discov admin as well as desktop so that it comes fine there.
    but when i try to open the LOV page in the workbook in viewer its giving me the error :- 500 internal server error.oracle.discoiv.beans.ParameterException: parameter lov timeout.
    is there any way i can set the query timings in viewer?

    Hi,
    Try changing the ItemClassDelay parameter in your pref.txt file on the server.
    Rod West

  • User parameter LOV sorting

    Is there any way to sort a parameter LOV in descending order? I can't find that option anywhere.

    Hi,
    Sreedhar is correct if the select generating the LOV was in descending order,
    If not it will just show the LOV in the order it was created.
    If the LOV is generated from a custom folder then change the order there,
    If not then you can create a new list of values and replace the existing one.
    You can also use the "alternative sort" to sort your list of values, there are a few posts here regarding that issue...
    Good luck

  • Forcing a user to only select from Parameter LOV list

    Hi,
    I suspect that the answer is no but I'd appreciate clarification on the matter. I am wondering if there is any way to prevent a user entering a value into a parameter field - I want them to only select from the parameter's drop down LOV list. This will apply to Discoverer Viewer but would like to know if it could be done for Plus ( or not ) as well,
    Kevin.

    Hi Kevin
    Try changing the item class property called Require user to always search for values.
    According to my notes: This is unchecked by default. If you check this, Discoverer will launch the Search dialog box whenever a user clicks on the list of values. Should you have a large list of values, you may want to consider turning on this optionto making the LOV box pop up automatically.
    I am not convinced this will make the pop-up come up but it's worth a try.
    I'd be interested in hearing how you get on.
    Best wishes
    Michael

  • Variable of Compound Characteristic - Crystal Parameter LOV issue

    Hi Experts,
    I have Characteristic with Compound Key in SAP BW 7.01 SP6. This Characteristic use to store the Purchase Order Item Line. The Compound Key is the Purchase Order Document.
    So I will have the following fields created for this Characteristic:
    Compound Key (Purchase Order Document) 5600001982, Purchase Order Item Line 10
    I created a Query for this Characteristic and I have the following display as result of this Characteristic:
    10 ...
    20 ...
    30 ...
    All works fine.
    Now I created the Crystal Report from this Query. When I display this Characteristic in Crystal Report, I have the following displayed as LOV  and in the prompt page where we use ?parameter
    5600001982/10
    5600001982/20
    5600001982/30
    This is happening for SAP provided default compounded objects such as "Depreciation Area".
    Is there any alternate to get the LOV for these parameters soted out.Please help
    Regards
    Mallik

    In the below thread Ingo agrees that this is expected bahvior, but this was replied long back and we want to check if it works fine with BW 7.01 Sp6 and BO XI 3.1 Sp3.
    SAP Integration Kits 3.0 with Crystal Report 2008

  • Oracle Report Parameter LOV

    Hi hussein,
    I have a customized Oracle Report for EBS 11i.
    My report sa "static" LOV and have static list of value
    1
    2
    3
    4
    5
    How do I register this LOV in the EBS 11i?
    I also have "select table" LOV. I know how to register this parameter in EBS using System Administrator > Application> Validation > Set
    I don not know the static one :(
    Please help....
    Thanks

    hi hussein,helios,
    I found this note in metalink:
    Subject: Re : LOV
    you can say .. two types: static and dynamic
    static or independent means, you have to hard code what all values will be there in lov. this hardcoding is done from app dev responsibility
    dynamic or dependent means, it will pick values at run time using some query from some table(s). so, if anything changes in table, it will reflect immediately in LOV. whereas in static lov, you have to make changes in value sets values explicitly. I am interest in "this hardcoding is done from app dev responsibility" , I do not know how to encode those static value. :(
    thanks

  • DISCVR PARAMETER -- LOV ON DESC BUT RETURN CODE VALUE

    HOW DOES ONE IN DISCVR PARAMETER DIALOGUE CREATE A PARAMETER (SIMILAR TO ORACLE REPORT BUILDER, PICK CODE AND DESC -- HIDE FIRST COLUMN) WHERE THE
    USER SEES THE CODE DESCRIPTION IN THE LOV BUT THE CORRESPONDING CODE VALUE IS WHAT IS RETURNED TO THE PARAMETER BIND VARIABLE ??

    And now Version 2.
    I didn't put this into the 1st post as the formatting goes bonkers.
    #>> Start of VERSION 2
      call function 'MY_FUNCTION_MODULE'
           destination RFCDEST
           starting new task 'taskname'
           performing receive_result on end of task
           tables
                orders_list          = t_orders_packet
                apo_orders_list      = t_apo_orders
                apo_resources        = t_apo_resources
           exceptions
                COMMUNICATION_FAILURE    = 1 MESSAGE MSG_TEXT
                SYSTEM_FAILURE           = 2 MESSAGE MSG_TEXT
                NO_ORDERS_SUPPLIED       = 3
                NO_PEGGED_ORDERS_FOUND   = 4
                ORDERID_CONVERSION_ERROR = 5
                OTHERS                   = 6.
      WAIT UNTIL results_received = 'X' UP TO 60 SECONDS.
    if sy-subrc is initial.   << Now this is always ZERO
      * do some stuff as RC was 0
    else.
    * log non-zero return code etc
    endif.
    FORM receive_result USING iv_taskname.
      RECEIVE RESULTS FROM FUNCTION 'MY_FUNCTION_MODULE'
           tables
                orders_list          = t_orders_packet
                apo_orders_list      = t_apo_orders
                apo_resources        = t_apo_resources
           exceptions
                COMMUNICATION_FAILURE    = 1 MESSAGE MSG_TEXT
                SYSTEM_FAILURE           = 2 MESSAGE MSG_TEXT
                NO_ORDERS_SUPPLIED       = 3
                NO_PEGGED_ORDERS_FOUND   = 4
                ORDERID_CONVERSION_ERROR = 5
                OTHERS                   = 6.
      results_received = 'X'.
    endform.                    "receive_result
    * < End of Version 2

  • Dynamic Parameter LOV Select Statement

    I have a parameter form with a value for the fiscal year and equipment ID. I want to populate the equipment ID list of values based on the fiscal year that is selected.
    My query for the equipment ID list of values would be SELECT EQPID,NAME FROM EQPLIST WHERE FY = :FY.
    When I tried to add this query to the list of values of the equipment ID parameter I get REP-0781: Bind variables are not allowed in the Select statement.
    Is there a way to dynamically generate the list of values select statement in a reports trigger?

    Hi,
    What version of Oracle Reports are you using?
    Unfortunately, it is a limitation of Oracle Reports to not restrict values based on other parameters - for sure until Reports 6i and I believe until the recent new versions.
    The other way to do what you want to do is to do it outside of Reports, if you have an Oracle Forms application. For example, you can create a simple Oracle Form that captures the Report parameters and then submits the report from the Forms. In Forms, you can implement the solution you are looking for - restricting values based on values of other parameters. In reports, you can't do that.
    If you have a few other reports that have similar requirements, then you can create a form to launch reports and submit all your reports from there after capturing all your parameters there.
    Venkat

  • Can I set the values number of the parameter LOV?

    Hi.
    Can I set a number of values in a report prompt LOV? Now is 5 values (All + 4 values of the query). I would like to have 4 o 3 values...
    Thank you, bye.
    R.

    Can you please restate your question? It is not clear you would like to get
    regards
    Jorge

  • REP-546: Warning: The value of restricted LOV parameter

    Hi,
    When i try to invoke my report from IE with paramform=no and i am not passing the parameter LEXXX_ENTXXXX in the URL, i am getting the below error,
    REP-546: Warning: The value of restricted LOV parameter LEXXX_ENTXXXX is not among the selectable values.
    but the same report is working fine if i invoke with paramform=yes.
    The Parameter LOV query for the parameter LEXXX_ENTXXXX is ,
    SELECT LGL.CY_LEXXX_ENTXXXX, COM.SHORT_NAME FROM LEXX_ENTXXX LGL, COMXXXX COM
    WHERE LGL.CY_LEXXX_ENTXXXX = COM.COMXXXX_KEY
    UNION SELECT 0, 'ALL' FROM DUAL ORDER BY 2 ASC
    Note: Restrict List to Predetermind Values and Hide First Column check boxes are selected
    Data Type of LEXXX_ENTXXXX is Number and size is 6.
    Please, help me in resolving the above error.
    Thanks in advance
    Thanks & Rgds,
    M T

    The value that you give to parameter LEXXX_ENTXXXX when you are submitting your report on the web is not amoung the values returned by the Parameter List of Values Query , and when the Parameter List of Values Query was created "Restrict List to Predetermined Values" check box was checked.
    In order to solve the proble you can :
    - provide a value to LEXXX_ENTXXXX that is amoung the values returned by
    Parameter List of Values Query
    or
    - uncheck the Restrict List to Predetermined Values" check box of the parameter.
    Regards
    Ionut S

  • Selecting an lov parameter value sometimes not passed correctly

    When selecting a value from an LOV parameter, sometimes the parameter value doesn't seem to get passed correctly to the data template query.
    For example, let's say I have the following LOV parameter called "risk":
    Some Risk
    New Risk
    Other Risk
    Last Risk
    When I select "Some Risk", I would get correct results and when viewing the "Data" xml, I can see the parameter with the right value:
    <RISK>Some Risk</RISK>
    But when I select "New Risk" the results are incorrect and the xml shows:
    <RISK />
    as if the value was not passed as the bind parameter value for the dataset query.
    Any idea what I'm doing wrong? Is this a BIP bug or is there a workaround?

    Hi, thanks for the reply.
    The LOV is of "SQL Query" type (not fixed data) and the values were retrieved from the database.
    Supposing this was the sql query for my "risk" parameter LOV:
    select dimvaltl.GENERIC_VAL_NAME
    from GENERIC_VAL_TL dimvaltl,
    GENERIC_TL dimtl
    where dimtl.GENERIC_NAME = 'Risk'
    and dimvaltl.GENERIC_ID = dimtl.GENERIC_ID
    order by dimvaltl.GENERIC_VAL_NAME
    And supposing this was the sql query in the data template dataset:
    select pdimv.ID
    from GENERIC_V pdimv
    where pdimv.NAME = 'Risk'
    and pdimv.VALUE in (:risk)))
    If risk is empty, obviously the query would not work. I noticed the xml generated sometimes show the selected parameter value and sometimes don't, as if BIP is not passing it to the dataset query as bind parameter value.
    Incidentally I have other lov parameters that works fine, the only difference I can think of is that for this LOV query I am doing a join instead of a simple select statement from one table.

  • Null value in parameter form.

    In parameter form I want to leave blank option in order to print a report for all the values in the parameter form. I am writing the query for the parameter LOV that it fetches the values and making a union with 'select to_char(null) from dual.
    I am getting a blank and the required output when the report is run using the report builder but the this blank space or null value disappears when the report is run on application server 10g. It seems to be a small problem but I am not able to get a solution for this. Please, suggest something.

    Hi,
    Instead of a Null, why not use '-ALL-',
       union all
       select '-ALL-'
       from    dualthen in your query, you will have,
    where column_1 = decode(:param1, '-ALL-', column_1, :param1) that way it will be more clearer for the users that if they picked '-ALL-' in the LOV that they will get all records and will eliminate the problem you are having with null when you deploy your report in application server.
    -Marilyn

  • Two LOVs in same report customization form causes problems

    My report includes two parameters which are set by the user using dynamic LOVs in the customization form. The report used to only have one parameter and this worked fine. After including the second one only one of the LOVs work as they should. The second one doesn't trigger a value to be sent to the report. Working separately the second parameter/LOV also works as it should.
    The code:
    SELECT distinct ID, STILLING, F_DATO, STILLING_NAA, DATO
    FROM JOBBSOKNADER
    WHERE STILLING in :lov_stillinger
    union
    SELECT distinct A.ID, A.STILLING, A.F_DATO, A.STILLING_NAA, A.DATO
    FROM JOBBSOKNADER A, JOBBINT_KOBL B
    WHERE A.ID = B.JOBBSOKNADER_ID
    AND A.STILLING = '(apen soknad)'
    and B.INT_ID in :lov_interessefelt

    Hi,
    Are you trying to use dependant LOVs i.e second LOV depends on the value selected in the first LOV. If you are trying that, then reports does not support that. You have this facility only in forms.
    If I have understood wrong, then please give me the query you used for the LOVs
    Thanks,
    Sharmila

  • Dependent LOVs in Discoverer Admin

    Hi All,
    Can we create dependent LOVs in Discoverer. If yes can anyone throw some light that.
    regards,
    gt1982

    Well, let me try to clarify what Tamir said. I think you probably will need to do some setup work in Administrator. I am assuming that you want to do something like this in a worksheet - The user first clicks the LOV indicator on the Region parameter and picks a region from the Region LOV (say they pick the East region value), and then based on that region value, when they click on the City parameter LOV icon, the list of cities they see is filtered so that they only see cities in the East region (say New York City and Boston). To do this correctly in a worksheet, you need to define an Item Hierarchary in Discoverer Administrator. The two parameters must have some kind of relationship in the database to make this work.
    Then once you have the item hierarchy defined, the rest of your work is in Discoverer Plus. You create the first parameter in the worksheet. In my example, you would create the Region parameter first. Next you would create your second parameter (in my example, that would be the City parameter). When creating the second parameter, that is when that section on the parameter window ("Do you want to filter the list of values for this parameter") comes into play. You will want to select the "Filter the list of values based on the selected conditions" option, and then find the condition name (for the Region parameter created condition) and select that condition. The term Oracle uses for this is "Cascading Parameters". So if you search on that term in the Discoverer Plus user guide, that will give you more information on this process.
    Now, you do have to be careful. Ideally the folder with the relationship between the two parameters is based on a master table, not a detail table. If based on a detail table, you can run into performance problems when clicking on the LOV icon for the second parameter. The system may take forever to try to build that second LOV.
    But the process does work. I have used it a couple of times.
    Hope this helps a bit. Good luck.
    John Dickey

  • Discoverer Viewer Issue - IE7 - Parameter Popup Fails (Oracle JS issue?)

    OracleBI Discoverer Version 10.1.2.55.26
    I have created a report that has several parameters, each of which can be entered directly or by clicking a button to bring up a parameter selection popup. Each parameter popup displays an associated LOV.
    This works great in Discoverer Plus. It also works well in the HTML-based Discoverer Viewer using IE6. It does not, however, work in IE7.
    What happens:
    When using IE7 with Discoverer Viewer, I access a report with parameters and then click on the "flashlight" icon to the right of a parameter field to bring up the parameter popup. IE7 then:
    - Changes the cursor to an hourglass
    - Displays the following in the status bar: "Done, but with errors on page."
    - Stops doing anything else, leaving the cursor as an hourglass
    - Popup never shows up
    I assume that the cursor is stuck as an hourglass since the flashlight button must have a JavaScript "onClick" handler that executes a function to change the cursor prior to opening the new child window with the parameter LOV...and the cursor gets stuck when the JavaScript routine encounters an error. The cursor isn't my issue, but it is also annoying since my users will assume that the browser is doing something...and it is not.
    Regardless, if you click the status bar message, it displays the following JavaScript error:
    Line: 3609
    Char: 1
    Error: Object doesn't support this property or method
    Code: 0
    Oddly enough, if you then ignore the situation and click the "Go" button to run the report (using the cursor stuck as an hourglass), the report runs and as soon as it completes, the popup for the parameter THEN appears.
    As I said, the issue is with IE7 only. It works fine in IE6...and I don't have the popup blocker enabled in IE7.
    Any ideas? Thanks!
    Steve

    Hi
    Yes' you're right, the compatibility is for IE8 to IE7 and it does work very well - which I know is a red herring.
    I'll keep looking through my notes.
    From all of my notes, IE7 is supposed to work just fine with 10.1.2.3 (your version). I've been using IE7 for quote some time and I've never seen a JS error coming up in Viewer - Plus yes and many times.
    Some things I would try at this stage are:
    1. Delete your Java cache
    2. Make sure no popups are blocked
    3. Make sure cookies are enabled
    4. Try Mozilla and see if you get the same issue - will indicate if a machine issue or browser issue
    Best wishes
    Michael
    Edited by: [email protected] on Sep 13, 2010 3:54 PM

Maybe you are looking for