Query hangs on Value Help

Hi,
We have created a query in which we are using quantity conversion ( defined in RSUOM ) , the target quantity is to be taken from a variable. The quantity conversions is running fine but when we do a value help for the target quantity variable in Portal, the query hangs. We are not facing any such  issue in Bex Analyzer.
Please share your ideas on what could be the possible reason for this.
Thanks and Regards,
Manish Sharma

Hello Manish,
This is clearly a Portal issue.
Probably an issue with BI Java.
I recommend you to update your BI Java components to latest patch recommended by Java SP_Patch Matrix.
If you are using Netweaver 7.0, please check the link below:
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/6010addf-e096-2b10-8893-e98586d005f9 [original link is broken]
If you are using Netweaver 7.0 EHP 1 (7.01), please the this link:
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/c098b21c-e56f-2d10-2aad-b13915b396a4 [original link is broken]
Applying the patches recommended should solve the issue.
Also, as a recommendation, run the BI Diagnostics - note 937697 - and correct the red alerts.
Best Regards,
Edward John

Similar Messages

  • Visual Composer 7.0.1 (EHP1) - Value Help only shows "Single Selection"

    I tried to add a value help to a field that allows multiple selections. However, when I used the wizard through "Add Value Help" drop-down menu, I can only see one proposed selection -  "Single selection". However this SAP help document (http://help.sap.com/saphelp_nw70/helpdata/en/b5/036d391f074f769e00602634ee9960/content.htm) mentioned about the "Multiple selection" option. What I can do to make this selection available?
    I am using VC 7.0.1 (EHP1). Thanks for any helps in advance.
    Kelly

    Hi
    Are you using 'BI Query' as 'data Service'? & are you creating value help for variable? If Yes -
    Create necessary variable as 'Multiple Single Options' in your BEx query & then create value help in VC. Then it will allow multiple options or interval values.
    Regards
    Sandeep

  • F4 Value Help for Bex Variable (BRAIN646)

    Hi ,
       I set a authorization variable which allow user to select in a Bex query . When I run query and click value help on that variable, the system keep send a warning msg like :
    Value if variable ZVAPLAMS is automatically converted
    Message no. BRAIN646
    Is there any way to suppress this warnning msg?
    Thx,
    Jeff

    Hi Sims,
    I had also the same Problem (BRAIN 646). I've debugged the Query with transaction rsudo -> Execute User as "User with warning" -> Possible Transaction "RSRT" -> Start Transaction.
    The Transaction RSRT is opened and you can now debug your Query by klicking on "Execute + Debug" -> Expand "Variables" and activate "Customer Exit Variable (Before)".
    Don't forget to enter your Queryname.
    You are in Debuging-Mode and set Break-Points (see screenshots)
    1. Set break-point on FORM VALUE_FROM_AUTHORITY_FILL then F8 and get in with F5
    2. Set break-point on  IF l_i1 <> l_i2. then F8 and you get your cursor on IF l_i1 <> l_i2.
    You may see, if internal tables "l_i1" and "l_i2" have the same count of rows. If not take a look at   "l_i1", if there Interval value exist, if internal value do exist. If interval values do exist and in "l_i2" doesn't than you have replace your variable " ZVAPLAMS" with another Variable (selection option). It has to be "Selection Option", than only selection option variable accept single values and interval values.
    Regards
    Wanda Soetomo

  • Problem into Value Help

    Hello,
    We are facing Problemon Value Help is  that while Clicked on the u201CValue Helpu201D button we
    are getting Popup with all the values. If I Passed value with search
    field then also we are getting all the value.(Search Option is not
    working)
    Waiting for your response.
    Thanks
    Chittya Bej

    Hi Chittya
    Are you using BI - BEx query for creating value Help? If yes then you need to first select variable type as 'Multiple Single values'.
    Then while creating 'Value Help', there is one tab for 'Get Data From' here select 'Diamension Table'. & then try with search options. IN search options you need to select ' Between, Greater than etc' & then give From & To values. IT will work.
    If you have any issues then do let me know.
    Regards
    Sandeep

  • Aggregation level query "value help" = Only Values in InfoProv doesn't work

    Hi,
    I have a problem with Selection Variable for a BEx Query :
    - I'm working with SAP BI 7.0 support package 15
    - My query is an input ready query built for an "aggregation level" based on "real time infocube" (Planning);
    - Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
    - Characteristic (info-object) has set the property: Business Explorer tab--> Query Def. Filter Value Selection as Only Values in the info-provider...
    My problem is:
    when I execute a query,
    the Select Values for Variables screen appears
    I push on the Select from List button
    and Select Values For MyCharacteristic appears...
    but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
    If I build a query for the Real Time Cube it works correctly, but if the query is built for the aggregation level it doesn't work!
    Could someone explain me why it doesn't work correctly?
    Thanks in advanced
    Fede

    Thanks to  Mariana Lazar
    30.03.2009 - 12:30:36 CET - Risposta by SAP     
    Dear Fede,
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenience.
    Thank you for your cooperation and kind regards,
    @KR@ Mariana Lazar
    Senior Support Consultant
    SAP Active Global Support
    Netweaver Business Warehouse

  • Select filter value..not opening..query hanging

    Hi,
    I have a queary and it is executing fine. After executing it is displaying data fine. I have company code and two more characterstics in free characterstics section. After executing the report i am doing right click at company code in the excel sheet and selecting the option 'select filter value'. It is then opening the small screen 'selection for company code' but it is not displaying the values. It's keep on running and after some time it is hanging (not responding).
    In the company code object hardly there are 60 values. Can anyone tell me why this is taking long time and result in hanging for just 60 values?
    This company code object is Authorisation relevant checked in the 'Business Explorer' tab. There is a variable used for this comopany code in the query design and this variable is processed by authorisation. But i dont think this is the reason for the issue. If this is the reason could you please tell me how it effects? Please suggest me the solution.
    Many Thanks in advance
    K
    Edited by: kirankumar chandaluri on Jun 17, 2008 5:38 PM

    Hi MA,
    Thanks for your immedieate reply.
    In the business explorer tab for which one you are asking to change the settings?
    Is it for   'query def. filter value selection'
                              OR
                 'query execution filter value selection'?
    The current status is:
    Query Def. filter value selection is 'values in Master data table'                 &
    Query Execution filter value selection is 'only posted values for navigation'.
    This is not cube but this is ODS. For ODS where do we set DB specfic settings?
    Thanks in advance
    Kiran

  • Query hanging when queries in the resultset of UNION returned no rows

    Hi all,
    I have a query like this.
    Select * from table a
    UNION
    select * from table b
    UNION
    select * from table c
    UNION
    select * from table d
    table a, table b, table c has some rows of data.
    table d does'nt have any data.
    so,
    when i do union
    of results of table a,table b and table c, I will get the results.
    But when I include the UNION of table d(which is not having rows), Then the query is hanging.
    Please help me in this regard.
    Thanks in advance,
    Sreekeshava S

    Please find the query below.
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    decode(status_flag, 0, 'NO', 'YES')
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and c.node_id = s.object_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.value != 4
    and s.value != 5
    and nn.node_id not in (select node_id from opc_nodes where is_virtual=1)
    union
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    'Yes (Force)'
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and s.object_id = c.node_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.value in (4, 5)
    and nn.node_id not in (select node_id from opc_nodes where is_virtual=1)
    union
    select nn.node_name as nn_node_name,
    t.template_name as t_template_name,
    '(Virtual Node)'
    from opc_node_names nn, opc_source_templ t,
    opc_node_config c, opc_change_status s
    where nn.node_id = c.node_id
    and s.object_id = c.node_id
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and nn.node_id in (select node_id from opc_nodes where is_virtual=1)
    union
    select 'Management Server' as nn_node_name,
    t.template_name as t_template_name,
    decode(status_flag, 0, 'NO', 'YES')
    from opc_source_templ t, opc_node_config c, opc_change_status s
    where c.node_id is null
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.object_id = '000000000000000000000000000000000000'
    and s.value != 4
    and s.value != 5
    union
    select 'Management Server' as nn_node_name,
    t.template_name as t_template_name,
    'Yes (Force)'
    from opc_source_templ t, opc_node_config c, opc_change_status s
    where c.node_id is null
    and c.template_id = t.template_id
    and s.object_type = 1
    and s.status_type = 1
    and s.object_id = '000000000000000000000000000000000000'
    and s.value in (4, 5)
    In the above query,
    only first 2 select select statements is having some data.
    Next select statements does'nt return any data.
    If we execute the select queries from the above query independently, It will execute within no time.
    as i told only first 2 queries are having the data.
    other sql queries does'nt have any data.
    But if i union all the queries, query is hanging.
    I am executing the query through SQL developer connecting to the database located in the Remote location.

  • 0FISCPER Value Help is not working on Multi Provider

    Hi Friends,
    I Have created a query on Multi Provider (based two ODS) and when i click on the value help for 0FISCPER while executing the report, it just hangs up and keep running, but never givel any values wvwn after 5 hours (I did not observed for moreathan 5hrs, propably it might go for dump).
    The same Query with same selection varuiable on 0FISCPER gives the value help in just 30 sec in both Dev and QA systems.
    When i try to use the same value help on bothe the ODS, it was working fine in all Dev, QA and Prod environments. But same on Multi Provide is working only in Dev and QA, but not in Prod.
    One diff i sea, is larg amount of data in Prod, in bothe the ODS invloved in this MP.
    Can you guys pls help...how to resolve this. I even try with different possible settings for  MP  through RSDIPROP transaction
    Thanks,
    Venkat

    Hi Akhan,
    It is the same case even...if i run it from RSRT. It just hangup for past 80mts.
    I got some more information,
    When i try to do the same from portal...i have got below Error messages in Dump.
    Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_GET_MEMBERS" against system "SAP_BW"
    Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: connection closed without message (CM_NO_DATA_RECEIVED)
    Pls do share...if you got any more suggestions.
    Thanks,
    Venkat

  • WMI query hanging

    I have some code (VB Script) that is collecting CPU performance metrics from WMI.  The code works well on all of the servers (identical servers) but after a period of time (8 hours, 30 hours, other random times) on some of the servers the query hangs.
     After several hours (e.g. 8 hours) the query will work again on the server.  I have used WBEMTEST to query the CIMv2 namespace to perform the same query on the server where WMI is having a problem and it also hangs.
    The query eventually times out and does not return a value.
    I have asked the team to rebuild WMI and after they completed the rebuild, the problem still occurs.
    Since the code is only performing a read operation on WMI, I do not see how the query can cause the hang of WMI.
    Any ideas on what I should do next?
    Thanks

    Hi,
    Before going further, would you please let me know whether install all
    necessary Windows Updates on those servers?
    à
    but after a period of time (8 hours, 30 hours, other random times) on some of the servers the query hangs.
    When the
    hang issue occurred, please check if consume high RAM or CPU. Just a confirmation, thanks for your understanding.
    In addition, please use the WMI Diagnosis Utility and check if can help you to analyze this issue. for more
    details, please refer to following articles.
    WMI Diagnosis Utility
    WMIDiag 2.1 is here!
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Variables/Input Parameters Value help not showing texts

    Hello,
    I have created a crystal report based on a calculation view in Crystal Reports for Enterprise 4.1 SP5, which has a input parameter on the field "Region". For the value help, I am using a custom view based on T005U in which I have made sure that RegionName field is present in the "Label Column" property of the Region field.(Required for viewing descriptions of LOVs).
    In the crystal report, while previewing data in the query builder, I am able to see the value help for the input parameter in the prompt screen, which displays only the key part, but does not display the description of it. Moreover, after accepting the prompt value, the preview runs into an error(as shown below). Please note that I get the error below only when Region is a part of the output fields of the query.
    Instead of input parameter, when I create a variable on the region field in the main calculation view, with the same value help view, I am able to do data preview in the query builder as also data appears in the report on running the query. But, just as in the case of input parameter value help in the prompt screen, even over here, I am only able to see the key part and not the description.
    Are variables/input parameter LOV's supposed to display descriptions or just the key part? As also, any reason why I should be getting this error while using Input parameter?
    Kindly let me know if I am missing something in the development of this report.
    Regards,
    Alston

    Hi,
              I hope you are taking the BEx Query as a source to the crystal report. In the BEx query check region info object  should is maintained as  Text and Key. If text is not maintained over there you will not be getting text in Crystal reports.
    Krishna.

  • How to Restrict Master data in value help screen for a user???URGENT

    Hello Gurus,
    I have a requirement.When a authorized user logins to view the report, he should see only list of customers assigned to that user in the value help screen, instead of displaying whole master data.and the data is displayed perfectly fine for the authorized sales rep. By default, Value help screen displaying all the customer numbers.
    How can I restrict in the value help screen?
    Any help appreciated with points.
    Regards,
    PNK

    Hi Chandran,
                I got that Idea too. I created a authorized customer, I created a authorized Object and assigned to a role.But in the role, when I am changing the object to generate profile, it is asking to select list of customers from the customer table.If the customers are always constant then this would work,  but in my scenario, customers for the sales rep changes over time and when I ever reps open the query, they should see updated list of customers assigned to them only, as we update the master data everyday from source system and that shud reflect in the value help.
    I am trying User Exit to achieve this, but I am not getting proper ideas how to do this.
    Any Help on this issue with user exit code???
    Thanks in Advance
    regards,
    PNK

  • 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.

  • BW Hierarchy node Variable - Value help Issue in Crystal Report

    Dear All,
    1. We have created the BW-Query with Hierarchy node Variable .
    2. On the above query we have preapred Crystal Report.
    3. We have published the Crystal Report using BW Publisher ( Through Content Administrator in BW).
    4. Followed the steps as below link.
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsandBWquery+elements
    Problem:
    When we are accessing the Crystal Report in the InfoView BW-Hierarchy node variable is not appearing in the value help as a tree structure ( It is appearing as a list ).
    Please suggest me the solution.
    Thanks & Regards,
    Kiran Manyam.

    Classic Crystal Reports and Classic SAP connectivity questions
    Classic Crystal Reports and Classic SAP connectivity questions

  • 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;

  • Using S_RS_AUTH in VALUE HELP ?

    Hi, thanks for your time.
    I have problems with the use of the subject to S_RS_AUTH in BI 7.
    For example, my object is ZCOUNTRY_CL and used 0COUNTRY with the "CL".
    In the "Value Help" from Visual Composer displays all countries, while in BI7 shows only those countries that are within the authority.
    The idea that I can think of is to create a ZBAPI to call a Query that I return the country of approval, Using for this RSCRM_BAPI or something similar in BI 7.
    I would appreciate if you could indicate some other option to upload in the "Value Help" values of authority, or give me any suggestions to improve my idea.
    greetings

    You can look solution in post to blog the Judy until we make owner Blog.
    /people/judy.kestecher/blog/2008/08/26/whats-new-in-visual-composer--enhancement-package-1-for-sap-netweaver-70

Maybe you are looking for

  • Restrictions in select-options

    Hi, How to remove the diffrent tabs in the extention of a select-option? Foe example I want to remove 'exclude single values' and 'exclude range' from the extention of select-options. Thanks in advance Jaison Joseph

  • Insert specific image + text to quiz feedback

    Hi, Within Captivate quiz, I know there is a facility to offer text feedback to the learner dependent upon the option clicked by the learner after the Submit button is depressed. However, is there a way to include an image too? So if a learner clicks

  • Change tab naming

    Hi, I want to set a default name for the top url tab when I run the sap portal. Today it displays the navigation name of where I have navigated to using the portal for example "Theme Editor", but I want the name to be default at all times. So, no url

  • PDA load JPG with Win CE 5

    Dear LV PDA users. I have posted some problems with the PDA load JPG Image. Downtracing the failure showed: The PDA module needs some dll from the windows mobile version of Win CE. I always got the same failure while loading the 10 KB 24Bit color JPG

  • I cant verify my apple id because they never sent me a verification email, and they wont let me resend one either.

    I cant use my apple ID until I have verified the account, but when I opened the email from apple there was no link to verify my account on. I went to the apple website and it doesnt let me log in without verifying the account first, but they wont let