Fetching data for past 13 months

Hello Team
                   I have a data model . Now i want some suggestions . My requirement is that when i try to pull data from my HANA DB i should give current data and automatically the data of past 13 months should come . What technique i should apply to achieve the same .
Regards

Hi,
Have a look on the below documents:
How To...Calculate YTD-MTD-anyTD using Date Dimensions
Applying YTD in SAP HANA with SAP BO Analysis Office ( Using Projections )
Regards,
Krishna Tangudu

Similar Messages

  • How to get active programs/custom ABAP developments for past 6 months?

    All,
    Is there any transaction/table/program/FM to get active programs for past 6 months?
    Intention here is to get actively used custom ABAP developments.
    Regards,
    Sree

    Hi Sree,
    I usually look up the activity in transaction ST03N (Workload analysis). In most systems the standard activity statistics are available for up to three months. You can extend the period of course, see this [thread|ST03N Data; for further details.
    Once in the transaction, switch to expert mode. Under Workload node, expand 'Total'. Double click on the desired range you want to analyze. Switch to 'User Data' tab in the right window and in the lower left pane under 'Analysis View', double click 'Transaction Profile'.
    The # of steps roughly estimates how many times a particular transaction has been executed.
    Best regards,
    Asim

  • Program to collect user u2013 transaction execution data for past period

    Hi Experts
    We are developing a program to collect user u2013 transaction execution data for past period ( 3 months-1 year ). We are getting required User and Tcode output but unable to find exact count per tcode ( executed by respective user).
    We have following count components available in SAPWL_WORKLOAD_GET_STATISTIC / SWNC_COLLECTOR_GET_AGGREGATES
    COUNT , DCOUNT ( Dialog count for transaction ) , UCOUNT , BCOUNT , ECOUNT, SCOUNT ,LUW_COUNT .
    Out of which  LUW_COUNT -Logical Units of Work comes close to no ot time transaction was executed but itu2019s even not the exact count as one transaction code can have more than one LUW .
    Does anyone have idea about how to get the right count .
    Thanks
    Vani

    If audit log is enabled in SM19 for transaction criteria all, you can get the transaction history executed by the users. But may need more space on audit file system if this is enabled for all users. May be you can archive once in 3 months into ZIP files and can unzip whenever you need.

  • Release Date for Albums Year, MONTH DAY

    Why can't I enter the release date for albums (Year month and day)?   Itunes has a field for year but that's it.    I would have loved to be at the meeting where it was discussed.
    "Year, month and day? why the heck would any want that?"
    "Well a lot of us want to see our albums in chronological order and you can't do that with just the year, many albums come out every year"
    "Blah Blah Blah, music is just to dance to, no one cares about dates, besides it would four extra digit fields in each entry"
    But seriously, I would think that Itunes would aspire to be THE program for music lovers.
    Instead of being able to just enter the release dates I have had to come up with my own work around.  I put a the release date in the format yyyymmdd in fromt of each title and then sort by titles.
    Now all of my Beatle albums finally show up in chronological order by release date.   But why should I have to massage the data like this.   I can't imagine what goes on at Itunes planning  sessions.  I'm very unhappy about the loss of cover flow but that's another story.

    I'm glad to hear that I am not the only one who sees this as a problem.  And another Beatles fan too.
    This is so fundamental.  Every album has a release date and it's part of the data that is always associated with  that album.   Why did Apple look at the data available for an album and consciously decide to truncate it?
    What kind of music lover isn't aware of when albums are released?  I just don't get it.
    I like having the date yyyymmdd in front of each album.   It isn't pretty but it means the albums are chronological.   If you want, you could just put this in the sort field and leave the regular album title in the regular field.   Then the names would be right and they would sort correctly.   But again.  Why should we have to do all that? 
    Apple is busy constantly changing where the controls are on I tunes  rather than fixing something simple and important like this.
    Today I wanted to load some songs onto my ipod touch and it took me 10 minutes to figure out how to sync because the last itunes update got rid of the side bar.  
    How are you supposed to get comfortable using a product when they keep moving the controls around?   Just quit apple.   leave the controls where they are.  Add new controls if needed but stop moving them.  I know I'm ranting now but I am honestly angry and frustrated,

  • How to fetch data for a struture from a cluster table

    How can I fetch data for a struture, from a cluster table, based on the name of the structure?

    Hi,
    In order to read from Cluster DB Table use the following statement:
    Syntax
    IMPORT <f1> [ TO  < g1 > ] <f2> [TO < g2 >] ...
    FROM DATABASE <dbtab>(<ar>)
    [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].
    This statement reads the data objects specified in the list from a cluster in the database <dbtab>.
    You must declare <dbtab> using a TABLES statement. If you do not use the TO <gi> option, the
    data object <fi> in the database is assigned to the data object in the program with the same
    name. If you do use the option, the data object <fi> is read from the database into the field <gi>.
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key>
    identifies the data in the database. Its maximum length depends on the length of the name field
    in <dbtab>.
    The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    For Eg:
    PROGRAM SAPMZTS3.
    TABLES INDX.
    DATA: BEGIN OF JTAB OCCURS 100,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF JTAB.
    IMPORT ITAB TO JTAB FROM DATABASE INDX(HK) ID 'Table'.
    WRITE: / 'AEDAT:', INDX-AEDAT,
    / 'USERA:', INDX-USERA,
    / 'PGMID:', INDX-PGMID.
    SKIP.
    WRITE 'JTAB:'.
    LOOP AT JTAB FROM 1 TO 5.
    WRITE: / JTAB-COL1, JTAB-COL2.
    ENDLOOP.
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 12, 2009 1:35 PM

  • How to set the filter on a report to show the data for the Current Month

    Hi all,
    I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
    Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
    Any help would be greatly appreciated!
    Thanks,
    AA

    You need to add a session variable to date fir worked assuming that this is a date field.
    To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section.

  • Error: can't fetch data for this host - too few bytes supplied by RPC

    Hi,
    In our internal Lab we have:
    One Admin, Media,Client Server (we can make backups for himself) - Solaris 10 with DDS4 tape drive (lab)
    One Windows Client (we can make backups) - Windows XP
    One Linux Client - CentOS 5.1
    When we add the linux client with the command:
    mkhost -a ob --inservice -r client -k 1024 linux
    We receive this message in the linux (host) /usr/tmp/observiced.log
    Error: can't fetch data for this host - too few bytes supplied by RPC partner (OB cached object manager)
    And in the obtool we receive (forever looping)
    Info: waiting for host to update certification status...
    Can you help us with this linux client error ? (iptables and selinux disabled!!)
    Thanks in Advance
    Serpins

    [SOLVED]
    Selinux not well removed....
    Thanks in Advance
    Serpins

  • Query for items on hold and items that are inactive for past 18 months.

    Hi Experts,
    We are on the process of initializing a new database due to database size, our client requested that we extract items from the current live database but only those items that are not On Hold and has been active for past 18 months. Those items that does not have transaction for the past 18months and currently on hold will be dropped. What will be the query to extract based on this filter? Please help. Thank you.
    Regards

    Hi,
    You may try this first:
    Select  t0.itemcode, t0.itemname, t0.onhand
    from dbo.oitm t0
    where t0.itemcode not in
    (select distinct itemcode from dbo.oinm  where DateDiff(DD,DocDate,GetDate()) < 548 group by itemcode)
    and t0.InvntItem = 'Y' and t0.Frozenfor = 'Y'
    Thanks,
    Gordon

  • Date for every 3 months

    Hi experts,
    I have table with date and price . This table contains date for every day and corresponding price for that day. But I need to write a sql ,which outputs data for every three months .
    Eg: If my data in a table starts from jan-15-2009 to jan-15-2010 , then I should output the data like below .
    Jan-15-2009 20
    APR-15-2009 40
    JUL-15-2009 15
    OCT-15-2009 5
    JAN-15-2010 45
    Request all to help me . :(
    many many thanks in advance.
    Regards,
    Dirasa

    An alternative that doesn't require dates to be generated (again, apart from the setup data - nb. I have incorporated some of the logic into the data setup subquery, in order to make the final sql statement easier to read. You would replace "trunc(p_period_begin - 1 + level)" in the period_start_date column with whatever your date column is called):
    with param as (select trunc(sysdate) p_period_begin, 14 days_in_period from dual),
        my_tab as (select p_period_begin,
                          days_in_period,
                          p_period_begin - 1 + level dt_col,
                          trunc(p_period_begin) + days_in_period*floor((trunc(p_period_begin - 1 + level) - p_period_begin)/days_in_period) period_start_date,
                          level amount
                   from   param
                   connect by level <= add_months(p_period_begin, 12) - p_period_begin + 1)
    -- end of data setup
    select period_start_date,
           sum(amount)
    from   my_tab
    group by period_start_date
    order by period_start_date;
    PERIOD_START_DATE SUM(AMOUNT)
    17/11/2009                105
    01/12/2009                301
    15/12/2009                497
    29/12/2009                693
    12/01/2010                889
    26/01/2010               1085
    09/02/2010               1281
    23/02/2010               1477
    09/03/2010               1673
    23/03/2010               1869
    06/04/2010               2065
    20/04/2010               2261
    04/05/2010               2457
    18/05/2010               2653
    01/06/2010               2849
    15/06/2010               3045
    29/06/2010               3241
    13/07/2010               3437
    27/07/2010               3633
    10/08/2010               3829
    24/08/2010               4025
    07/09/2010               4221
    21/09/2010               4417
    05/10/2010               4613
    19/10/2010               4809
    02/11/2010               5005
    16/11/2010                731

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

  • Hyperion IR : Getting out of memory error while fetching data for whole year through web client (wrokspace)

    Hi,
    While fetching data though IR wen client from workspace for a year(all 12 months) I am getting error as ("Out of Memory .Advice : Close other applications or windows and try again").
    If I am trying same through IR studio it does not give any output and show me same repoting front page.
    If i am selecting periods till 8 months it is giving the required data in both IR web client and IR studio.
    Could you please suggest how can we resolve this issue.
    Thanks,
    D.N.Rana

    Issue Cause :
    Sometimes this is due to excessive data which brings the size of the BQY file up around one gigabyte uncompressed in size (for processing may take twice as actual RAM, plus the memory space space for the plugin, and the typical memory limit on a 32-bit system is 2 gigabytes).
    Solution :
    To avoid excessive BQY size exceeding memory availability:
    Ensure that your computer has at least 2Gb of free RAM before he runs IR Studio.
    Put a limit to the number of rows that can be pulled down: Right click on Request label of Query section and put a value in Return First xxx Rows (and check the check box).
    Do not pull down more than 750 MB of data (remember it may be duplicated while processing).
    Place limits or aggregations in Query section (as opposed to Result section) to limit data entering the BQY.

  • How to create a chart for past 12 months

    Our objective is to show month by month the cumulative growth of new accounts for the past 12 months.
    I know how to do cumulative. The problem is that for some of the months, we don't have new accounts. My pivot table only has those months that have new accounts. E.g. Month 1, Month 4, Month 5, Month 7, Month 10, Month 12. What I want is to have those months that do not have new accounts to have the same cumulative total as the prior month. So in my example, if Month 1 Cum = 10, then Month 2 Cum = 10, Month 3 Cum = 10, because Month 2, Month 3 do not have new accounts. This way, the chart would show data for each month.
    How do I do that?

    My requirement was slightly different, I had to built a report showing how many opportunities are going to a particular stage / week end (1/2/2009..1/9/2009 etc). I noticed that we do not have opportunities that goes to a particular stage in a certain week but still my chart should show there is a goal of 10 opportunities for that week end.
    What i did was i created 52 activities with a certain type (visible only to me) with a completed date of the specific weekend (It's a pain to create 52 activities, so i mass imported them). Now having done that i created a union of sales stage report and activities report. In both sales stage and activities i put filters to show case only the information that i need to see. Once i did this then i built pivots of the same.
    In your case i would suggest you create 12 activities one for each month i.e completed date 1/1/2009, 2/1/2009 etc. Then you build a accounts report with your specific conditions that would pertain its a new account. Let's say you have two fields # of Accounts, Month of created Date
    Unionize with Activities (filter for getting only the 12 activities that you created). Put two fields # of Activities, Month of Completed Date. Change the formula for # of Activities to 0 and rename the field to say # of Accounts.
    Once you do this build a pivot table and you will get your report. You can chart it if you want.

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • How to fetch data for all OUs

    Hi,
    Run below query:
    select * FROM PO_headers
    Result: no data
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('S','120');
    Run below query:
    select * FROM PO_headers
    Result:data for org_id=120
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('A','');
    select * FROM PO_headers
    Result: no data
    So how can we fetch data from all OUs whothout using PO_HEADERS_ALL tables?
    why do we have this MO_GLOBAL.set_POLICY_CONTEXT('A','') option?

    in 11i PO_HEADERS is view with org_id policy
    in r12 PO_HEADERS is synonym with policies based on multi-org
    so for r12
    SQL> select count(*) from po_headers;
      COUNT(*)
             0
    SQL> begin
      2    mo_global.set_policy_context('S', 101);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           110
    SQL> begin
      2    mo_global.set_policy_context('S', 82);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           235
    SQL>
    SQL> begin
      2      mo_global.init('SQLAP');
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           345
    SQL> select unique org_id from po_headers;
        ORG_ID
            82
           101
    SQL> mo_global.set_policy_context('S',<org_id>) - single operating unit
    mo_global.init(<app_short_name>) - multi operating unit

  • Fetching data for a specific operating unit

    Hi All,
    I want to apply a check in my query wherein the query fetches data only for a specific operating unit.
    Eg : If the concurrent program is run from a US responsibility then it should fetch data only for US and if it is run from Canada responsibility then it should fetch data only for Canada.
    Please advice what profile option check or any other check do I need to put in my query.
    I am using org_organization_definitions table in my query, will this table be of any help for the same.
    I am using 11i version.
    Regards,
    SS

    Please see if these docs help.
    Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
    Where To Set The "Operating Unit Mode" When Defining A Concurrent Program [ID 847094.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Connecting two printers to an Express?

    1. Can you plug a USB hub into an Airport Express N so you can connect more than 1 printer? 2. Can you have a printer connected to the usb port and another printer connected via the ethernet port? Thanks.

  • Include Subdirectories in Build

    I have a project with a few subdirectories that hold config files and header files the main program uses. I have set these directories as "Always Include". I have created teh directories in the "Destinations" section of the build properties Under Sou

  • Ihave a photo that looks like sun glare in 1/2 of the photo. How do i clean this up

    How do i clean up a photo that yellowed on 1/2 of the photo?

  • Limit range on 3D dial guage

    Hi, i am using 3D Dial gauge. I am trying to show the number of deviations per batch in gauge.for example  less than 20 as green, 20 - 40 as yellow and rest as red. In the SVG Element properties, i can see the red arc , green arc and yellow arc but h

  • Auto-capitalize form input

    Hi all, I've been seeing forms popping up here and there that auto-capitalize a user's input.  What I'm trying to get my form to do is capitalize each new word in a form field.  For example, instead of Firstname lastname, I'm going for Firstname Last