How to get min/max price to be captured from last 6months

Hi friends,
I'm confusing about my report requirements can anybody suggest about the below comments.
1) I want to generate report min/max price to be captured for last 6months based on query selection given values e.g: material, calmonth.
2. Query date/Query month is based on Purchase order creation date.
3. When we execute query for given 0material, 0calmonth e.g: 10000 , 12.2008 report output should be last six months min/max price for materials.
How can i get this type of report.
Anybody suggest me on this.
Thanks lot
Siri

Dear Siri,
I understand that your report should be like:
Material     CalMonth    Min Price    Max Price
Have you explored the option of using the Price field with the properties set to Min for one column and Max for another?
Regards,
Nitin S.

Similar Messages

  • How to get min,max,avg time for query execution?

    Dear Friends,
    In AWR we are getting avg time taken to execute particular query, how can one get min,max time taken by query during number of executions.
    Thanks

    I would run the sql in a cursor for loop, to get a quite reasonable execution time without changing the actual execution plan:
    SQL> show user;
    USER is "HR"
    SQL> set timing on
    SQL> select count(*) from all_objects;
      COUNT(*)
         55565
    Elapsed: 00:00:03.91
    SQL> var p_sql varchar2(200)
    SQL> exec :p_sql := 'select * from all_objects'
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:03.53
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.75
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.73
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.66
    SQL> ---- alter system flush shared_pool;
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.80
    SQL> declare
      2  t1 timestamp := systimestamp;
      3  begin
      4    execute immediate 'begin for c in (' || :p_sql || ') loop null; end loop; end;';
      5    dbms_output.put_line('Elapsed: ' || (systimestamp - t1));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.64
    SQL>
    https://forums.oracle.com/thread/705536?start=15&tstart=0
    Regards
    Girish Sharma

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • How to get the first day in the month from a domain date ?

    Hi,
    I like to know how to get the first day in the month from a domain date?
    Thanks
    Stephen

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • How to get the absolute path of a file from the local disk given the file n

    how to get the absolute path of a file from the local disk given the file name

    // will look for the file at the current working directory
    // this is wherever you start the Java application (cound be C: and your
    // application is located in C:/myapp, but the working dir is C:/
    File file = new File("README.txt"); 
    if (file != null && file.exists())
        String absolutePath = file.getAbsolutePath();

  • How to get the list of top 10 tables grown last week or last few days

    Hi All,
    Please let me know, how to get the list of top 10 tables grown last week or last few days
    Thanks

    Please let me know, how to get the list of top 10 tables grown last week or last few days1.Oracle Version and OS info please ... ALWAYS
    2.Do you have licensing options (Tuning and/or Diagnostics Pack) ?
    3.Have you ran AWR/Statspack in last week or last few days
    1.Because Oracle do not store auto tack the history of tables growth. See below link where one user has showed the possible way of manual track of table(s) growth :
    Re: oracle tables growth
    2.MOS Note for How To Get Table Growth History Information? [ID 1395195.1]
    3.If you are in 10g than EM of 10g has something called Segmnet Statistics which can show you the growth of your table.
    4.Other clue :
    SQL> select * from table (dbms_space.object_growth_trend('SCOTT','EMP','TABLE'));
    TIMEPOINT                                                                   SPACE_USAGE SPACE_ALLOC QUALITY
    17-SEP-12 11.06.20.228000 AM                                                       1593       65536 GOOD5.A good script by Mice Ault for historical growth of segments within AWR:
    http://www.dba-oracle.com/t_table_growth_reports.htm
    Regards
    Girish Sharma

  • How to get safecontrol tag section to a collection from web.config in c#

    how to  get safecontrol tag section to a collection from web.config in c#
    Below is my config file. I need to read the safecontrol tagsection and get all those in to a collection.please help me on this.
    <?xml
    version="1.0"
    encoding="UTF-8"
    standalone="yes"?>
    <configuration>
    <SafeControls>
    <SafeControl
    Assembly="System.Web,
    Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI.WebControls"
    TypeName="*"
    Safe="True"
    AllowRemoteDesigner="True"
    SafeAgainstScript="False"
    />
    <SafeControl
    Assembly="System.Web,
    Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI.HtmlControls"
    TypeName="*"
    Safe="True"
    AllowRemoteDesigner="True"
    SafeAgainstScript="False"
    />
    </
    SafeControls>
    </configuration>
    adityadugyala

    Here is the way to read and write custom sections programtically in web.config.
    http://msdn.microsoft.com/en-us/library/2tw134k3.aspx
    Or use the traditional way of reading XML with XMLDocument.
    Bala

  • How to get string (specified by line and column) from txt file with labview

    Hi everyone
    How to get string (specified by line and column) from txt file with labview
    thx 
    Solved!
    Go to Solution.

    As far as I know, a text file has no columns.  Please be more specific.  Do you mean something like the 5th word on line 4, where words are separated by a space, and lines are separated by a newline character?  You could the Read from Spreadsheet String function and set the delimiter to a space.  This will produce a 2D array of strings.  Then use index array and give the line number and column number.
    - tbob
    Inventor of the WORM Global

  • How to get G/L account and cost centres from ECC to SRM...

    Dear All,
    How to get G/L account and cost centres from ECC to SRM...
    Please let me know the steps...
    Thanks
    Ravi

    Hi
    GL account - You can define in SPRO- Cross application settings--Account assignment ->Define GL account for product category and account assignment category.
    or you can use BADI BBP_DETERMINE_ACCT.
    In Organisation Strucute - You can Map the backend cost center via KNT  cost center attribute .
    Regards
    Muthu

  • How to get the max. and min. of a selection-option?

    hi experters
    I wonder if there is any way can fetch the max value and minimum value from a select-option?
    please hint, many thanks
    wanlei.sun

    a®s wrote:
    > Try this way
    >
    >
    > SELECT-OPTIONS S_WERKS FOR T001W-WERKS.
    >
    > START-OF-SELECTION.
    > SELECT * FROM T001W INTO IT_T001W
    >        WHERE WERKS IN S_WERKS.
    >
    > SORT IT_T001W BY WERKS ASCENDING.
    > READ TABLE IT_T001W INDEX 1.
    > MOVE IT_T001W-WERKS TO V_WERKS_MIN. " MIN Value
    >
    > SORT IT_T001W BY WERKS DESCENDING.
    > READ TABLE IT_T001W INDEX 1.
    > MOVE IT_T001W-WERKS TO V_WERKS_MAX. " MAx Value
    >
    >
    > a®s
    Please try this.
    TABLES : t001w.
    SELECT-OPTIONS S_WERKS FOR T001W-WERKS.
    data: lv_min type T001W-WERKS,
          lv_max type T001W-WERKS,
          lv_count type i.
    START-OF-SELECTION.
      sort s_werks by low.
      describe TABLE s_werks LINES lv_count.
      if lv_count = 1.
        lv_min = s_werks-low.
        lv_max = s_werks-high.
      elseif lv_count > 1.
        read TABLE s_werks index 1.
        lv_min = s_werks-low.
        if not s_werks-high is INITIAL.
          lv_max = s_werks-high.
        endif.
        READ TABLE s_werks INDEX lv_count.
        if lv_max is INITIAL.
          lv_max = s_werks-low.
        else.
          if lv_max < s_werks-low.
            lv_max = s_werks-low.
          endif.
        endif.
      endif.
      write :/ lv_min,
               lv_max.

  • How to get the max value of a set of percentage values?

    Hi,
    I've tried to get the max and min value of a set of calculated percentage values. Such as
    Jan Feb March Apr May Jun    Min  Average   Max
    0,5 0,8  1,1      0,4 1      0,6     0,4   0,7         1,1
    The average value works fine. But with "min" and "max" I have a problem.
    I've tried to get the value with the following ways:
    - Create a new calc. keyfigure and make a sum of all values: (Jan + Feb + ...) and set the calculation in key figure properties to Min/Max.
    - Create a new calc. keyfigure and make a sum of all values and set the aggregation to Min/Max
    - Create a selected keyfigure with a filter to the necessary periods and set a calculation to Min (Aggregation is not possible here)
    - Create a new cal. keyfigure with all periods and the function Min. e.g. min(Jan, (min Feb, (min (....)
    None of this solutions provides the right min and max value. When I use an amount value (e.g. Euro) instead of these percentage values the keyfigure with the min and max function works. The others all provide wrong values.
    Is there a solution to get the right min and max value???
    It would be a great help when you have any hints.
    Thanks
    Claudia

    Hi Aduri,
    thanks for your answer but your solution doesn't work.
    The problem is that the periods are defined in a structure with offsets such as
    - period-11
    - period-10
    - period
    in this structure elements there is also the keyfigure "netvalue" defined.
    In the rows of the report there is another characteristic such as company code.
    Is there a solution to find the max and min values of the period values for each company code? Or must I change the data model e.g. copy the keyfigure and make a new keyfigure with another aggregation level?
    Thanks for any hints!
    Claudia

  • How to calculate min/max scan rate of PCI-MIO-16XE-50

    My board: PCI-MIO-16XE-50 , 20MHz timebase
    The min/max scan rate is0.00596-20K scan/s and the channel rate is 1.53-20Kchannels/s
    How do they calculate these data?

    Hi May
    Check out the knowledge base locate at http://digital.ni.com/public.nsf/websearch/EA4E306828AF05B586256B8F00661A8B?OpenDocument . I think it answers your question.
    Serges Lemo
    Applications Engineer
    National Instruments

  • How to get the previous price of the  list price  in a order

    Hi All,
    I need to get the previous price of the condition type in an order  to calculate the %change of price.
    for ex: the conditon ZXXX has price 600 and its changed to 400 now .( by changing the quantity etc ).
    when the price value is changing to 400 , I need to capture  the value of 600 in another condition type.
    how can i acheive this ? Any idea?
    Please provide some pointers on it.
    Thanks in advance.
    Swapna.

    Hi Viraylab,
                     check  <b>VBAP-NETPR</b> field of table <b>VBAP</b>
    It gives the net price corresponding to a line item.
    Goto Tcode VA03.See the <b>item overview</b> tab U will get <b>Net Price</b> field for indivisual line item.
    Reward points if helpful.
    Regards,
    Hemant

  • How to get Moving Average Price ( MAP ) & Standered Price in BW

    Hi all,
    I want to get the Moving Average Price ( MAP) & Standered price in BW Report.So that please suggest me
    1. which Cube I have to use &
    2.  which datasource having that Moving Average Price ( VERPR) Field.
    If having other Procedure to calculate Moving Average Price in BW .
    please give me these details.
    Thanks,
    kiran

    Hi Kiran,
    0IC_C03 Cube can be used to bring the fields you require.
    Please search forum post by Anil Kumar, link is not available  thats why i am copying the text here.
    You need to enhance the Standard DS of Infoobject 0MAT_PLANT and Infoobject 0MAT_PLANT to include these 2 fields.
    And you need to enahance the 0IC_C03 cube to include 0MAT_PLANT and need to complete the mapping in all 3 Update rules for this added Infoobject.
    And you need to upload the attribute data of 0MAT_PLANT as full upload every day.
    In the reports , you need to dependent on Formula varibles with replacement path with standard price an MAP price attributes of 0MAT_PLANT. So if you go with these formula variables with replacement path, you should take 0MAT_PLANT characterstic into rows as a prerequiste.
    If you want to avoid this prerequisite, then take a look on How to calculate with attributes values.
    Other wise you need to do the calculations at 0MAT_PLANT level by a base query after every upload,and the result should be stored in TODS by APD .And then you can final report with out 0MAT_PLANT in rows upon this ODS.
    please see this links
    Re: 2lis_03_um and MBEW- STPRS
    Re: How to get Moving Average Prince and Standard Price in BW (inventory cube).
    Hope this Helps.
    Thanks
    CK

  • How to set min & max connections for  MSSQLconnection pool

    Hi,
    I want to set minconnection, maxconnection, idletimeout initial limit for the pool
    I have got a MSSQL database connection using following java code.
    // MSSQL DbConnection Code
    import java.sql.*;
    public class MsSqlDataSource
    public static void main(String arr[])
    Connection con = null;
    ResultSet rs = null;
    try{
    com.microsoft.sqlserver.jdbc.SQLServerDataSource ds = new com.microsoft.sqlserver.jdbc.SQLServerDataSource();
    ds.setServerName("10.50.50.51");
    ds.setPortNumber(1711);
    ds.setDatabaseName("test");
    ds.setUser("starhome");
    ds.setPassword("starhome");
    con = ds.getConnection();
    }catch(Exception e){}
    }In oracle i have passed min and max number of connection properties through setConnectionCacheProperties method.
    //Connection Pooling using Oracle Data Source:
    m_connSource = new OracleDataSource();
    m_connSource.setDriverType("thin");
    m_connSource.setServerName(m_host);
    m_connSource.setNetworkProtocol("tcp");
    m_connSource.setDatabaseName(m_db);
    m_connSource.setPortNumber(m_port);
    m_connSource.setUser(m_user);
    m_connSource.setPassword(m_password);
    // Enable caching. m_connSource.setConnectionCachingEnabled(true);
    java.util.Properties prop = new java.util.Properties();
    prop.setProperty("MinLimit", m_minConnections);
    prop.setProperty("MaxLimit", m_maxConnections);
    prop.setProperty("InitialLimit", m_initialConnections);
    prop.setProperty("InactivityTimeout", m_inactivityTimeout);
    prop.setProperty("AbandonedConnectionTimeout", m_abandonedTimeout);
    prop.setProperty("ConnectionWaitTimeout", m_connWaitTimeout);
    m_connSource.setConnectionCacheProperties(prop);I dont know how to pass min and max number of connection properties for SQLServerDataSource. Is there any method available to pass min and max number of connection properties for SQLServerDataSource.
    Iam using Tomcat. I found one way to set min and max connections for pool by doing changes in context.xml and web.xml using below url http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    I dont want to touch tomcat configuration files. I need to set connection pooling properties which is independent of application server.
    Please anybody give solution for this?
    Thanks,
    Prisha

    Hi,
    you need to define your database under the DB Admin tab. In the Schema objects node you'll find Sequence Implementations, and there you can definde min max values as well as caching and increments.
    Gerald

Maybe you are looking for