Depreciation report needed

I need help with writing a sql script for a report in FA. I need a depreciation schedule of all assets by book and company. This is what I have so far, but it's taking to long to run. Does anyone have a report like this already that might be able to help me. The journal entry reserve ledger report is not what I'm looking for, but close.
See script so far:
SELECT
CC.SEGMENT4 || '-' || fvt1.description PROPERY_NAME,
     AD.ASSET_NUMBER || '-' || AD.ATTRIBUTE_CATEGORY_CODE ASSET_DESCRIPTION,
B.LIFE_IN_MONTHS LIFE,
DD.cost,
DD.deprn_amount,
DD.ytd_deprn
FROM
FA.FA_DEPRN_DETAIL     DD,
     FA.FA_BOOKS B,
     FA.FA_ADDITIONS_B          AD,
GL.GL_CODE_COMBINATIONS     CC,
applsys.fnd_flex_values_tl fvt1,
applsys.fnd_flex_values fv1,
FA.FA_DISTRIBUTION_HISTORY DH
WHERE
     DH.asset_id = DD.asset_id
AND DH.code_combination_id = CC.code_combination_id          
AND     DD.ASSET_ID = AD.ASSET_ID
AND fv1.flex_value_id = fvt1.flex_value_id     
AND B.ASSET_ID = DD.asset_id     
AND CC.segment4 = fvt1.flex_value_meaning      
AND     DH.BOOK_TYPE_CODE LIKE 'COR7%'
AND CC.segment3 IN ('70505','70600','70700','70800')
ORDER BY
     1, 2, 3, 4, 5

I need help with writing a sql script for a report in FA. I need a depreciation schedule of all assets by book and company. This is what I have so far, but it's taking to long to run. Does anyone have a report like this already that might be able to help me. The journal entry reserve ledger report is not what I'm looking for, but close.
See script so far:
SELECT
CC.SEGMENT4 || '-' || fvt1.description PROPERY_NAME,
     AD.ASSET_NUMBER || '-' || AD.ATTRIBUTE_CATEGORY_CODE ASSET_DESCRIPTION,
B.LIFE_IN_MONTHS LIFE,
DD.cost,
DD.deprn_amount,
DD.ytd_deprn
FROM
FA.FA_DEPRN_DETAIL     DD,
     FA.FA_BOOKS B,
     FA.FA_ADDITIONS_B          AD,
GL.GL_CODE_COMBINATIONS     CC,
applsys.fnd_flex_values_tl fvt1,
applsys.fnd_flex_values fv1,
FA.FA_DISTRIBUTION_HISTORY DH
WHERE
     DH.asset_id = DD.asset_id
AND DH.code_combination_id = CC.code_combination_id          
AND     DD.ASSET_ID = AD.ASSET_ID
AND fv1.flex_value_id = fvt1.flex_value_id     
AND B.ASSET_ID = DD.asset_id     
AND CC.segment4 = fvt1.flex_value_meaning      
AND     DH.BOOK_TYPE_CODE LIKE 'COR7%'
AND CC.segment3 IN ('70505','70600','70700','70800')
ORDER BY
     1, 2, 3, 4, 5

Similar Messages

  • What-if Depreciation Report

    Hi,
    I need to build the Fixed Assets 'What-if Depreciation Report' as a BI-Publisher report containing additional data not displayed in the standard report. This report is kicked-off together with running the 'What-if Analysis Program' from a form in FA, but I can't find where the concurrent program is registered to run together with the analysis program generating the data in order to replace the RDF with the my custom RDF. Does anyone know where this is done?
    Regards,
    Arthur

    Julie,
    In note 30260 point 3, you get the explanation.
    The reporting without the option 'posted values' calculates the
    asset history sheet as if the catch up method is switched on.
    When you use catch up, you have even no problems in comparing the
    asset history sheet with the planned values in AW01N.
    When you use smoothing, you get a difference between planned and
    posted values, as soon as you have postings in the current year,
    change the depreciation method and so on.
    When you use smoothing, you have to use the indicator 'posted values'
    in reporting.
    You will find the indicator 'smoothing' or 'catch up' in the IMG of
    asset accounting - Integration with the General Ledger - Specify
    Intervals and Posting Rules
    Best Regards,
    Blaz.

  • Report needed to  conbine stock movement  and corresponding balance

    Hi Friends,
    End user need a report to show stock movement trasaction and it's coresponding stock balance.
    In MB51, we can see all the stock movements against one material, is there any way a report could show stocks' corresponding iventory balance under diffierent invenotory category (unrestriced,QC, Return and block) for each movement trasaction ?
    Report needed like below
    SLoc , MoveType , Material document, posting date, qty, unrestic bal, QC balance, return Balance, Blked Bal.
    Thanks,
    L

    Hi,
    Kindly take the help of abaper and create a customized report or also you can have query created in SQ01.
    Hope this will help you !!!
    Regards,
    Krishna O

  • Understanding report need backup recovery window ..

    Hello,
    I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of
    report need backup;But I noticed than this command return just the list of datafiles having latest backup older than 3 days. I've tried to read again the docs:
    >
    Reports data files for which there are not sufficient backups to satisfy a recovery window-based retention policy for the specified number of days, that is, data files without sufficient backups for point-in-time recovery to any point back to the time SYSDATE - integer.
    >
    Please correct me if I'm wrong, but I consider that the ability to make recover to any point in time within 3 days require the backup taken earlier than 3 days ago and archivelogs from the time when backup was taken to the recover PIT. Im I right? If so then how I should interprete the results of report need backup ? I can't find the detailed explanations of this in the docs :(
    Thanks in advance,
    Constantine

    You are correct in your appreciations.
    This report is about the need of backups, without considering archivelog backups.
    It does not mean that listed files are in an unrecoverable situation.
    Regards.

  • Report needed for storage costs in WM

    Hi All,
    I need a report for the storage costs for utilising the warehouse by plants. Cost of space utilised per m3 will be provided in selection screen. For each material the volume should taken from material master. Warehouse will be utilised by three plants and report needed to calculate the space occupied by the materials in warehouse per plant per month. I am not able to find the logic to calculate average space utilised(as day to day there will putaways,transfer postings and picking).All stocks to be taken into consideration.Let me know how to proceed.
    Regards,
    Manik

    Dear Experts,
    Cud u plz throw some light on this...
    Regards,
    Manik

  • Stand alone oracle report - need help asap

    Hi,
    We are in ORACLE Apps 11i. We started using ORACLE BI Publisher to create templates for the Oracle Reports. How we are doing reports now is
    1) create data definition XML which has all the queries embedded.
    2) Create Data definition in XML Publisher Admin responsibility.
    3. Attach the Data definition XML to that.
    4. Create a concurrent program definition for the report with XML Type and run the report and save the data file with tags.
    5. Create the template ,rtf in Word and export data using ORACLE BI Publisher. 6. Create template definition in the XML Publisher Admin responsibility and attach this .rtf to that and run the report.
    Now I have a requirement stating that the REPORT SHOULD BE AN ORACLE STAND ALONE REPORT AND THE REPORT NEEDS TO BE RUN THROUGH CONCURRENT PROGRAM SCREEN. I am planning on doing the following steps.
    1. I have to create an .rdf using report builder.
    2. Create concurrent program executable and definition for the report.
    3. Create data definition in XML Publisher admin responsibility.
    4. Run the report in apps.
    5. Create the tempalte .rtf in word and export data with the XML Data file with tags,
    6. Run the report.
    Am I correct? Any help is appreciated asap.
    Thanks
    Akil

    You said,
    standalone report ?? is that mean without using bipublisher ??
    1st method.
    create concurrent program, output xml,
    create data template, create datadefintion , attach Datatemplate.
    run the cc pgm, get xml, design RTF , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    2nd method.
    create rdf,
    create concurrent program, output xml,
    run the cc pgm, get xml, design RTF ,
    create datadefintion , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    , both requires, cc pgm, rtf, data defintion , template definition.
    only differnece is , how do you get the data, i mean, xml...
    data template or RDF.

  • RMAN report need backup

    We have an incremental level-1 backup Mon-Sat and cold full backup on Sundays with retention policy of 7 days. While troubleshooting some backup issues (space issue, expired backups) I ran the following commands and trying to understand the output.
    RMAN> report need backup database;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN> report need backup days = 7 database;
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report obsolete recovery window of 7 days;
    no obsolete backups found
    RMAN>
    I looks like I need 146 days worth of archive log files to recover the psindex05.dbf. If so, what I could do to bring that into the 7 days policy?
    The database is fine, I am not trying to recover the database.
    This was setup by someone and now I am taking over with minimum RMAN experience.
    I appreciate any help in this subject.

    The datafile was offline. I guess it was created my mistake and hanging in there. Once I do the cleanup it should go away.

  • To add "Transaction type" in  depreciation report  (S_ALR_87012026)

    Hi SAP Experts,
    I have a request from a user to add selection option of  "Transaction Type" in the Depreciation Report.Is this possible to be done by adding in Dynamic Selection?If yes, how?
    Refer to SAP Note 439407,it seem like it only cater for structure ANLAV only but not for for ANEPV - BWASL.
    Please advise since im trying to avoid copying the standard program.
    Regards,

    Hi,
    Yes, user-defined fields added as per SAP note 335065 are shown in the report output.
    Alternatively, you can also create a sort version. However, check the restrictions for both options as outlined in this note.
    Though still, you cannot add the transaction type as a field as the note  is pointing out the tables from which fields can be extracted from: ANLAV/ANLB/ANLV only.
    CI_ANLU is about user defiened fields in master data and so you cannot add BWASL in this table as this field has nothing to do with master data.
    Just on the side a small comment: not sure of what benefit it would be to see the transaction type in a report such as RAHAFA_ALV01 as this report is mainly about all sort of information regarding all types of depreciation values.
    I hope this helps further.
    Kind regards,
    Brigitte

  • Hi! I am newbie to Reports need help with check boxes

    Hi! I am newbie to Reports need help with check boxes. I am try-in to make a new check boxes that will validate in runtime. I have created two frames and one frame is dummy and other frame has big X line on it with conditions. Is this a right way to create check box! Please help thanks!

    and one frame is dummy and other frame has big X
    line on it with conditions. Is this a right way to
    create check box! Please help thanks!Instead of creating a frame for X, you can create Ractangle and place X in it. Rest is fine.

  • Depreciation report - period wise

    Hi Can anyone suggest depreciation report periodwise for posted dep. ...Std SAP report
    Thanks

    Hi,
    Please check correctly, this is a standard SAP report, which will be available in all versions.
    You are in which version?
    other wise go to transaction SE38 and enter program name as AQZZ/SAPQUERY/AM28============ and execute it.
    Or else go to AQ01 and choose query number 28, and press execute button.
    Thanks,
    Srinu

  • How to view day wise depreciation report .

    Dear experts,
    How to view day wise depreciation report .
    Regards,
    hari.guntupalli

    Hi
    IMP -
    Go to T code AFAMA - select Day to the day check box And period control according to the fical years
    Then Go to AW01N
    Thanks
    P J Anil kumar

  • Change COPA Report - need to add Variable and Characteristics

    Hello,
    I need to change the existing COPA report, Need to add WBS element as a selection criteria and also a characteristics so it can be drilled down.  Create WBS as a global variable in KE3E and it is not showing up in when i change the report in KE30 in the available list of characteristics. And also it is not showing up in KE35 when i change the general selection to add as a Variable.

    Go to KE91 and create the report.
    In KE91, the Characteristic Cost element (KSTAR) is available.  Add it as below.
    Cost Element      ....   Check the box Hierarchy node ......   check the box Variable on/off   ......          KSTAR......     Cost element.
    After this, just check in Variable, the Cost element shuold appear
    Line item based reports are defined in KE91 (segment level reports in KE31).
    Both types of reports can be started in KE30 and changed in KE32
    Let us know if you still have any queries
    Thanks
    Edited by: nkonnipati on Feb 19, 2012 5:34 AM

  • Reasons for Introducing database functions for Discoverer Reporting Needs

    Hi All,
    I would like to know the criteria other organizations have used in creating custom database functions specifically for Discoverer reporting needs. It seems good and appropriate to identify these reasons in order that they have a sufficiently good reason (e.g. in presenting this to a change management board).
    Here is a quick swipe:
    -query explain plan improvements
    -take away the complexity of having the end user deal with complex calculations
    -consistency of a value (e.g. a complex amortization calculation)
    -an attribute is used from a dependent table with a minimum cardinality of zero
    Can anyone list other good reasons in terms of Discoverer reporting?
    Thanks,
    Patrick
    Edited by: Patrick Bacon on Jul 15, 2009 10:30 AM

    Hi Patrick
    In addition to the reasons you have given the reasons for having functions anyway apply just as equally to Discoverer as they do to other applications.
    Typically the main reasons why I would use a function are:
    a) due to the complexity of the code, or
    b) to evaluate something which an end user either could not do or does not have access to.
    For example if a user needs to have aggregations from multiple tables side by side in a report, typically from tables which have no joins between them, I write functions to go get the individual results.
    One specific function that I use a lot is one that calculates the number of working days between any given two days. Some of my HR customers use such a function to calculate the number of sick days for an employee when obviously only working days should count. Doing this in a normal Discoverer calculation would be very hard. Retail customers might use this for calculating the number of days it took to ship and item.
    There are other reasons why I use functions but these are the typical ones.
    Best wishes
    Michael

  • Depreciation - Report painter

    Hi experts,
    I have to create a depreciation report with asset class in the rows and in the columns: 1. acquisition value; 2. depreciation; 3. and net book value /1-2/;
    2 sections: book depreciation and tax depreciation.
    Is it possible to create this report with report painter or there is better possibility? Which table/structure and library I have to use?
    I can't use SAP delivered reports - there is no proper table too ;  may be to add a new table / structure in T804A but I don't think this is correct

    Helllo World,
    I have similiar case,
    can somene give some help plz.
    Thanks in advance.
    Yours,
    Angel

  • Report needed listing of assets that fully depreciated during 2009

    Hi All
    want to receive a listing of assets that fully depreciated during 2009.  Do we have any SAP standard report to get this detail.
    Is there a transaction available to run this listing?
    Your immediate attention would be much appreciated as the auditors want this info immidiately.
    thanks in adv
    Shubhada

    Hi,
    You can take this one S_ALR_87011963 - ... by Asset Number  and filter all the assets with open zero amount and combine it with this one S_ALR_87012026 - Depreciation Current Year.
    Regards,
    Eli

Maybe you are looking for