ST03n - MONI data

Hello guys,
a little question about ST03n and its monitoring data. My release is ERP2005 and the settings are "sap default". So the month-data in the monitoring database is stored for 12 month.
The workload collector database which contains the aggregated data only stores it for 2 month so in ST03n i only see the last 2 months.
Now i have increased the value for "transaction profile" to 5 months.
Does the collector creates the aggreagted data from the monitoring databases again by the next daily run or have some other steps to be done?
Or is not possible to restore the old "aggregated data"?
The navigation tree for the settings is:
ST03n => Collector and performance db => Performance database => Monitoring database => Reorganisation => retetion periods for month is 12 months
ST03n => Collector and performance db => Workload collector database => Reorganisation  => Control => and area WM (before it was 2 month.. now i have increased to 5 month)
Thanks and Regards
Stefan

Hi Stefan,
I think once you increase the value... the system starts to keep the new info upto the value you established.... meaning if you currently keep 2 months and you expand to 5 months it will start to keep the info from now on instead of going back... If you know what i mean
Regards
Juan
Please reward with points if helpful

Similar Messages

  • ST03N no data available

    Hi gurus
    When I am executing ST03N Tcode and viewed details in Expert Mode it shows data only upto 21st april 2009 i cant able to see the other date days
    Please let me know how i can see the last data after 21st april 2009
    When i am choosing the server in workload its saying that no data available for server after expanding in day tab its showing only upto 21st april 2009
    Thanks and regards
    S.Satyanarayana Raju

    Hello Raju,
    Please check if the SAP standard job background job SAP_COLLECTOR_FOR_PERFMONITOR is scheduled in background of your system in periodically. Seems this job didn't run after 21st April on your system.
    Regards
    Gautam

  • St03n - loads data till July 2011... how can i activate it again for presen

    Hello all,
    seems somehow that my workload monitor is not keeping the data anymore for some changes.
    Can somebody let me know how can i activate it again in order to start keeping the data again?
    thx in advance

    Hi,
    The SAP standard job SAP_COLLECTOR_FOR_PERFMONITOR must be scheduled hourly in each SAP system. The job must always be scheduled in client 000 with user DDIC or with a user with the same authorization (see Note 16083 for more information).
    Each entry in the TCOLL table corresponds to a report that is run when executing the RSCOLL00 report (the COLLECTOR_FOR_PERFORMANCEMONITOR or the SAP_COLLECTOR_FOR_PERFMONITOR job)
    The TCOLL table is maintained by using Transaction ST03 or ST03N
    (ST03 > Environment > Data collector > Collector frequency, or
    ST03N > 'Expert' mode > Collector & Database perf. > Monitor-collector perf.
    Hope this is useful.
    Regards,
    Deepak Kori

  • Need Help on List of Months between Two Dates

    Hello everyone,
    I have a table which has startdate & enddate, and need a SELECT statement to list all months between these two dates for each given ID.
    I did some test, and could not figure out how to get the startdate & enddate from testing table (instead of hard code them) in the select statement.
    Could anybody please help on it (Oracle 11gR2),
    Thanks in advance!!!
    create table testing(
    id          number,
    start_date  date,
    end_date    date);
    insert into testing values(100, to_date('05-FEB-2011', 'DD-MON-YYYY'), to_date('28-MAY-2011', 'DD-MON-YYYY'));
    insert into testing values(200, to_date('20-JUN-2011', 'DD-MON-YYYY'), to_date('28-DEC-2011', 'DD-MON-YYYY'));
    commit;
    select * from testing;
            ID START_DAT END_DATE
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    Elapsed: 00:00:00.01
    *for testing.id = 100:*
    select to_char(add_months(to_date('05-FEB-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
    from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-MAY-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('05-FEB-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    DATES
    2011-Feb
    2011-Mar
    2011-Apr
    2011-May
    Elapsed: 00:00:00.01
    *for testing.id = 200:*
    select to_char(add_months(to_date('20-JUN-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
    from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-DEC-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('20-JUN-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    DATES
    2011-Jun
    2011-Jul
    2011-Aug
    2011-Sep
    2011-Oct
    2011-Nov
    2011-Dec
    7 rows selected.

    SQL> select * from testing
      2  /
            ID START_DAT END_DATE
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    SQL> select  id,
      2          to_char(add_months(start_date,column_value - 1),'YYYY-Mon') dates
      3    from  testing,
      4          table(
      5                cast(
      6                     multiset(
      7                              select  level
      8                                from  dual
      9                                connect by add_months(trunc(start_date,'MM'),level - 1) <= end_date
    10                             )
    11                     as sys.OdciNumberList
    12                    )
    13               )
    14    order by id,
    15             column_value
    16  /
            ID DATES
           100 2011-Feb
           100 2011-Mar
           100 2011-Apr
           100 2011-May
           200 2011-Jun
           200 2011-Jul
           200 2011-Aug
           200 2011-Sep
           200 2011-Oct
           200 2011-Nov
           200 2011-Dec
    11 rows selected.
    SQL> SY.

  • Regarding date function module

    Hi abapers,
    We have one requirement in selection screen validation.
    From date is Day 1 of the next period(month).
    To date is Day 1 of the next period*(month) + (next) 3 months.
    which function module we can use.
    how we can pass the selection screen of this date.
    Thanks
    Nani.

    Hi
    Why we need the fun module
    Just write the code as
    select-options : s_date for sy-datum no display.
    data: date like sy-datum, fdate like sy-datum, tdate is like sy-daum, mon(2),
           mon1(2), mon2(2), year(4).
    date =  sy-datum.
    year = date+0(4).
    mon = date+4(2).
    mon1 = mon + 1.
    mon2 = mon + 3.
    concatenate year mon1 '01' into fdate.
    concatenate year mon2 '01' to tdate.
    use the fdate and tdate and write the code
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to use  JtextFild with java.util.Date;

    hi
    My problem is that i have a date data type field inaccess in table.
    Otherside i use JTextField.
    First when this window show i initialize this field with current date.
    The code for this is
    lbdate = new JLabel("User Date",JLabel.RIGHT);
              lbdate.setBorder(new EtchedBorder());     
              txtdate = new JTextField();
              txtdate.setBorder(BorderFactory.createLineBorder(Color.red));
              //month convert into string
              int m = cal.get(Calendar.MONTH);
              m++;
              String mon = Integer.toString(m);
              //day convert into string
              int d = cal.get(Calendar.DATE);
              String date = Integer.toString(d);
              //year convert into string
              int y = cal.get(Calendar.YEAR);
              String year = Integer.toString(y);
              txtdate.setText(mon+" / "+date+" / "+year);
    i am not satisfied by this. How can initialize the JtextField by some other method.
    The secound part of question is that how to reterive the date data type of field and see in the textfield.I see butt it returns like this year/month/date(this date is coming from database which already input) 00:00:00
    How can i discard 00:00:00(this time)
    I code for this is
    Date date = rs.Date();
    txtfld.setText(date); //Here error is occured of TypeCasting
    and tell me that how date type object can convert into String for set the text of field
    because JTextField only accept the String data.
    (if u illestrate with code).
    thanks

    Use a JFormattedTextField with a SimpleDateFormat in parameter.
    Denis

  • List the used ABAP objects

    Hi all,
    I'm looking for a standard tool to list the used ABAP objects (Reports, Include, Function Group, CLASSes) in a time
    frame of one year or at least since the start-up.
    My goal is the identification of the obsolete custom developments to dismiss it.
    I have found the transaction SCOV but the goal of this transaction is the estimation of the code
    coverage during the test.
    Anyone can help me?
    Thanks in advantage

    This kind of data is stored in table MONI - Monitor table MONI (summarized cluster table!) and in some files of the application server (in the OS behind SAP)
    - Transaction STAT or ST03n use data stored in these tables
    - Some FM like [SAPWL_SERVLIST_GET_LIST|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=sapwl_servlist_get_list&adv=false&sortby=cm_rnd_rankvalue] and  [SAPWL_WORKLOAD_GET_STATISTIC|https://www.sdn.sap.com/irj/scn/advancedsearch?query=sapwl_workload_get_statistic&cat=sdn_all] may be used to get the data from each application server
    (click on the links to get more information and samples on how to use these FM)
    Regards

  • Need help in SQL , Subtract column based on the condition in the Row

    Hi all ,
    I’m new to Sql Queries; I have a requirement which involves Sql query,
    Can anyone tell the How to proceed or provide me Sql
    Here goes the requirement
    Current Table
    ID |-|Month|-|Data
    1|-|Jan-10|-|10.00
    2|-|Feb-10|-|20.00
    3|-|Mar-10|-|30.00
    4|-|Apr-10|-|50.00
    5|-|May-10|-|60.00
    6|-|Jun-10|-|70.00
    7|-|Jul-10|-|100.00
    8|-|Aug-10|-|110.00
    9|-|Sep-10|-|120.00
    10|-|Oct-10|-|140.00
    11|-|Nov-10|-|150.00
    12|-|Dec-10|-|170.00
    13|-|Jan-09|-|180.67
    14|-|Feb-09|-|194.67
    15|-|Mar-09|-|208.67
    16|-|Apr-09|-|222.67
    Format needed
    ID |-|Month|-|Data|-|Base on this condition
    1|-|Jan-10|-|10.00|-|Jan 10
    2|-|Feb-10|-|10.00|-|Feb10-Jan10
    3|-|Mar-10|-|10.00|-|Mar10 - Feb10
    4|-|Apr-10|-|20.00|-|Apr10 - Mar10
    5|-|May-10|-|10.00|-|May10 - Apr10
    6|-|Jun-10|-|10.00|-|Jun10 - May10
    7|-|Jul-10|-|30.00|-|Jul10 - Aug10
    8|-|Aug-10|-|10.00|-|Aug10 - Jul10
    9|-|Sep-10|-|10.00|-|Sep10 -Aug10
    10|-|Oct-10|-|20.00|-|Oct10 -Sep10
    11|-|Nov-10|-|10.00|-|Nov10 - Oct10
    12|-|Dec-10|-|20.00|-|Dec10 - Nov10
    13|-|Jan-09|-|10.67|-|Jan 09
    14|-|Feb-09|-|14.00|-|Feb09-Jan09
    15|-|Mar-09|-|14.00|-|Mar09 - Feb09
    16|-|Apr-09|-|14.00|-|Apr09 - Mar09
    Thanks in advance
    Astle

    Welcome to the forum!
    this?
    select id
         , mon
         , data
         , data - lag (data, 1, 0) over (partition by trunc (mon, 'yyyy')
                   order by mon)
      from test
    order by idas in
    SQL> with test as
      2  (
      3  select 1 id ,to_date ('Jan-10', 'Mon-rr') mon,10.00 data from dual union all
      4  select 2,to_date ('Feb-10', 'Mon-rr'),20.00 data from dual union all
      5  select 3,to_date ('Mar-10', 'Mon-rr'),30.00 data from dual union all
      6  select 4,to_date ('Apr-10', 'Mon-rr'),50.00 data from dual union all
      7  select 5,to_date ('May-10', 'Mon-rr'),60.00 data from dual union all
      8  select 6,to_date ('Jun-10', 'Mon-rr'),70.00 data from dual union all
      9  select 7,to_date ('Jul-10', 'Mon-rr'),100.00 data from dual union all
    10  select 8,to_date ('Aug-10', 'Mon-rr'),110.00 data from dual union all
    11  select 9,to_date ('Sep-10', 'Mon-rr'),120.00 data from dual union all
    12  select 10,to_date ('Oct-10', 'Mon-rr'),140.00 data from dual union all
    13  select 11,to_date ('Nov-10', 'Mon-rr'),150.00 data from dual union all
    14  select 12,to_date ('Dec-10', 'Mon-rr'),170.00 data from dual union all
    15  select 13,to_date ('Jan-09', 'Mon-rr'),180.67 data from dual union all
    16  select 14,to_date ('Feb-09', 'Mon-rr'),194.67 data from dual union all
    17  select 15,to_date ('Mar-09', 'Mon-rr'),208.67 data from dual union all
    18  select 16,to_date ('Apr-09', 'Mon-rr'),222.67 data from dual
    19  )
    20  select id
    21       , mon
    22       , data
    23       , data - lag (data, 1, 0) over (partition by trunc (mon, 'yyyy')
    24                 order by mon)
    25    from test
    26   order by id
    27  ;
            ID MON               DATA DATA-LAG(DATA,1,0)OVER(PARTITI
             1 1-1-2010            10                             10
             2 1-2-2010            20                             10
             3 1-3-2010            30                             10
             4 1-4-2010            50                             20
             5 1-5-2010            60                             10
             6 1-6-2010            70                             10
             7 1-7-2010           100                             30
             8 1-8-2010           110                             10
             9 1-9-2010           120                             10
            10 1-10-2010          140                             20
            11 1-11-2010          150                             10
            12 1-12-2010          170                             20
            13 1-1-2009        180,67                         180,67
            14 1-2-2009        194,67                             14
            15 1-3-2009        208,67                             14
            16 1-4-2009        222,67                             14
    16 rows selected

  • Fiscal calendars in time series

    we are using fiscal year variant for calendars where year start with November 25 and ends with November 24th with 12 periods.
    Trouble is now we are having time bucket profiles where period considered for Fall and Spring seasons.
    Spring Season YS (8/4 Months 2 Seas. FY Variant)Calendar month Period is November – June (Actual season starts from December to May)
    For spring season the values are correct.
    For Fall season Calendar month Period is April end day/May – December (Actual season starts from June to November)
    I am getting correct value for 4 months end period: where April ends that is the 1st period.
    2nd Period from May to December complete and also they are adding previous year January in 2nd period.
    However December comes into next fiscal year.
    For 2017 assumption is 1ST period is up to April 30th and second period is from May 1st to December 31st.
    Mon
    Date
    Period
    Year Shift
    4
    30
    1
    0
    5
    1
    2
    0
    12
    31
    2
    1+
    Please suggest me the correct period definition for Fall season.
    Thanks,
    Bala B.

    Hi,
    I had some how managed to implement the request for 4 months January to April and 8 months May to December and I stored it in a customization request and released to Quality.
    But when I am moving to Quality it is showing no valid request exist.
    Any suggestion how to correct it.
    Thanks & Regards,
    Bala.B.

  • Performance report genearte

    Hi,
    Our server gives very poor perfornmance.As per client request we need to send performance statistics, which shows memory utilization,proces,hardware,etc..
    How to generate performance statistics.So that this report i can send .
    Thanks
    Lisa

    what kind of performance do you mean?
    -> cpu?
    -> disks?
    -> client's pc?
    -> overall?
    most of the data needed will be found using transactions st02 (memory), st03n (performance data), st04 (database) and st06 (operating system) and (for special purposes) st05 (traces)
    GreetZ, AH

  • Program for the last execution of a program or a TC

    Hello,
    DO you know a program or a TC (Transaction) to edit the date and the hour of the last execution of a program or a TC.
    Thank you for the help
    Denis Corminboeuf

    Hi Denis,
    I attached below parts of a program I created a couple of years ago to get use statistics on (customer) reports and transactions.
    Maybe you can reuse parts of it for your needs.
    Regards
    Ferdi
    <pre>
    internal tables for use counter
    data: begin of list occurs 5.
            include structure sapwlserv.
    data: end of list.
    data: begin of applicat occurs 0.
            include structure sapwlustcx.
    data: end of applicat.
    data: begin of applica_ occurs 0.
            include structure sapwlustcx.
    data: end of applica_.
    data: begin of applicau occurs 0,
            entry_id like sapwlustcx-entry_id,
            account  like sapwlustcx-account,
            count    like sapwlustcx-count,
        : end of applicau.
    data: wa_applicau like applicau.
    *&      Form  MONI
    form moni.
      data: l_host like  sapwlserv-hostshort.
      m_start = p_usedt.
    get server
      call function 'SAPWL_SERVLIST_GET_LIST'
           tables
                list = list.
      do.
        loop at list.
    loop on server
          check not list-instshort is initial.
          l_host = list-instshort.
    get statistics per month and server
          perform workload using m_start l_host.
        endloop.
        add 31 to m_start.
        if m_start > sy-datum.
          exit.
        endif.
      enddo.
      sort applica_ by entry_id.
      sort applicau by entry_id count descending.
    endform.                               " MONI
    *&      Form  WORKLOAD
    form workload using    p_start like sy-datum
                             p_host  like  sapwlserv-hostshort.
      refresh: applica_.
    read application statistic from MONI
      call function 'SAPWL_WORKLOAD_GET_STATISTIC'
           exporting
                periodtype                 = 'M'
                hostid                     = p_host
                startdate                  = p_start
                only_application_statistic = 'X'
           tables
                application_statistic      = applica_
           exceptions
                unknown_periodtype         = 1
                no_data_found              = 2
                others                     = 3.
      sort applica_ by entry_id account.
      loop at applica_  where entry_id(1) ge 'Y'.             "#EC PORTABLE
        clear wa_applicau-entry_id.
        wa_applicau-entry_id(25) = applica_-entry_id.
        wa_applicau-account      = applica_-account.
        wa_applicau-count        = applica_-count.
        collect wa_applicau into applicau.
      endloop.
      sort applicau by entry_id count descending.
      applica_-ttype    = space.
      applica_-account  = space.
      modify applica_ transporting ttype account
             where ttype ne space.
    collect only enhancements statistic
      if p_temp = 'X'.
        loop at applica_.
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      else.
        loop at applica_ where entry_id(1) ge 'Y'.            "#EC PORTABLE
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      endif.
    endform.                               " WORKLOAD
    </pre>

  • Parsing XML Namespace in as2

    HI, I am attempting to parse some weather information from the Yahoo weather RSS feed.
    This is a typical XML node;
    <description>Yahoo! Weather for Palm Springs, CA</description>
    I used the typical XML parsing code in as2;
    var text1 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    txt1.text = text1;
    I was doing pretty good until I reached a node that was formatted thus;
    <yweather:forecast day="Mon" date="28 Sep 2009" low="74" high="103" text="Sunny" code="32" />
    This text traced a value of undefined.
    I have tried to research this and so far all I have been able to find out, is that this is a XML namespace and is very easily handled in as3. Unfortunately I have to use as2.
    How do I parse out this information into a dyamic text fields?
    Or failing that, where in the literature does adobe expalin how this is done?
    Forrest

    Hi,
    Try this code:
    var xmlname:XML = new XML();
    xmlname.ignoreWhite = true;
    xmlname.load("sample.xml");
    xmlname.onLoad = function(sucess:Boolean){
    var xNode = xmlname.firstChild;
    var tday = xNode.childNodes[0].attributes.day;
    var tdate = xNode.childNodes[0].attributes.date;
    trace(tdate);

  • Accessing Dynamic Internal table fields

    Hello All,
    I have one internal table ep_tabx having 138 columns whose data is getting displayed
    by using function module reuse_alv_grid_display.
    Now my query is, i have created one custom button on the appl toolbar to download ep_tabx data.
    IF the user changes the the layout of the output at runtime and then presses that custom button
    then i have created one dynamic internal table using call method cl_alv_table_create=>create_dynamic_table suppose <dyn_table> whose struc will be that of
    dynamic fieldcatalog returned by using FM REUSE_ALV_GRID_LAYOUT_INFO_GET.
    And then I have put a loop on the int table ep_tabx and move corresponding to the int table
    <dyn_table>. But when i download the <dyn_table> data through GUI_DOWNLOAD the
    date fields data is not getting downloaded correctly. I have 4 date fields in my ep_tabx.
    In the alv grid output the date is getting displayed like 08/30/2004(ie mon/date/yr) but in download
    file it comes like 20040830(ie yr/mon/date and that too without /).How to access the dynamic
    internal tables fields separately so asto convert them in the pgm before the download.
    Kindly Help.
    Thanks in advance.
    Mansi

    Hi,
    Search in SDN you would get loads of info on accessing dynamic itab's .
    in order to convert your date format use WRITE stmt to convert the value in your itab before passing it to download FM.
    Regards,
    Raghavendra

  • Query to get a value for each day in a month

    Hi All,
    I'm needing a query (preferably without a loop or function) that can get a number representing each day of a given month.
    For example for the month of February, the result would be 1,2,3,....28
    Surely this can be done?
    Thanks!

    SQL> with a as (
      2  select trunc(sysdate,'Month') mon from dual)
      3  SELECT mon + LEVEL - 1 AS dates
      4  FROM a
      5  CONNECT BY LEVEL <= ADD_MONTHS (mon, 1)  - mon;
    DATES
    01-FEB-11
    02-FEB-11
    03-FEB-11
    04-FEB-11
    05-FEB-11
    06-FEB-11
    07-FEB-11
    08-FEB-11
    09-FEB-11
    10-FEB-11
    11-FEB-11
    DATES
    12-FEB-11
    13-FEB-11
    14-FEB-11
    15-FEB-11
    16-FEB-11
    17-FEB-11
    18-FEB-11
    19-FEB-11
    20-FEB-11
    21-FEB-11
    22-FEB-11
    DATES
    23-FEB-11
    24-FEB-11
    25-FEB-11
    26-FEB-11
    27-FEB-11
    28-FEB-11
    28 rows selected.or if u want it in one query,Then
    SQL> SELECT trunc(sysdate,'Month') + LEVEL - 1 AS dates
      2  FROM dual
      3  CONNECT BY LEVEL <= ADD_MONTHS (trunc(sysdate,'Month'), 1)  - trunc(sysdate,'Month');
    DATES
    01-FEB-11
    02-FEB-11
    03-FEB-11
    04-FEB-11
    05-FEB-11
    06-FEB-11
    07-FEB-11
    08-FEB-11
    09-FEB-11
    10-FEB-11
    11-FEB-11
    DATES
    12-FEB-11
    13-FEB-11
    14-FEB-11
    15-FEB-11
    16-FEB-11
    17-FEB-11
    18-FEB-11
    19-FEB-11
    20-FEB-11
    21-FEB-11
    22-FEB-11
    DATES
    23-FEB-11
    24-FEB-11
    25-FEB-11
    26-FEB-11
    27-FEB-11
    28-FEB-11
    28 rows selected.
    SQL> Regards
    Umesh

  • How to calculate the quaterly based (in year 4 quater)?

    Hi all,
         this is krishna . quarter wise i am calculating .in year  4 quarters .
        i quarter 01.01.2007 to 31.03.2007,
        second quarterly .01.04.2007 to 31.06.2007 ,
         Like this i want calculate.
         that i want to write in select statement .
          this is my own table in that table i have in-period ( date field).
        how to retrieve the this field .
        it very urgent for me.
       Regards,
        krishna.

    check the code .
    REPORT zforum12 message-id vij.
    PARAMETER: DATE LIKE SY-DATUM.
    DATA : MON(2) TYPE C.
    data : v1 like sy-datum.
    data : v2 like sy-datum.
    MON = DATE+4(2).
    CASE MON.
    WHEN '01' OR '02' OR '03'.
    WRITE:/ 'FIRST QUARTER'.
    perform quarter_dates.
    WHEN '04' OR '05' OR '06'.
    WRITE:/ '2ND QUARTER'.
    perform quarter_dates.
    WHEN '07' OR '08' OR '09'.
    WRITE:/ '3RD QUARTER'.
    perform quarter_dates.
    WHEN '10' OR '11' OR '12'.
    WRITE:/ '4TH QUARTER'.
    perform quarter_dates.
    ENDCASE.
    form quarter_dates.
    if mon = '01' or mon = '02' or mon = '03'.
    v1+0(4) = date+0(4).
    v1+4(2) = '01'.
    v1+6(2) = '01'.
    v2+0(4) = date+0(4).
    v2+4(2) = '03'.
    v2+6(2) = '31'.
    write:/ 'Quarter start date', v1.
    write:/ 'Quarter end date', v2.
    endif.
    if mon = '04' or mon = '05' or mon = '06'.
    v1+0(4) = date+0(4).
    v1+4(2) = '04'.
    v1+6(2) = '01'.
    v2+0(4) = date+0(4).
    v2+4(2) = '06'.
    v2+6(2) = '30'.
    write:/ 'Quarter start date', v1.
    write:/ 'Quarter end date', v2.
    endif.
    if mon = '07' or mon = '08' or mon = '09'.
    v1+0(4) = date+0(4).
    v1+4(2) = '07'.
    v1+6(2) = '01'.
    v2+0(4) = date+0(4).
    v2+4(2) = '09'.
    v2+6(2) = '30'.
    write:/ 'Quarter start date', v1.
    write:/ 'Quarter end date', v2.
    endif.
    if mon = '10' or mon = '11' or mon = '12'.
    v1+0(4) = date+0(4).
    v1+4(2) = '10'.
    v1+6(2) = '01'.
    v2+0(4) = date+0(4).
    v2+4(2) = '12'.
    v2+6(2) = '31'.
    write:/ 'Quarter start date', v1.
    write:/ 'Quarter end date', v2.
    endif.
    endform.                    " quarter_dates
    just pass the values into ur select v1 and v2 .
    regards,
    vijay

Maybe you are looking for

  • Itunes wont be friends with my itouch!!

    when i got my itouch i synced it up to my desktop compy. since then ive downloaded a bunch of apps, pics and stuff but i only synced it once or twice to that compy. now i gotta lappy and when i plug my itouch in it wibt show up under devices and afte

  • Inserting into XMLType View

    I have created an XMLType view with an INSTEAD OF trigger to insert data into the underlying tables. I used your example on XMLType view of Relational Content It works great if I have no attributes defined in the root element of the XML document (i.e

  • CP 5 Project templates wrong after upgrade to CP 5.5

    Hi, I just upgraded my CP 5 to CP 5.5 and discovered that all my project templates are NOK anymore This is what I see: All Placeholders no matter which one have an angle of -1 in CP 5.5. I opened the templates in CP 5 and they are still OK. Reopen in

  • Database connection problem in Oracle 8.1.6

    Hi, I have a program which was written in C++ and Pro*C for UNIX. I didn't use runtime context for database connection.The program runs ok under Oracle 8.0.4. When compiled and run under Oracle 8.1.6 I got a "libc internal error - _rmutex_unlock not

  • Sql commad to copy a table

    Hi can u give me a command to make a copy of an existing table in the databse. Thanx