Month,year wise

month,year wise query.
Posted: Jan 3, 2012 11:28 AM Edit Reply
i have from anf to date parameter
if i enter from date 13-jan-2011 and to date is null (upto as on date )
i created matrix format.
but i need the how to print the months in matrix column cell
ex: dec/2010 jan/2011 feb/2011 mar/2011 .... dec/2011 jan/2012
based on from and to date parameters.
we need to start 31/dec/2010
how to write the query.

what is the month & year on which you're based, to collect the data?
Thanks & Best Regards,
HuaMin

Similar Messages

  • Report display will be 2010,2011 year wise display and 2012 Month display

    Hi,
           I want to Create Report, output will be 2010,2011 year wise display, 2012,2013 month wise display and Fiscal year quarter display, all are display based on input value of Fiscal year data, please anyone guide me, How to do?
    Thanks,
    Nandish

    Hi, 
          How to assign KF to Time Characteristics,My report dsplay will be like this, For example
          Input Fiscal YEAR=2010 to 2013
                        Material              2010   2011  APR.2012 to MARCH 2013 
    Quantity              A1              200      300        *                    *
    Quantity              A2              300      400        *                    * 
    Also Display quarter wise display. How to do
    Thanks,
    Nandish

  • Can i get month, quarterly, half yearly, yearly wise sales report basing on

    hi,
    sap gurus,
    good evening to all,
    how can i get month, quarterly, half yearly, yearly wise sales report basing on division and material.
    is there any std transaction code for that.
    customization is requried for that.
    regards,
    balaji.t
    09990019711

    Standard SAP SD Reports:=
    Statistic Group:
    Purpose u2013 To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type .....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Regards,
    Rajesh banka

  • How to save and month and year wise values

    Hi friends,
    in my ztable i have to enter values manually for month and year wise..
    so i have to create parameter for month and year how to create it.
    in my parameter month and year fields..
    once he given month and year  then he should enter values for fields..
    i have doubt how to give parameter for this...table..
    example: month: 1
                 year : 2007
    after that user enter values for following fields.
           kunnr
           name
           core values
           noncorevalues
    above fields user will enter values month wise ..
    once he enter the values for january it should save ...
    next he enter values for february and it will save..
    when ever he want to see the january month data how can he see..
    is there any logic for the above problem...

    Hai venkat,
    I am not totally clear with your question some how i understood. I give my opinion may be it ll help ful to you.
    In your ztable you want to enter the values for the fields kunnr, name, core values ,noncorevalues as per month. 
    As i say in your ztable add another field as  month  with other 4 fields. Provide the table maintenance for your table or else in se11 -> table display ->utilities -> table contents -> create entries is one way.
    If you proivided  maintenance for your table go to SM30. where you can manually enter values .
    <b>reward if useful</b>
    Regards,
    sunil kairam.

  • Report by Day/Week/Month/Year

    Hi All,
    I have the table showing below
    Empid     name     tikcetno     Completed date
    694     anil     10051     23-Jun-09
    695     madhu     10052     23-Jun-09
    694     anil     10053     23-Jun-09
    695     madhu     10054     22-Jun-09
    695     madhu     10055     6-Jan-09
    I need to create the report which will show employee wise count of tickets in a day,week,month and year.                  
    Day: count(tickets) for current date
    Week: count(tickets) for current week
    Month: count(tickets) for current month
    Year: count(tickets) for current year
    I need to show all these four columns in a horizantal table. I am using crystal reports2008. Please help me. ur help would be appreciated.
    Anil.

    Hi,
    create 4 formulas for day, week, Month and year
    for ex, in Day formula
    IF Date Field = CurrentDate then 1 else 0... similarly for other ranges. Create a Group based on employee, and insert a SUM  summary field of these formulas in Group header.
    Hope this will help you.
    Jyothi
    Edited by: Jyothi Yepuri on Jul 13, 2009 3:04 AM

  • How to get data with out having any date/timestamp columns by year wise

    hi,
    how can i select years wise rows from tables,if that have not any date/timestamp column.

    Well Govind it quite depends on what is the data type of that column and the format in which it is stored.
    If the data type is varchar2/varchar and all the values are in a uniform format then there is no problem. All you need to use is the to_date function to convert the supplied strings to default date format and then use to_char function to only extract the YY or YYYY or RR or RRRR aspect of the data.
    For example: If the column is called 'hire_date' and it's data type is varchar2 and the entries in this column are all in a uniform format, say month,date,year like January,12,1999. What you need to do is convert this string to a default date value using to_date function, like to_date(hire_date,'format_model') In the format model mention the format of the hire_date string. The out put of this function can be fed into to_char to extract the year, like to_char(output_of_to_date,'YYYY')
    I hope you got what I meant. Let me know if it was of any use.

  • Fiscal Year wise GR Value display

    Dear SDN,
    I need to generate the report Fiscal year wise GR Value.
    Example:
    Selection Parameters:
    Material number:
    Fiscal Year(Apr to March):
    Output ... like this.
    Fiscal Year  GR Value in cr
    2006          100
    2007          200
    2008          300
    2009          400
    In the cube time chars are Calender Year,Calender Year/Month,Calender Year/Quarter,Fiscal Year/Period but Fiscal Year is not
    availabe......
    waiting for reply
    Thanks & Regards,
    Praveen.K

    Hi,
    We can do it using 2LIS_02_ITM and 2LIS_02_SCL with 0PUR_C01 InfoCubes. So check it, I have done using the same combinations.
    https://wiki.sdn.sap.com/wiki/display/BI/BWSDMMFIDATASOURCES
    Else you also check 0IC_C03 with 2LIS_03_ * DataSources.
    Thanks
    Reddy

  • I want to display year wise sales value

    Dear expert's,
                         i am loaded sales overview infocube 0sd_c03 with 11 series infosource in to infocube  expect for calyear..... time chara.......
    so i am only having monthwise values in infocube. now i want to display year wise sales value in my query based on month wise time chara....values.......
    how to do it..... with out loading once again in to infocube.......
    Regards
    Harikrishna N

    Bex 3.x displays report in Excel as you know.
    In the Bex query designer ,include a dummy formula or calc kf or any such thing
    In the excel sheet, you have option of writing a VB code that can refer you calmonth and populate relevant calyear in that dummy column created by you.
    This will avoid any kind of upload in cube as the data population goes in runtime. For huge data sets , check on performance

  • Need information in Year wise report

    Dear All,
    I am doing year wise report, in that i got total quantity for every month.
    But my problem is if there is no transaction in that month i didn't get for that month, i need that month with total quantity is 0.
    Please help to solve this issue.
    thanks & Regards
    Adina

    Try this..
    SELECT sum(po.No_POS) over(order by mths.dt) Quantity ,
           to_char(trunc(mths.dt,'MM') , 'MON-YYYY') "Month"
    from
        (select count(poh.segment1) No_POS
              , to_char(trunc(poh.approved_date,'MM') , 'MM-YYYY') Month_PO
         from po_headers_all poh
         where poh.type_lookup_code='BLANKET'
         and poh.approved_flag='Y'
         and poh.approved_date>=nvl(:P_FROM_DATE,poh.approved_date)
         and poh.approved_date<=nvl(:P_TO_DATE,poh.approved_date)
         group by trunc(poh.approved_date,'MM'))po,
        (SELECT add_months('01-DEC-2005', lvl) dt
         FROM (select level lvl
               from dual
               connect by level < 1000)) mths
    WHERE to_char(trunc(mths.dt,'MM') , 'MM-YYYY')= po.Month_PO(+)
    and mths.dt between :P_FROM_DATE and :P_TO_DATE
    order by mths.dtMessage was edited by:
    jeneesh
    Tested Like..
    SQL> select * from po_headers_all;
      SEGMENT1 APPROVED_
             1 28-SEP-07
             2 23-SEP-07
             1 09-AUG-07
    SQL>  SELECT sum(nvl(po.No_POS,0)) over(order by mths.dt) Quantity ,
      2          to_char(trunc(mths.dt,'MM') , 'MON-YYYY') "Month"
      3   from
      4       (select count(poh.segment1) No_POS
      5             , to_char(trunc(poh.approved_date,'MM') , 'MM-YYYY') Month_PO
      6        from po_headers_all poh
      7        --where poh.type_lookup_code='BLANKET'
      8        --and poh.approved_flag='Y'
      9        --and poh.approved_date>=nvl(:P_FROM_DATE,poh.approved_date)
    10        --and poh.approved_date<=nvl(:P_TO_DATE,poh.approved_date)
    11        group by trunc(poh.approved_date,'MM'))po,
    12   --date is changed here and no extra subquery needed
    13       (SELECT add_months(sysdate-365, level) dt
    14        from dual
    15   --dates are HARDCODED here
    16        connect by level < (months_between(sysdate,sysdate-365)+1)) mths
    17   WHERE to_char(trunc(mths.dt,'MM') , 'MM-YYYY')= po.Month_PO(+)
    18   order by mths.dt;
      QUANTITY Month
             0 OCT-2006
             0 NOV-2006
             0 DEC-2006
             0 JAN-2007
             0 FEB-2007
             0 MAR-2007
             0 APR-2007
             0 MAY-2007
             0 JUN-2007
             0 JUL-2007
             1 AUG-2007
             3 SEP-2007
    12 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Year wise total

    Hi i am getting data for month wise..
    month wise diffrent data is coming ...
    i want to sum year wise total based on month wise total..
    how can i do this...

    As a sample code...i given here..
    give your code too..
    data: yr(4) type c,
    sum(10) type p decimals 2.
    sum = 0.
    sort itab by mdate.
    loop at itab into wa.
    sum =  sum + amount.
    at end of mdate+0(4).
    write:/ sum.
    sum = 0.
    end at.
    endloop.
    Message was edited by:
            Ramu

  • How to Include previous Month/Year in Transformation

    Hi,
    From Source System (DB Table;DB Connect)
    Location_ID,EMP_ID,AMOUNT
    There is no date field avaliable in the source system.
    The Data load to BW will me Monthly frequency...I,e:Data will be loaded once in a Months on 1st of every month.
    My requirment is to Include a date field in BW transformations which input previous month/year data for every record
    How can i do that and wether do i need to write a start or field routine in transformations
    Code please
    Thanks

    Hi Pal,
    You could use the following code to achieve this:
    DATA: v_calmonth(6) TYPE c,
          v_month(2) TYPE c,
          v_year(4) TYPE c.
    v_month = sy-datum+4(2).
    v_year = sy-datum+0(4).
    IF v_month = 1.
      v_year = v_year - 1.
    ENDIF.
    IF v_month = 1.
      v_month = 12.
    ELSE.
      v_month = v_month - 1.
    ENDIF.
    CONCATENATE v_year v_month INTO result.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Date Calculations - Adding 1 to the day and adjusting month/year

    Hi all,
    I have a date field in MM/ DD/ YYYY format. If I add 1 to the DD (day) field, and I hit the end
    of the month/year I need to adjust the MM and YYYY accordingly.
    Is there is an existing class/method in the JAVA API that would handle somthing like this??
    If so , I can't find it..... I don't want to re-invent the wheel creating a Date Handling routine just
    for this program.......
    Thanks very much

    This is overkill... (and sorry that this post is over a year later than the original post... hopefully somebody will benefit from it :)
    Calendar.getInstance() by default instanciates a GregorianCalendar
    object. (check the src).
    Therefore:
    Calendar cal = Calendar.getInstance();
    cal.setTime(d); // where d = java.util.Date or java.sql.Timestamp
    cal.add(Calendar.DATE, numberOfDays);
    return cal.getTime();
    public static java.util.Date
    adjustDateBy(java.util.Date d, int numberOfDays) {
    java.util.GregorianCalendar cal = new
    java.util.GregorianCalendar();
         cal.setTime(d);
    cal.add(java.util.GregorianCalendar.DATE,
    numberOfDays);
         return cal.getTime();

  • Disconnected Slicer in PowerView - Hour | Day | Week | Month | Year | Max

    I want to create a Power View chart in Power BI with the Minute/Hour/Day/Week/Month/Year filters:
    Workbook can be downloaded at:https://www.dropbox.com/s/r00btg5zb8snohz/Disconnected%20Slicer%20Demo.xlsx?dl=0
    when MINUTE is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 60 seconds (from current time) with 5 or 10 seconds interval.
    when Hour is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 60 minutes (from current time) with 5 minutes interval.
    ex: 10:00AM 10:05AM 10:10AM ...................................11:00AM
    when DAY is selected the chart should display:
    Total Number of Msgs vs. X-axis showing last 24 hours (12AM to 11:59PM with 1 hour interval)
    when WEEK is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 7 days from current datetime stamp with 1 day interval.
    when MONTH is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the 30 days from current datetime stamp with 1 day interval
    when YEAR is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 12 months from current day with 1 month interval
    It would be great if the PowerView chart can be made to look something like this:
    shown in the below link:
    When '5 Day' is selected the values in the Y axis and X axis change automatically.
    Here's the link:
    https://www.google.co.in/search?&biw=1600&bih=799&sclient=psy-ab&q=google+share+price&oq=google+share+price&gs_l=serp.3..0l4.148.192.3.270.2.0.0.2.2.0.0.0..0.0.msedr...0...1c.1.60.serp..0.2.11.Jf8jXyUgmDA&pbx=1&bav=on.2,or.r_qf.&bvm=bv.82001339,d.dGY&ech=1&psi=qcGPVJmeJoHGmQXsooDACQ.1418707370733.9&ei=nsOPVJGiI6GgmQW0g4LABA&emsg=NCSR&noj=1
    for more clarifications and information please feel free to reach out to me at [email protected]
    www.twitter.com/mph88

    Hi Manjunath,
    Currently looking into a possible solution although some of the limitations within Power View restrict how close we can get to the ideal result. Still exploring some approaches :)
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn

  • Studio : Chart Based on day/month/year

    In Studio , There is a requirement for us to display chart based on day/month/year .
    Since Date attribute is not displayed as a Dimension in the chart configuration list , I have divided  date attribute into  day/month/year attributes and based on that I generated a sample chart
    But now I'm facing with a problem
    Suppose there are records for only July and Sep then the chart shows up for July and Sep , It doesn't show up for august.
    I agree that there are no records for august in my data domain that is the reason august is not displayed in the chart . But as per our requirement we should display august as well with zero count.
    I'm curious to know if there is any way to do this .

    The idea behind the calendar record type is it is a secondary, new record type you're introducing that compliments your "sales" record type.  The RECORDs you provided would be your "sales" record type, not your "calendar" record type.  To continue with your example, your "sales" records would look like what you provided:
    =============== RECORD ==================
    Id: 1
    sales_amount : 1000
    Month: Oct
    RecordType: sales
    date: 2012-10-01T00:00:00.000Z
    day: 01
    year: 2012
    =============== RECORD ==================
    Id: 5
    sales_amount: 1000
    Month: Dec
    RecordType: sales
    date: 2012-12-01T00:00:00.000Z
    day: 01
    year: 2012
    ==========================================
    And your "calendar" record type would be loaded subsequently.  I usually provide one Endeca record for every day for this record type:
    =============== RECORD ==================
    Id: 1
    Month: Oct
    RecordType: calendar
    date: 2012-10-01T00:00:00.000Z
    day: 01
    year: 2012
    =============== RECORD ==================
    Id: 2
    Month: Oct
    RecordType: calendar
    date: 2012-10-02T00:00:00.000Z
    day: 02
    year: 2012
    ==========================================
    (and so on, one for each day up to today...yawn)....
    =============== RECORD ==================
    Id: 790
    Month: July
    RecordType: calendar
    date: 2013-07-31T00:00:00.000Z
    day: 31
    year: 2013
    ==========================================
    Thus, when you write an EQL statement like:
    RETURN foo AS SELECT
    SUM(sales_amount) AS "TotSales"
    GROUP BY Month
    You will get a Month bucket for every month, where the "calendar" record type will be sure to offer a month where sales don't offer it...aka. fill in any "holes".
    HTH,
    Dan
    http://branchbird.com

  • Month Year values based on Posting Date

    In my super huge extra large InfoCube (0CFM_C10) I got a lot of data. I take Posting Date, some KFG and CalMonth/Year. Unfortinally CalMonth/Year duplicates records, if I drop it off the columns/rows I get valid data by Posting Date.
    My question is this - is it possible to create some MonthYear Calculated KFG/field/formula or smthng. based on Posting Date? In other words I need Month/Year in rows/ columns or free characteristics...
    Edited by: Gediminas Berzanskis on Mar 18, 2008 10:18 AM

    Dear,
    When canceling a payment which was created in previous posting periods,
    we  get system message "Date deviates from permissible range",so
    the workaround is changing back the posting period to the previous one
    and try to cancel the payment.
    However,another system message pops up when we try to cancel payment
    after changing back the posting period,which is the "creation date" or
    "posting date".
    In this scenario, you should select the second option from the
    cancellation options window, which is the 'Creation date'. I would like
    to explain more below.
    Posting Date- means the posting date of the cancellation document, it's
    not the posting date of the incoming payment that you wanna perform the
    cancellation. In your case, selecting this 'posting date' option, system
    deems that you want to post this cancellation document on its own
    posting date.
    Creating Date- means the posting date/creation date of the incoming
    payment, it makes sense that the system works fine if you select this
    option. If you cancel the incoming payment and check the JE generated,
    you will find that the posting date of this cancellation document is
    actually recorded as the posting date of the incoming payment.
    Wish it helps you.If you have any problems,please kindly let me know.
    Thanks and best regards,
    Apple

Maybe you are looking for

  • My iphone is not showing up in itunes

    When I plug my phone up to my computer the phone doesn't appear in the itunes window.

  • Error Deficit of PU IR quantity

    Hi W hen i tried to post goods reversal (102 MVMT) the error  "Deficit of PU IR quantity xxxxxxx" coming Could you please suggest what is the cause Regards Subbu

  • New cluster sample code

    Hello, There is a new cluster sample code under the sample code directory. Description: Giving a new collection of documents or a document hitlist from a new query, it will be more efficient for users to known what is in the collection by organizing

  • SAP Third Party PO

    Hi All,           I am getting a third party PO created in our system coming from another enterprise. this happens as following Enterprise sends out ORDERS05 PO to there PI/XI which is transmitted to our PI/XI in which they map the ORDERS05 xml messa

  • Media Manager modifed storage wrong

    I am trying to make a copy of a 22 minute sequence and it's media to a new volume using media manager. the media is 10-bit uncompressed HD. my original storage was 2.2 TB and i had nearly 5 hours of footage. Now, when i attempt to make a copy out (wi