BEx analyzer 7.0 Report for last 3 months and current month

I need to create a report for a key figure (net value) and character (material), 0calday
Output format:
column1 : net value - previous year
column2 : net value - current year
column3 : net value - current quarter (separate columns for 3 months)
column4 : net value - previous quarter (separate columns for 3 months)
column5 : net value - current month
column6 : net value - 1st of month to current date (separate columns for each day).
Please help.
Points will be assigned.
Thanks
Mary.

Hi 
  U R infoprovider should have following time characterstics 
  0FISCAL YEAR, 0FISCAL MONTH/QTR 
column1 : net value - previous year
  On the basis of user input data derive the year and offset it by - 1 (VYEAR-1)and make a RKF for that  .
column2 : net value - current year
  On the basis of user input data derive the year(VYEAR) and 
   make a RKF for that  .
column3 : net value - current quarter (separate columns for 3 months)
  If QTR is there then derive the QTR on the basis of         0calday/else if month is there then determine month range       like 1-3 = Q1  4-6  = Q2 and it will be done in user exit  
column4 : net value - previous quarter (separate columns for 3 months)
  On the same way as above u can determine the same 
column5 : net value - current month
  On the basis of 0calday determine CALMONTH and create a      RKF for this 
column6 : net value - 1st of month to current date (separate columns for each day).
  Create a Exit variable type range on CALMONTH for this and 
   keep the range as 01-current month(which will be derivefrom     0calday) 
Thanks,
Debasish

Similar Messages

  • Queries Report For Last Purchased Price

    Dear All,
    Can someone helps me to get queries report for last purchased price vs new purchase price that recently being enter on purchased order.
    Trigger by purchased order document posting and we can choose % variance
    Report by order :
    No. Document PO ; Vendor code ; Vendor Name ; Doc Posting Date ; Item code ; Item Name : New Purchased price ; Last Purchased Price; Variance; Buyer Name
    i will used it on alert management.. each time there % variance automaticaly sending an email with those report.
    Thanks

    So.. is it the right query if i join it?:
    SELECT T0.DocEntry, T1.CardCode, T1.CardName, T1.DocDate, T0.ItemCode, T0.Dscription, T0.PriceBefDi, T2.LastPurPrc, (T0.PriceBefDi - T2.LastPurPrc) AS Variance, ((T0.PriceBefDi - T2.LastPurPrc)/T0.PriceBefDi) AS 'Variance%', T3.SlpName FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
    select * from opor where month(docdate) = MONTH(GETDATE()) and Year(docdate) = YEAR(GETDATE())
    But i still find document with last month posting include on the report adn the report became different too

  • How to make report for last 24 hours?

    Hello,
    I have a little problem, I can't make report for last 24 hours.
    Example:
    If I am running report on 2.1.06 at 14:00, I want to get results from 1.1.06 14:00 to 2.1.06 14:00.
    How do i make a report with this selection?
    Because,if I choose date from 1.1.06 to 2.1.06 and
    hour 14:00 to 14:00, I will only get results on 1st and 2nd on 14:00.
    If I choose 1.1.06 and 2.1.06, 14:00 to 24:00, I won't get results for 2.1.06 from 0:00 to 14:00.
    Because all selections use AND to get results.
    How can I choose that system compare selections with OR?
    How can I get results for last 24 hours?
    Best regards,
    Uros

    Hi,
    define a structure in your query with two entries. First one with 1.1. and > 14:00 and second one with 2.2. and < 14:00. Perhaps you need to fill the structure by user exits.
    Hope it helps,
    Leo

  • STAD Report for last month

    Hi,
       Iam getting stad report for last one week,iam not getting the stad report for last month.i want to get stad report for particular day in last month.how to rectify the same.
    Thanku

    Hi,
    rsau/local/file /usr/sap/LID/DVEBMGS00/log/
    you will have to set DIR_AUDIT parameter instead of it.
    Set the following parameter with reference value:
    Parameter                                  Description                                   Reference Value
    DIR_AUDIT                  Directory for security audit files          S:\ECP-AUDIT\ECP\DVEBMGS00\ECP_security_audit_log
    FN_AUDIT                  Name of security audit file                   ECP_AUDIT_++++++++.AUD
    rsau/enable                  Enable the Security Audit Log                       1
    rsau/max_diskspace/local       Maximum space for security audit file                 2147483647
    rsau/max_diskspace/per_day  Maximum size of all security audit files per day            (If you wish, otherwise let it be default '0')
    rsau/max_diskspace/per_file      Maximum size of one single security audit file             (If you wish, otherwise let it be default '0')
    rsau/selection_slots              Number of filters to allow for the Security Audit Log            (If you wish, otherwise let it be default '2')
    rsau/user_selection              Defines the user selection method used inside kernel functions         (If you wish, otherwise let it be default '0')
    activated profile in sm19,still iam not getting audit log for last week in sm20.
    After Proper setting of Security Audit log parameters, the Application Server needs to be restarted to make the changes effective. You will only get the Audit Data since the activation of valid Security Audit parameter.
    Regards,
    Bhavik G. Shroff

  • Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

    Hi experts,
    i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
    not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
    target dso where information is stored by fiscal period, year material etc. finally there is  a keyfigure in target whih needs to be filled with sum of 12
    months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
    i am not expert in abap please kindly gothrough and guide me in this
    TYPES: BEGIN OF s_/BIC/AZOSLS00,
    FISCPER  type /BI0/OIFISCPER,
    FISCVARNT  type /BI0/OIFISCVARNT,
    PLANT  type /BI0/OIPLANT,
    STOR_LOC  type /BI0/OISTOR_LOC,
    /BIC/MATERIAL  type /BIC/OIMATERIAL,
    VTYPE  type /BI0/OIVTYPE,
    BILL_QTY  type /BI0/OIBILL_QTY,
    END OF s_/BIC/AZOSLS00.
    DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
    wa_/BIC/AZOSLS00  TYPE s_/BIC/AZOSLS00.
    SELECT
    FISCPER
    FISCVARNT
    PLANT
    STOR_LOC
    /BIC/MATERIAL
    VTYPE
    BILL_QTY
         FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
           FOR ALL
          ENTRIES IN RESULT_PACKAGE
           WHERE
    below field is from value of fiscal period (which is fiscal period -999 ex:  for 001.2014 this
    value will be 002.2013 so 12 months including current period)
    FISCPER >=  RESULT_PACKAGE-/BIC/ZFISCPERF
    below is result filed fiscal period (here i dont know which keyword or statement to be used to select
    interval values this between statement giving syntax error that can not be used in where for for all entries
    between RESULT_PACKAGE-FISCPER
            AND
             FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
             PLANT = RESULT_PACKAGE-PLANT AND
             STOR_LOC = RESULT_PACKAGE-STOR_LOC and
          /BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
        SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
        /BIC/MATERIAL .
        LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
          READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
    below dont know what statement i need to use in read statement for interval of fiscal periods
    giving error that >= can not be used
         FISCPER >=  <result_fields>-/BIC/ZFISCPERF
    FISCPER = <result_fields>-FISCPER
             FISCVARNT = <result_fields>-FISCVARNT
             PLANT = <result_fields>-PLANT
             STOR_LOC = <result_fields>-STOR_LOC
          /BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
           BINARY SEARCH.
          BREAK-POINT.
          IF sy-subrc = 0.
    below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
    sum statement giving error
                <result_fields>-/BIC/ZLSTSLS12 =
                 sum(wa_/BIC/AZOSLS00-BILL_QTY).
              ENDIF.
        ENDLOOP.
    friends please help me in this.
    Thanks
    Chandra.

    Hiii,
    If you only want to store last  12 months data in Target ODS .
    Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
    Refer the below link to create filter routine :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
    Regards,
    Akshay

  • Month doesn't appear in the axis for last 12 months

    Hi !
    I have created a graph which gives records for the last twelve months, my formula is:
    if {Commande.DATE} >= dateadd('m',-12,currentdate) and {Commande.DATE} <=currentdate then {Commande.DATE}
    At this point everything's fine ,
    I have to create another formula to have Month name
    from today which mean ,the order should be like this on my graph axis, 1st last month is febuary and last 12 months from today is March
    March - April - May - June - July - August - September - October - November -December - January Febuary
    here is that formula which I have called Month Sort order:
    If month({@last12months})=01then
    "Janv" else
    if month({@last12months})=02 then
    "Fév" else
    If month({@last12months})=03then
    "Mars" else
    if month({@last12months})=04 then
    "Avril" else
    If month({@last12months})=05then
    "Mai" else
    if month({@last12months})=06 then
    "Juin" else
    If month({@last12months})=07then
    "Juil" else
    if month({@last12months})=08 then
    "Août" else
    If month({@last12months})=09then
    "Sept" else
    if month({@last12months})=10 then
    "Oct" else
    If month({@last12months})=11then
    "Nov" else
    if month({@last12months})=12 then
    "Déc" else ""
    in the Graph/Chart expert ,in the resulting dialog box I have set  the following options:
    On Change of: i have set the formula Month Sort order which will bring me the  month name  and for the order I have set in the Original order .
    It works fine I retrieve records for last 12 months but on  my axis ,the name for
    the last 12 months doesn't appear  in this case ( March) it is blank ,I have the records for March but not the month name March in my axis  it show april  to febuary  but not March
    Thank you for helping me

    Thank you for your reply , but this doesn't solved my problem  ,
    I'm using a data from SQL2005 which is a stored procedure ,they have created a datefield named "DATE" and group the data the 1st of each month in this SQL stored procedure ,the only day for each month that I have in this data is the first of each month for each record found ,so I've changed the formula for this, to get records the 1st of each month for the last 12 months :
    the new Formula for is:
    if >= DateAdd("m",-12,CurrentDate) - day(CurrentDate)+1 and
    <=DateAdd("m",-1,CurrentDate) - day(CurrentDate)+1 then
    this condition formula bring me _Null datefield_ ,and this is why I see a null label axis at the bottom,do you have an idea how I can eliminate the null datefield , I need to have only the last 12 months data on this graph but I need all data for the past 3 years for 2 other grah on this same report
    Thank you very much ,

  • Create a listing of reports with last run date and # of times run

    Hi All,
    I want to create a listing of reports with last run date and number of times report is run in the past 18 months.
    If anybody can please help me with the query for the same.
    Regards,
    Sk
    Edited by: user10989244 on Aug 18, 2009 7:12 AM

    Hi Sk
    Assuming you have the collection of statistics enabled, which it is out of the box, you can get the information you need from the EUL5_QPP_STATS table. This script will help:
    SELECT
    QPP.QS_DOC_OWNER WORKBOOK_OWNER,
    QPP.QS_DOC_NAME WORKBOOK_NAME,
    QPP.QS_DOC_DETAILS WORKSHEET_NAME,
    QPP.QS_CREATED_BY RUN_BY,
    TRUNC(MAX(QPP.QS_CREATED_DATE)) LAST_USED_DATE,
    COUNT(QPP.QS_ID) TIMES_USED
    FROM
    EUL5_QPP_STATS QPP
    WHERE
    QPP.QS_CREATED_DATE >= ADD_MONTHS(SYSDATE, -18)
    GROUP BY
    QPP.QS_DOC_OWNER,
    QPP.QS_DOC_NAME,
    QPP.QS_CREATED_BY,
    QPP.QS_DOC_DETAILS
    ORDER BY 1,2,3;
    Best wishes
    Michael

  • MB5B Report for Date Wise Stock and Value

    Hi,
    I am Taking MB5B Report for Date Wise Stock and Value.
    But I have one doubt all stocks is coming or not in these report like Unrestrected Stock,Return Stock.Blocked stock,Transist stock,Restrected Stock,qty Inspection Stock.
    I have another Doubt in these report three Stock type indicaters are there like these.
    1.Storage Location / Batch Stock
    2.valuated Stock
    3.Special Stock.
    But i have one doubt what is defferent these
    1.Storage Location / Batch Stock
    2.valuated Stock

    Hi Prasad,
    Yes MB5B report consider the Unrestricted, Quality, Blocked, Transit stock and restricted stock. Not sure about Return Stock.
    If you select the Storage location/Batch stock radio button then the system will display all the possible stock from the storage location and the corresponding batch also.
    If you select Valuated stock radio button then system will show only the valuated stock not the Non-valuated stock. Because Non-valuated material type is available in SAP system will not show those stock suppose if you select the Valuated stock radio button.
    Regards
    Karthick

  • Can any one tell me how to deactivate vendors in sap whom we have not done business for last 18 Month

    Can any one tell me how to deactivate vendors in sap whom we have not done business for last 18 Month>

    Hi Jahanzaib,
    You can go to transaction FK05 and block the vendor if you want to deactivate the vendors.
    Thanks,
    Ameet

  • Average for last 12 months

    hi,
    i have a column amount. i need to find the avg of it for last 12 months excluding current month.
    I have got a query to find it .but it is adding current month also with it.
    AVG(SUM(amount)) OVER (ORDER BY ACCOUNT_MONTH_NO
    ROWS BETWEEN 12 PRECEDING AND 0 FOLLOWING) rolling_avg,
    please help me to write a query as i am a naive user of oracle.

    Like..
    SQL> select * from test;
    ACCOUNT_NU ACCOUNT_MONTH_NO     AMOUNT
    ACC1                      1        100
    ACC1                      2        200
    ACC1                      3        300
    ACC1                      4        400
    ACC1                      5        500
    ACC1                      6        600
    ACC1                      7        700
    ACC1                      8        800
    ACC1                      9        900
    ACC1                     10       1000
    ACC1                     11       1100
    ACC1                     12       1200
    12 rows selected.
    SQL> select account_month_no,amount,
      2     avg(amount) over(order by account_month_no rows
      3            between 12 preceding and 1 preceding) avg
      4  from test
      5  where ACCOUNT_NUMBER  = 'ACC1';
    ACCOUNT_MONTH_NO     AMOUNT        AVG
                   1        100
                   2        200        100
                   3        300        150
                   4        400        200
                   5        500        250
                   6        600        300
                   7        700        350
                   8        800        400
                   9        900        450
                  10       1000        500
                  11       1100        550
                  12       1200        600
    12 rows selected.Post sample data and expected output, so that we can help you better

  • I have just started using iPhone 4s and cannot find out how to delete unwanted photos. I have used iPhone 3 gs for last 2 years and had no problem with this. Phone is connected to i cloud. Help please.

    I have just started using iPhone 4s and cannot find how to delete photos. Have used iPhone 3 GS for last 2 years and not had this problem. I have iCloud for my Apple family and don't know if this is causing problem. Help please.

    Log in to icloud.com with your Apple ID. Once you're logged in, click on your name on the upper right corner. Click Advanced and then Reset Photo Stream. This will delete all your photos in the album Photo Stream in your iPhone 4S so make sure you have backed up (copy to Camera Roll or new folder) all those that you want to keep.
    This is the only way to do it with iOS 5 (not the beta releases)
    http://iphone-and-i.blogspot.com/

  • Cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy.

    cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy. Any help much appreciated?

    Try restarting your WiFi router by removing power to it for 30 seconds.

  • While opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    while opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.

  • For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

    For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

    For last one month I am facing problem in watching online videos on my iPod touch. It is not opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.

  • Calculate NWC (Average for last 4 Month)

    Do someone know how to calculate NWC (Average for last 4 Month) using @AVG?FIX ("2002", Jan)     "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital", "2001"->Oct,"2001"->Nov, "2001"->Dec, "2002"->Jan);ENDFIXIn my case, we split the Year and Month Dim in our outline.Can this script work in under our situation???Thanks

    Try usingFIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital"->"2001"->Oct,"Net Working Capital"->"2001"->Nov,"Net Working Capital"->"2001"->Dec,"Net Working Capital"->"2002"->Jan); ENDFIX

Maybe you are looking for

  • Clarification on QT Pro

    I just want to make sure I understand all this correctly. I am using Final Cut Express 1 and DVD Studio Pro 2, primarily on a Mac Mini using OS 10.3.9. The original QT Pro key supplied with DVD Studio was for 6.3 I believe. I must have inadvertantly

  • Opening a secure socket in Creator app

    Hi All, I have this app in Creator which tries to make connection with a server over HTTPS. When I run this java prgram from Eclipse (standalone java program), its able to make connection to the server. But when I try and run the app and make this ca

  • Spry master pages

    Hi guys, Now before i begin...i am a PHP developer and i have been building master and details pages using PHP& MYSQL for quite some time now an i am now experimenting with SPRY...I have created a master page in which i list database records using sp

  • Content Copier Freezing

    I've backed up my phone previously but today when I tried to use content copier to back it up the program just kept freezing on the section saying phone model-specific backup and wouldn't go past 66%. Any ideas apart from re-installing PC Suite?

  • HT204053 how to use same id for different stores

    How can i use the same apple id to access apps on different apple stores (in different regions)?