Query range of values

I've been creating a query screen for users using a QBE report. Is there a way I can have the users query using one value or a range of 2 values for a field?
Thanks,
Hope

If you don't need the other features of QBE reports (updating, deleting etc) then you might want to consider using a SQL report with a query like
select * from scott.emp where deptno between :dept1 and :dept2
The customization screen allows you to enter values for dept1 and dept2.

Similar Messages

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • IChart & Fixed Query /w scooter values in legend (xMII 11.5.1)

    Hello all, this is my first post here and I hope that I can get some help.
    Environment Details:
    Server: Windows 2003, xMII 11.5.1, Java Plugin 1.4.2_13
    Client: Windows XP, IE6, Java Plugin 1.4.2_13
    My problem is that I cannot get scooter values to show in the legend with a simple iChart & Fixed Query.  At least not without more problems.  Let me explain...
    The following chart & query does not show scooter values in the legend (values are shown in the upper left hand corner for the selected item though):
    <applet name="ProcessDataApplet" height="421" width="1259" code="iChart" archive="illum8.zip" codebase="/Illuminator/Classes" "mayscript="true">
    <param name="Mode" value="FixedQuery" />
    <param name="QueryTemplate" value="Allvac/AMP/QueryTemplate" />
    <param name="DisplayTemplate" value="Allvac/AMP/DisplayTemplate" />
    <param name="Server" value="MONROE_VAR_ARMS" />
    <param name="Query" value="SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= '02/27/2008 03:21:22' AND [TIMESTAMP] <= '02/27/2008 15:14:34' ORDER BY [TIMESTAMP] ASC" />
    <param name="RowCount" value="8558" />
    <param name="ChartType" value="Line" />
    <param name="AxisValueColumn" value="TIMESTAMP" />
    <param name="XAxisFontSize" value="10" />
    <param name="LegendWidth" value="40" />
    <param name="LegendFontSize" value="10" />
    <param name="GlobalServerScaling" value="false" />
    <param name="ZeroBasedScale" value="true" />
    <param name="UseScreenResolution" value="false" />
    <param name="EnableDoubleClickRefresh" value="false" />
    <param name="ShowMouseTracking" value="true" />
    <param name="ShowScooter" value="true" />
    <param name="AutoScale.1" value="true" />
    <param name="Decimals.1" value="2" />
    <param name="AutoScale.2" value="true" />
    <param name="Decimals.2" value="2" />
    <param name="MinRange.3" value="0.00000" />
    <param name="MaxRange.3" value="0.40000" />
    <param name="Decimals.3" value="2" />
    </applet>
    I went one step further to see if I could get the scooter values shown in the legend.  I modified the query to use the StartDate & EndDate placeholders like so:
    SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= [SD] AND [TIMESTAMP] <= [ED] ORDER BY [TIMESTAMP] ASC
    I also added my initial StartDate & EndDate parameters:
    <param name="StartDate" value="02/27/2008 03:21:22" />
    <param name="EndDate" value="02/27/2008 15:14:34" />
    NOW the scooter values are shown in the legend, which is great, but all of a sudden the zoom is broken.  When I select an area to zoom and then click the zoom button, it zooms to a completely different area of the chart.  This is worse than my original problem.
    Can someone please help me out with this?  I have a feeling I'm leaving out something simple, but I can't find it.
    By the way, my display template and query template used in this example are empty so that I could show all parameters to you.
    Thanks,
    Bryan

    I removed scaling and accuracy parameters.  I also removed some parameters that controlled styling.  I added global auto scaling. 
    Now X & Y are updating properly on zoom.  Although unzoom isn't working for start date and end date.  They stay at the zoomed date.  The post data also shows the zoomed dates being sent to the server after unzoom.  The Y range updates properly on unzoom.
    Here is my updated applet html:
    <applet name="ProcessDataApplet" height="421" width="1259" code="iChart" archive="illum8.zip" codebase="/Illuminator/Classes" "mayscript="true">
    <param name="Mode" value="FixedQuery" />
    <param name="InitialUpdate" value="true" />
    <param name="QueryTemplate" value="Allvac/AMP/QueryTemplate" />
    <param name="DisplayTemplate" value="Allvac/AMP/DisplayTemplate" />
    <param name="Server" value="MONROE_VAR_ARMS" />
    <param name="Query" value="SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= [SD] AND [TIMESTAMP] <= [ED] ORDER BY [TIMESTAMP] ASC" />
    <param name="RowCount" value="10000" />
    <param name="StartDate" value="02/27/2008 03:21:22" />
    <param name="EndDate" value="02/27/2008 15:14:34" />
    <param name="ChartType" value="Line" />
    <param name="GlobalAutoScale" value="true" />
    <param name="UseScreenResolution" value="false" />
    <param name="ShowMouseTracking" value="true" />
    <param name="ShowScooter" value="true" />
    <PARAM NAME="Trace" VALUE="true">
    </applet>
    This problem isn't making any sense to me.  The documentation makes it sound like showing the current values in the legend is as easy as setting ShowScooter = true.  This wasn't the case for me though.  I had to use the [SD] and [ED] placeholders in my fixed query before the values would show up in the legend.  But then zooming breaks.  It looks like we're heading in the right direction to get the zooming fixed, but at the cost of being able to scale each pen.
    The first thing you said to me in your first post was that I'm using a 3+ years old version of xMII.  Are you saying there is a good chance this is a bug?  I was pretty convinced from the beginning that this problem is a bug.  The customer I am working for set me up with an xMII 11.5.1 server because that is what they are using in production.  Is there an online document with a list of bug fixes between versions?  If this is a known bug in 11.5.1 then maybe I can get the go ahead to upgrade.

  • How to do query range

    1. How to do query range with struts + Jsp in jheadstart.
    2. I want to use query range with between operator in find page.
    could you help me answer this question.

    Hi,
    The JAG does not currently support this feature for JSP's, but it is quite easy to add this functionality post-generation.
    Here are the steps, illustrating how to set up a range query using employee sal:
    In the Find JSP page:
    1. Rename the property FindEmployeeSal to FindEmployeeSalFrom.
    2. Add another form field based on property FindEmployeeSalTo.
    Here is example snippet of your find JSP page after you have applied steps 1 and 2 (changes in bold):
    <tr>
    <td class="prompt" nowrap="nowrap">Sal between</td>
    <td nowrap="nowrap">
    <html:text name="FindEmployee" property="FindEmployeeSalFrom" size="7" maxlength="7"/>
    and
    <html:text name="FindEmployee" property="FindEmployeeSalTo" size="7" maxlength="7"/>
    </td>
    </tr>
    In the Struts-config, go the the definition of the FindEmployee form bean:
    3. Rename property FindEmployeeSal to FindEmployeeSalFrom
    4. Add property queryOperator with value "gt" (greater than) to FindEmployeeSalFrom
    5. Add new form bean property FindEmployeeSalFrom, set the persistentAttribute to "Sal" and the queryOperator to "lt" (lower than).
    Here is the snippet of your from bean after you have applied steps 3 to 5 (changes in bold):
    <form-property className="oracle.jheadstart.controller.struts.config.JhsFormPropertyConfig" name="FindEmployeeSalFrom" type="java.lang.String">
    <set-property property="persistentAttribute" value="Sal"/>
    <set-property property="queryOperator" value="gt"/>
    </form-property>
    <form-property className="oracle.jheadstart.controller.struts.config.JhsFormPropertyConfig" name="FindEmployeeSalTo" type="java.lang.String">
    <set-property property="persistentAttribute" value="Sal"/>
    <set-property property="queryOperator" value="lt"/>
    </form-property>
    That's all!
    Steven Davelaar,
    JHeadstart Team.

  • Report using either query or direct value

    Hi,
    I'm using Reports 6i.
    I'm having a report in which most of the content is static text. only 1 or 2 values i'm fetching from database to fill up the content.
    I have a requirement like, if the user directly supply this value, then i have to run this report with the provided value without querying.
    In case they dont suppy the values, then the report should query and take values from the database.
    Whether such a report is possible?
    Thanks
    Divya

    Hi,
    Thanks for the reply.
    But if P_Param is not null then the report should take the parameter value and run the report.
    Suppose my report contents is like this
    This is a test report run by USERWhere user is the field.
    If i supply user say as 'Divya' , then i should get the output as
    This is a test report run by DivyaIf i didn supply user, and instead another parameter say id is supplied, then it should query and take the username and run
    Both should happen in single report.
    As you suggested, if the user param is null, then nothing comes.
    This is just a sample case i told. my original req involves more than one param
    Thanks

  • BW Query variable default value put in Crystal report variable question

    Why BW Query variable default value put in Crystal report variable for BO InfoView to open crystal report.
    I using Analyzer to open bw query,variables had default value ,but crystal report can't had variable default value ,and can't search variable  value.
    pho:
    [http://file.itpub.net/f/e38876ad4f6efb7e73980488e7d71f8d/4ae940e9/day_091029/20091029_2b04da1232144feba180OrB23SNvXtoT.gif/p/1.gif]
    [http://file.itpub.net/f/d93ddfe61e0eaf80429726c61f1a02ff/4ae940e9/day_091029/20091029_3211ffe04bf0302fbab5FRKnbwmH80p7.gif/p/BW_QUERY_Crystal.gif]
    Edited by: flying on Oct 29, 2009 8:20 AM

    I Know what to do .
    but Crystal report date variable value are Garbage characters "###".
    PHO:
    [http://file.itpub.net/f/39a8510104476707ae21c945db93ecba/4ae97949/day_091029/20091029_32dcbb7e7d99141483aesJ9KBJHXN0Kj.gif/p/2.gif]

  • How do I select a range of values in MySQL using a drop down menu

    Hi,
    I have a database of picture frames that have a value of
    frame width. I want to be able to select a range of values (i.e.
    .50" to 1") instead of each and every value (i.e. .50", .56", .76",
    etc.). I have a drop down menu (mnuWidth) with 5 ranges (see
    attached code).
    Each selection has a value from 1 to 5 indicating the range I
    want to search. In my results page I have let DW set up a recordset
    (see attached code)
    Can anyone tell me how to get this to choose a range instead
    of just the value entered by my menu?
    Thanks in advance.
    Tom

    I have been growing fond of lookup tables. Your lookup table would have your numbers in one column and the values you want returned in the next.
    Lookup table
    item
    Name
    1
    a
    2
    b
    3
    c
    4
    d
    5
    e
    6
    f
    7
    g
    8
    h
    9
    i
    Input table
    input
    Name
    1
    a
    B2 and copied down:
    LOOKUP(A2,lookup::$A$2:$A$11,lookup::$B$2:$B$11)
    Caution: Lookup will return the closest value so it it looks for "10" in this example it will return "i"
    If you don't want to see the error messages from blank inputs, wrap Lookup in IFERROR.
    hope this helps
    q

  • Can we input range of values in the Function Module CONVERSION_EXIT_MATN1_I

    Hi all,
    Can we in put range of values in the FM 'CONVERSION_EXIT_MATN1_INPUT'
    Like If I am inputting s_matnr which takes range of material number based on selection screen input.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       EXPORTING
         INPUT              = s_matnr
      IMPORTING
        OUTPUT             = s_matnr
      EXCEPTIONS
        LENGTH_ERROR       = 1
        OTHERS             = 2.
    Can this work?
    Thanks,
    Debrup.

    hi do like this...
    loop at r_matnr .
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
    INPUT = r_matnr
    IMPORTING
    OUTPUT = v_matnr
    EXCEPTIONS
    LENGTH_ERROR = 1
    OTHERS = 2.
    itab-matnr = v_matnr .
    append itab .
    endloop .

  • Read Query String Parameter Value in SSRS

    Hi,
    We have Project Server 2010 and Sharepoint Server 2010 env and using SSRS 2008 R2 for reporting purpose in Native mode.
    Here I am displaying the SSRS Project report in Project Server page using Report Viewer web part like below.
    Here I want to read projuid query string parameter value (Highlighthed above in URL ) in SSRS by using any way, so that I can pass that
    projuid value in my SSRS report parameter to filter and make this report dynamic.
    Right now I have to select the ProjectName (Label) which passes ProjUID
    as value from the Parameter, but I want it should read the projuid
    from URL so that this reports will display the project the data for the opened Project automatically
    Thanks and let me know in case we can achive this using OOTB or some custom functions.

    Hi,
    For the report parameter, you can get the value from database query or some embedded funcitons etc. or even some customerized function.
    You may consider to create your own code for the report to read the projuid from application or URL. The customer code can be used to get the values from the applicaiton or from the url etc. Then report can call the customer code function to get the value.
    refer link
    https://technet.microsoft.com/en-us/library/ms155798(v=SQL.100).aspx
    https://support.microsoft.com/kb/920769?wa=wsignin1.0
    Thanks,

  • How could I replace hard coded value in my sql query with constant value?

    Hi all,
    Could anyone help me how to replace hardcoded value in my sql query with constant value that might be pre defined .
    PROCEDURE class_by_day_get_bin_data
         in_report_parameter_id   IN   NUMBER,
         in_site_id               IN   NUMBER,
         in_start_date_time       IN   TIMESTAMP,
         in_end_date_time         IN   TIMESTAMP,
         in_report_level_min      IN   NUMBER,
         in_report_level_max      IN   NUMBER
    IS
      bin_period_length   NUMBER(6,0); 
    BEGIN
      SELECT MAX(period_length)
         INTO bin_period_length
        FROM bin_data
         JOIN site_to_data_source_lane_v
           ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
         JOIN bin_types
           ON bin_types.bin_type = bin_data.bin_type 
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
       SELECT site_to_data_source_lane_v.site_id,
             site_to_data_source_lane_v.site_lane_id,
             site_to_data_source_lane_v.site_direction_id,
             site_to_data_source_lane_v.site_direction_name,
             bin_data_set.start_date_time,
             bin_data_set.end_date_time,
             bin_data_value.bin_id,
             bin_data_value.bin_value
        FROM bin_data
        JOIN bin_data_set
          ON bin_data.bin_serial = bin_data_set.bin_serial
        JOIN bin_data_value
          ON bin_data_set.bin_data_set_serial = bin_data_value.bin_data_set_serial
        JOIN site_to_data_source_lane_v
             ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
            AND bin_data_set.lane = site_to_data_source_lane_v.data_source_lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) lane_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'LANE'
                  AND report_parameters.report_parameter_name  = 'LANE'
             ) report_lanes
          ON site_to_data_source_lane_v.site_lane_id = report_lanes.lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) class_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'CLASS'
                  AND report_parameters.report_parameter_name  = 'CLASS'
             ) report_classes
          ON bin_data_value.bin_id = report_classes.class_id
        JOIN edr_rpt_tmp_inclusion_table
          ON TRUNC(bin_data_set.start_date_time) = TRUNC(edr_rpt_tmp_inclusion_table.date_time)
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data_set.start_date_time >= in_start_date_time
         AND bin_data_set.start_date_time <  in_end_date_time
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       =  bin_period_length;
    END class_by_day_get_bin_data;In the above code I'm using the hard coded value 2 for bin type
    bin_data.bin_type            =  2But I dont want any hard coded number or string in the query.
    How could I replace it?
    I defined conatant value like below inside my package body where the actual procedure comes.But I'm not sure whether I have to declare it inside package body or inside the procedure.
    bin_type     CONSTANT NUMBER := 2;But it does't look for this value. So I'm not able to get desired value for the report .
    Thanks.
    Edited by: user10641405 on May 29, 2009 1:38 PM

    Declare the constant inside the procedure.
    PROCEDURE class_by_day_get_bin_data(in_report_parameter_id IN NUMBER,
                                        in_site_id             IN NUMBER,
                                        in_start_date_time     IN TIMESTAMP,
                                        in_end_date_time       IN TIMESTAMP,
                                        in_report_level_min    IN NUMBER,
                                        in_report_level_max    IN NUMBER) IS
      bin_period_length NUMBER(6, 0);
      v_bin_type     CONSTANT NUMBER := 2;
    BEGIN
      SELECT MAX(period_length)
        INTO bin_period_length
        FROM bin_data
        JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                           site_to_data_source_lane_v.data_source_id
        JOIN bin_types ON bin_types.bin_type = bin_data.bin_type
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time >=
             in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time <
             in_end_date_time + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type = v_bin_type
         AND bin_data.period_length <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
      INSERT INTO edr_class_by_day_bin_data
        (site_id,
         site_lane_id,
         site_direction_id,
         site_direction_name,
         bin_start_date_time,
         bin_end_date_time,
         bin_id,
         bin_value)
        SELECT site_to_data_source_lane_v.site_id,
               site_to_data_source_lane_v.site_lane_id,
               site_to_data_source_lane_v.site_direction_id,
               site_to_data_source_lane_v.site_direction_name,
               bin_data_set.start_date_time,
               bin_data_set.end_date_time,
               bin_data_value.bin_id,
               bin_data_value.bin_value
          FROM bin_data
          JOIN bin_data_set ON bin_data.bin_serial = bin_data_set.bin_serial
          JOIN bin_data_value ON bin_data_set.bin_data_set_serial =
                                 bin_data_value.bin_data_set_serial
          JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                             site_to_data_source_lane_v.data_source_id
                                         AND bin_data_set.lane =
                                             site_to_data_source_lane_v.data_source_lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) lane_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'LANE'
                   AND report_parameters.report_parameter_name = 'LANE') report_lanes ON site_to_data_source_lane_v.site_lane_id =
                                                                                         report_lanes.lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) class_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'CLASS'
                   AND report_parameters.report_parameter_name = 'CLASS') report_classes ON bin_data_value.bin_id =
                                                                                            report_classes.class_id
          JOIN edr_rpt_tmp_inclusion_table ON TRUNC(bin_data_set.start_date_time) =
                                              TRUNC(edr_rpt_tmp_inclusion_table.date_time)
         WHERE site_to_data_source_lane_v.site_id = in_site_id
           AND bin_data.start_date_time >=
               in_start_date_time - numtodsinterval(1, 'DAY')
           AND bin_data.start_date_time <
               in_end_date_time + numtodsinterval(1, 'DAY')
           AND bin_data_set.start_date_time >= in_start_date_time
           AND bin_data_set.start_date_time < in_end_date_time
           AND bin_data.bin_type = v_bin_type
           AND bin_data.period_length = bin_period_length;
    END class_by_day_get_bin_data;

  • Check a range of values in the pai section of a dynpro

    Hi,
    I have a week timetable, and for each day the user has to introduce a range of hours. I need to control that the hours the user introduces is in a correct format (hh:mm).
    I've seen that it's possible to set the valid range of values of an element using a field section on the dynpro's PAI (Input checks in the flow logic). Something like this:
    chain
    field: field1, field2, ...
    values between 00:00 to 23:59
    endchain
    But I don't know how can I use this to set a range of values in the time format.
    Is it possible?
    thanks in advance

    see you can create a module like the coding done inside of the form validate_time this.you can run this code to see if it solves your problem.
    Report ZANID_TEST2 Message-ID ZM.
    parameters: p_time(5).
    start-of-selection.
    perform validate_time.
    *&      Form  validate_time
    form validate_time.
    data: d_hours(2),
          d_minutes(2).
    data: hours type i,     
          minutes type i.
    split p_time at ':' into d_hours d_minutes.
    hours = d_hours.
    minutes = d_minutes.
    if hours > 24 or hours < 0.
        message e307 with 'Invalid Hour'.
    endif.
    if minutes > 60 or minutes < 0.
        message e307 with 'Invalid Minutes'.
    endif.
    endform.                    " validate_time

  • Query for a Value Set

    Is there any way to get one record for each of orgs? I would like to use this query in a value set but I can put the word distinct in a value set SQL statement. Any Ideas?
    SELECT
    haou.NAME ORGANIZATION_NAME
    FROM
    hr.per_all_assignments_f paaf,
    hr_all_organization_units haou
    WHERE haou.Organization_id = paaf.Organization_id
    AND paaf.primary_flag = 'Y'
    AND paaf.assignment_type = 'E'
    AND sysdate BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    order by 1

    Found it...
    select name from hr_all_organization_units b
    where organization_id in (select organization_id from per_all_assignments_f a
    where a.organization_id = b.organization_id )
    order by 1

  • Query returnining diff values

    Dear all,
    I have this query
    This query retuns the right value for other users.. whereas the same query returns no value for some other user.. (this user has select privileges on the tables department,invoice_rec)..
    What could be the reason ?
    Kai
    Edited by: KaiS on Mar 4, 2009 10:00 AM

    Does the other user have a copy of the current schema? I mean is he looking at his own data and not from the schema that you are connected to?

  • Data fetch for range of value inside an assistance class

    I want to create an assistance class where I can fetch data for the range of values selected ( basically when I select a range of sales order ).
    I was only only successfully in creating parameters, passing single values.
    Regards,
    Krishna.

    Hi Krishna,
    Logic to fetch the data of range ( implement in the method  )
       data : lv_matnr TYPE string VALUE 'MATNR',
                lr_matnr TYPE REF TO data.
    FIELD-SYMBOLS : <lr_matnr> TYPE ANY TABLE.
    ************ Method to call range of data ************************
    CALL METHOD wd_this->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
      EXPORTING
        I_ID               = lv_matnr
      RECEIVING
        RT_RANGE_TABLE     = lr_matnr.
    ASSIGN lr_matnr->* to <lr_matnr>.
    *************** call the method of the assistance class
    wd_assist->GET_DATA( EXPORTING IR_MATNR = <lr_matnr> ).
    ****************** parameters of the method in the assistance class ********************
    Hope this helps you
    Thanks & Regards,
    Sankar Gelivi

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

Maybe you are looking for

  • How can I manage multiple iPads for different students?

    Problem: I need to manage multiple iPads for my students with special needs. I need to download different apps to different iPads and I'm not sure how to keep their apps separate but still keep ultimate control of the units (i.e. lock them from loadi

  • Standalone (J2SE) adapter - axis SOAP adapter - issue duplicate messages

    All, Perhaps you can help me. I've setup a scenario where an standalone (J2SE) adapter sends a file to SAP XI channel, configured on the central adapter engine, of type SOAP configured to use Axis servlet. The connection is setup and the standalone a

  • G4 power mac SDRAMM DIMM slots

    I re-seated the three boards, but one of them doesn't go down as far as the other two. I don't know if that's right or if there's something wrong with how I'm putting it back in. I don't want to force it and possibly break the board.

  • WRT54GL - two xboxes - moderates nat... sometimes

    Modem: RCA DHG525 Router: WRT54GL ISP: Cogeco (Ontario Canada) I have two xboxes connected to my router (wired).  Both xboxes have unique static IPs.  xbox1 is in the DMZ.  xbox2 has ports 53, 80 and 3074 forwarded for TCP and UDP.  Block Anonymous W

  • LR4.1 RC Edit-in PS issues

    After making a few roundtrips from LR4.1 to PS 5.1 (edit-in), PS will no longer start. Have to reboot the PC to make it work.