Calculation of asset gain/loss amount

Hello gurus!
I'am trying to implement the asset retirement report (S_ALR_87012052) into SQL, but I am in trouble with the calculation of the GAIN and LOSS amounts of the asset. I already managed to find out the calculation methods of the other amounts using the ANEA table. I think that table should be used in theese two cases too. Can someone please help me?
Thank you
HM

Hi Marian,
Go to table ANLC and input BUKRS-company code, ANLN1-Asset no, GJAHR-Enter current fiscal year and AFABE-Depreciation area.
In output
Field KANSW is Gross block
Field KNAFA,KSAFA and KAAFA is Acc.dep up to FY start (Ord dep,Spl dep and Manual dep respectively)
Field NAFAG,SAFAG and MAFAG is Dep posted in current year.
So Net book value=KANSW-(KNAFA+KSAFA+KAAFA)-(NAFAG+SAFAG+MAFAG)
Profit/Loss=Sales revenue-Net book value.
Hope it is clear.
Regards,
G.Sethuraman

Similar Messages

  • Gain/loss amount details in AR

    Hi All,
    Can i know where the forex loss and gain amounts are stored in AR
    Thanks,
    Sanjeev

    Hello Sanjeev.
    Cross Currency Exchange Gain/Loss Report
    Use this report to review detailed information about your cross currency settlements.
    This information includes:
    -the transaction number and currency
    -the amount applied to each transaction in both the transaction and your base (functional) currency
    -the amount of the crosss currency receipt allocated to the transaction
    -the cross currency rate used for each application
    -the foreign exchange gain or loss (FXGL) for each application
    -information necessary to compare the FXGL you would have realized if you had used the cross currency rate maintained in your General Ledger
    Hope this helps.
    Octavio

  • Foreign Currency exchange gain & loss

    Dear expert,
    I have a problem here, need help.
    I have made the setting for foreign exchange gain/loss in OB09 and start to use f-28 for incoming payment.
    When run the simulation, it gives me 2 lines of exchange gain/loss calculation. 1st line with amount zero (local currency) and 2nd line with the gain/loss amount.
    I wonder why I have 2 lines of exchange gain/loss calculation?
    Did I did something wrong or miss some specific setting?
    Thanks in advance. will assign points

    Hi Louis,
    Please note the example below and you will understand why two line items are created:
    Local currency - USD; foreign currency - GBP
    Vendor invoice in foreign currency - 100GBP - Jan (Exchange rate: I GBP=2 USD)
    Feb - You valuated the open item (Exchange rate: 1 GBP = 3 USD) with update principle
    Entry: Unrealised exchange rate Debit 100 USD
              To Special balance sheet account Credit 100 USD
    Payment made in march where the exchange rate is 1 GBP = 3.5 USD
    Entry will be:
    Vendor debit                               200 USD
    Balance sheet account debit        100 USD
    Realised exchange rate loss debit  50 USD
    To bank                                       350 USD
    Are you getting the above entry? If so, then the above scenario will explain your predicament.
    Cheers!
    Rajesh

  • Gain Loss realized

    Hi Guys,
    Anyone can explain to me this SAP behaviour :
    Company code currency = IDR
    Invoice currency = USD with rate A
    Payment phase 1 -> I'm using currency USD with rate B. There's a different rate between invoice and payment phase 1, but there's no gain/loss occured.
    Payment phase 2 -> I'm using currency USD with rate C. There's gain/loss amount appeared.
    Question : Why SAP only calculate gain/loss for full payment ? logically, when I pay the 1st phase, the rate is already different.
    Regards,
    -M-

    Hi,
    As I understand from your mail.. your question is that when you make partial payment and there is a rate difference why is the Exchange Gain or loss not posted..If this is the question, please follow the following:-
    While making Partial Payments also you can post forex gain/Loss but for that a little configuration is required. The IMG path is :-
    Financial Accounting Global Settings (New)>Global parameters for Company code>Currencies>Indicate Currency Differences for partial payments.
    Here against the document type, which you are using for making partial payments you have to tick that doc type and then the Forex gain/Loss gets posted even on partial payments.
    Regards,
    SAPFICO

  • Disable Gain/Loss calculation for Secondary Ledger (SLA)

    Hi Apps Gurus,
    Currently I have the following functional SLA requirement:
    I need to disable the Gain/Loss calculation in Secondary (subledger type) Ledger for AR invoice receipts in local/ledger currency. Below is the example, as it works now:
    In the source primary ledger, on the AR invoice Receipt, there is NO gain/loss line, when paying ledger currency invoice on different date. But in the subledger accounting for secondary ledger there is calculated Gain/Loss line:
    Example with Invoice No: 77775 in Receivables:
    o     Primary Ledger currency: AUD
    o     Secondary Ledger currency: USD
    o     Invoice currency: AUD
         Invoice accounting entries for Primary Ledger:
    -     GL date: 19-DEC-2012
    -     Australia Spot rate for Primary ledger
    Accounted_Currency=AUD, Entered_Currency=AUD
    Revenue: Accounted_CR=4500.00 Entered_CR=4500.00
    Recoverable Tax: Accounted_CR=450.00 Entered_CR=450.00
    Receivable: Accounted_DR=4950.00 Entered_DR=4950.00     
         Invoice accounting entries for Secondary Ledger:
    -     USA Spot rate for Secondary ledger
    Accounted_Currency=USD, Entered_Currency=AUD
    Revenue: Accounted_CR=4325.00 Entered_CR=4500.00
    Recoverable Tax: Accounted_CR=435.00 Entered_CR=450.00
    Receivable:     Accounted_DR=4760.00 Entered_DR=4950.00
         Receipt accounting entries for Primary Ledger:
    -     GL date: 20-DEC-2012
    -     Australia Spot rate for Primary ledger
    Accounted_Currency=AUD, Entered_Currency=AUD
    Cash: Accounted_DR=4950.00 Entered_DR=4950.00
    Receivable:     Accounted_CR=4950.00 Entered_CR=4950.00
         Payment accounting entries for Secondary Ledger:
    -     USA Spot rate for Secondary ledger
    Accounted_Currency=USD, Entered_Currency=AUD
    Cash: Accounted_DR=4855.00 Entered_DR=4950.00
    Receivable:     Accounted_CR=4760.00 Entered_CR=4950.00
    Exchange Gain: Accounted_CR=95.00 Entered_CR=0.00
    And we do not need the Gain line, despite the Receivable account would not be closed for this AR Invoice in Secondary Ledger.
    Is there any option, functional setup in SLA, to disable calculation of Gain/Loss in such cases?
    Many thanks in advance!
    Krasen

    Hi Ivruksha,
    Thank you for looking into this case.
    Of course if the Invoice was in foreign currency, there have to be a Gain/Loss line in the Primary Ledger.
    But provided that in the Primary Ledger for NON-foreign currency invoice there is no FX lines, we don’t need such in the Secondary Ledger too. It’s a quite strange requirement, given the fact that the Receivable account balance will NOT be closed for this Invoice in the Sec. Ledger:
    Dr: (Invoice) 4760.00$ and Cr: (Receipt) 4855.00$
    So on the receipt I need the following acc. Entries for the Sec. Ledger (USD)
    Dr: Cash 4855.00$
         Cr: Receivable 4855.00$
    It is normal to have such functional behavior, provided that for the similar case in Payables there is NO FX line. See the example with AP Invoice in Sec. Ledger (USD):
    Invoice GL date: 19-Dec-2012
    Dr: Item Expense 4500.00 AUD / 4725.59$
    Dr: Recoverable Tax 450.00 AUD / 472.56$
    Cr: Liability 4950.00 AUD / 5198.15$
    Payment Gl date: 20-Dec-2012
    Dr: Liability 4950.00 AUD / 5184.46$
    Cr: Cash 4950.00 AUD / 5184.46$
    Fully balanced acc. entries, while the Liability account is definitely not closed from the both GL entries, which is accepted for the Secondary Ledger.
    Hope this clears a bit more the case. I’ll appreciate any useful suggestions.
    Of course the using “special” account code combination for recording the FX Gain/Loss in Sec. Ledger in the Account Derivation Rule as an workaround is a good option, if there isn’t any other.
    Thanks and regards
    Krasen

  • Incorrect value of Auto. Gain Loss Foreign Exchange during GR/IR clearing

    Dear Experts,
    We have activated the Material Ledger functionality.
    The Document Currency of PO, GR, and IR are in Foreign Currency.
    The postings are below:
    Loc Currency 1 = USD
    Loc Currency 3 = IDR
    Doc currency = IDR
    GR
    Dr Material               52,980,975 Doc Curr/IDR          5,340.80 Loc Curr 1/USD
      Cr  AP u2013 GRIR              -75,000,000 Doc. Curr./IDR        -7,560.45 Loc Curr 1/USD
    Dr Price Adjustment          22,019,025 Dor. Curr/IDR          2,219.65 Loc Curr 1/USD
    IR
    Dr  AP u2013 GRIR          75,000,000 Doc. Curr./IDR          7,560.45 Loc Curr 1/USD
      Cr  AP-Vendor              -75,000,000 Doc. Curr./IDR        -7,537.73 Loc Curr 1/USD
      Cr  Forex AP- Current                               0 Doc. Curr./IDR             -22.72 Loc Curr 1/USD
    GR/IR clearing
    Loc Currency 1 = USD
    Loc Currency 3 = IDR
    Doc currency = USD
    Dr  AP u2013 GRIR          7,560.45 Doc Curr./USD      75,000,000 Loc. Curr. 3/IDR
      Cr  AP u2013 GRIR              -7,560.45 Doc Curr./USD      -75,000,000 Loc. Curr.3/IDR
    Dr  Forex AP- Current            0 Doc Curr./USD     1,360,469 Loc. Curr. 3/IDR
    Cr   Forex AP- Current                 0 Doc Curr./USD     -1,360,469 Loc. Curr.3/IDR               
    The problem occured after GR/IR Clearing is performed. The system generated automatic Gain/Loss Foreign Exchange AP-Current with incorrect amount in Local Currency 3. That amount was not match with the delta exchange rate difference on the date of IR is performed and on the date of GR/IR Clearing is performed.
    Can anyone inform me what is the probable cause of this incorrect Forex AP-Current calculation? What is the calculation basis that SAP system use to calculate this automatic Forex AP-Current?
    Should you require any additional information, please let me know.
    Thank you
    Best regards,
    Frans Sunarja

    Hi
    First once we  have check the exchange rate types in OB08
    second one you are no main the gain/loss a/c  OB09 w are setting Loss/gain .
    Regards
    suresh

  • Incorrect value of Auto.Gain/Loss Forex during GRIR Clearing

    Dear Experts,
    We have activated the Material Ledger functionality.
    The Document Currency of PO, GR, and IR are in Foreign Currency.
    The postings are below:
    Loc Currency 1 = USD
    Loc Currency 3 = IDR
    Doc currency = IDR
    GR
    Dr Material                  52,980,975 Doc Curr/IDR     5,340.80 Loc Curr 1/USD
    Cr AP u2013 GRIR                  -75,000,000 Doc. Curr./IDR           -7,560.45 Loc Curr 1/USD
    Dr Price Adjustment   22,019,025 Dor. Curr/IDR     2,219.65 Loc Curr 1/USD
    IR
    Dr AP u2013 GRIR             75,000,000 Doc. Curr./IDR    7,560.45 Loc Curr 1/USD
    Cr AP-Vendor                -75,000,000 Doc. Curr./IDR            -7,537.73 Loc Curr 1/USD
    Cr Forex AP- Current                0 Doc. Curr./IDR                  -22.72 Loc Curr 1/USD
    GR/IR clearing
    Loc Currency 1 = USD
    Loc Currency 3 = IDR
    Doc currency = USD
    Dr AP u2013 GRIR      7,560.45 Doc Curr./USD       75,000,000 Loc. Curr. 3/IDR
    Cr AP u2013 GRIR        -7,560.45 Doc Curr./USD        -75,000,000 Loc. Curr.3/IDR
    Dr Forex AP- Current      0 Doc Curr./USD      1,360,469 Loc. Curr. 3/IDR
    Cr Forex AP- Current        0 Doc Curr./USD         -1,360,469 Loc. Curr.3/IDR
    The problem occured after GR/IR Clearing is performed. The system generated automatic Gain/Loss Foreign Exchange AP-Current with incorrect amount in Local Currency 3. That amount was not match with the delta exchange rate difference on the date of IR is performed and on the date of GR/IR Clearing is performed.
    Can anyone inform me what is the probable cause of this incorrect Forex AP-Current calculation? What is the calculation basis that SAP system use to calculate this automatic Forex AP-Current?
    Should you require any additional information, please let me know.
    Thank you
    Best regards,
    Frans Sunarja

    Hi
    First once we  have check the exchange rate types in OB08
    second one you are no main the gain/loss a/c  OB09 w are setting Loss/gain .
    Regards
    suresh

  • Realized Gain/Loss and FC balance in Account Balance

    Hi Experts,
    I am still waiting to get answers on the following problem and looking forward for a good suggestion on how to adjust the entry for 2005 A & B versions:
    1) We have customers and suppliers setup as MC and deal with FC transactions (example FC=SEK, and SEK is also our SC).
    2) But these customers and suppliers will always pay up with LC (SGD) and bank-in the paid amount to an bank account setup with LC(SGD) only.
    Problem:
    If we select the the payment mean with the LC amount, we will face:
    a) the FC amount was not deducted from the account balance and finally show up a lot of FC balance, and most tedious when we face partial payment...difficult to trace...and worst is bank recon only show LC amount...why not both???
    b) the realized exchange gain/loss is not automatically calculated, even though the payment is in full by LC amount.
    I have questions:
    i) Why can't there should be a way that the payment entry (pay FC in LC) whereby on the BP (control a/c) line, the settled invoice amount (of each FC) shall be posted (acceptable with one line having FC amount and the bank line have no FC amount) ?
    ii) Why can't the system generate the gain/loss at each payment time?
    It is a more reasonable way. 
    Thank you and regards,
    Joan Lim.

    Hi Kerstin,
    I realized B1 2005 can't even fulfill basic finance requirements in that case.
    In any MNC, for CFO, FC balances, realized gain/loss is most important factor for the company to look into cash flow. 
    Anyway, I have tried out many ways to explain to our CFO, finance department ...but all get disappointed with B1 2005.
    I understand that B1 2007 already have the function, but as the huge $$ dump in on our add-on development in year 2007, it is not so easy to upgrade B1 2007 at all.
    I am still looking forward for  patches in 2005 for these functions.
    Thank you and regards,
    Joan.

  • Exchange Rate Gain Loss Error

    Dear Experts,
    I am stuck in a very serious problem
    In import purchase Order for raw material we have configured a condition for import duty.
    Now in current scenario the import duty has been invoiced before goods receipt there is a minor difference in amount invoiced and amount entered in purchase order.When the receipt is posted for this purchase order an abnormally high amount is posted into exchange rate difference account which is charged to material.
    This makes the moving price of material very high.
    The currency for purchase order is Dollars. We have maintained a conversion in FI table and purchase order as well.
    Please suggest as to what is causing this abnormally high amount to be posted in exchange rate difference account.
    Regards,
    Sohaib

    It is a condition defined in Purchasing all the as Import Duty and calculation type is Fixed Amount.
    This condition is used in import purchase order (PO currency USD). The invoice for this condition is posted in local currency which is PKR.
    When Goods Receipt (105) is posted for this purchase order system doesnot convert the amount invoiced into equivalent PKR according to exchage rate specified in OB08. All amount in PKR is taken into USD with exchange rate equivalent to 1 and gain loss from this conversion is charged to material. e.g 314079 PKR is posted as 314079 USD and Gain/Loss which amounts to 27 million is charged to material. This makes MAP of material equivalent to 20000 PKR rather than 4000 PKR.

  • A/R and A/P invoices and credit memo realized currency gain/loss report

    Hi,
    We need some help in getting a report from SBO.
    We would like to analyze their realized currency gain and loss account. We are lookiing into a report that shows the individual invoice/ credit memo foreign and local currency amount against the incoming / outgoing payment foreign and local currency amount.
    Sometimes we  would do direct offset invoices in the incoming / outgoing payment, and sometimes it would be thru internal reconciliation. We have look thru the tables for the past 2 days but could not find any link between the invoices and payments especially so when reconciliation is performed.
    Can this report be done either in XL Reporter or in SQL? If yes, which tables are these information store?
    Thanks.
    Regards,
    Whay Peng

    Hi Jimmy,
    There is no need to run the exchange rate differences, when invoices that was offset during the incoming and outgoing payment. The realized currency gain/ loss account will be generated when the incoming and outgoing payment is made.
    During reconcilation, yes we did run the exhange rate differences to get the realized currency gain / loss.
    Could it be the two tables that you mentioned are storing information on the unrealised currency rate differences? We did not run exchange rates differences to provide for any unrealized gain/loss for the period, therefore the tables on our end is empty.
    Regards,
    Whay Peng

  • Not able to post Realized Gain/Loss GL acct during foreign vendor payment

    Dear Experts.
    1.  When I make a vendor payment by using F-53 for USD payment for foreign vendor.  I am supposed to get Realised Gain /Loss account for the variation on payment date.
    2.  My local currency is INR and foreign Currency is USD.
    3.  DIrect quote and indirect quote maintained for INR and USD.
    4.  During payment I have selected USD currency and given the conversion rate.
    5.  When I paid to vendor, realzied amount did not capture.
    My configuration for Foreign currency valuation is as follows:
    1.  T. COde OBA1.  and KDB - Here I maintained unrealized gain and loss account
    2.  T. COde OBA1.  and KDF - Here I maintained Realized gain and loss and unrealized loss and gain along with balance sheet adjustment account for foreign vendor reconciliation account.
    Please suggest me for this issue.
    Best Regards
    Surya

    Hai Surya,
    Check the OBA7 t.code for doc type  whatever ur using like KZ in that check the Exchange rate type specified or not like M,G, or B based on ur OB08 t.code settings
    Regards
    Madhu I

  • Loading Ex Gain/loss on material with CKMLCP

    Hi Gurus,
    I am facing one issue with material ledger and seeking you suggestion.
    There are 2 accounts 514000 (for ex gain) and 514001( for ex loss). Whenever there is gain/loss posting to these accounts wrt import MIRO, such gain/loss would get loaded on material through CKMLCP - costing cockpit  execution. And it would generate opposit posting to these accounts.
    (note: other gain/loss posting also go to these 2 accounts)
    Per requirement, to have separate account for posting only import MIRO exchange gain/loss , I defined a substitution.So whenever there ex gain/loss system posts it to account 520001.
    I ran one import cycle(PO, MIGO and MIRO), As per exchange rate in MIRO, there is ex gain posting to account 520001 as expected.
    But when I run CKMLCP, this gain is not getting loaded on material. In CKM3, ex gain amount is shown in Ex Rt diff. column. And same amount is displaying in Differences column.
    Could you pl suggest why its not getting loaded on material.
    Price control in material master is S(std price) and price determination is 3 (Single-/Multilevel)
    Thank you in advance
    Regards
    Anand

    Were you able to find an answer for this - we are having the same issue; Please let me know at the earliest?

  • Foreign currenvy gain/loss when partial payments are done at F-53

    Dear Experts,
       Hello.
       User requests to create foreign currency gain/loss line items when execuitng partial payments at transaction F-53.
       I have no idea about the requests.
      Can someone tell me how to do it?
    Satoshi Matsumoto

    Hi,
    Check the postings when instead of using "Partial Payment", the "Residual Items". In this case the foreign Exchange Rate differences arre getting calculated.
    The reason being that in Partial Payment the original Item is not cleared and both the original item and partial payment is open, and hence no actual realized gain/ loss in technically. The exchange rate difference will get calculated in these lines, when doing the month end revaluation.
    However in "Residual Item" option, the original item gets cleared and the exchange rate difference becomes realized. And the new item for the remaining balance gets created at new exchange rate.
    Hope this clarifies.
    Regards,
    Gaurav

  • Material Re Valuation Gain /Loss

    Hi Experts,
    I am doing MIRO but why Material Re valuation Gain /Loss (4123022)  line item will generated ?
    I had check PO Qyt & GR Qty, Rate also.
    I am unable to understand ?
    MIRO Enter
    2042020        P DYN                                                    27,930.00-
    2042160        GR/IR Consumables & Others                13,790.00
    2081395        WED.ROD DIETUF 101 - 5 MM                1,210.00
    2042160        GR/IR Consumables & Others                10,838.50
    2081395        WED.ROD VALMET  506 - 4MM              700.58
    4123022        Material Re valuation Gain /Loss             60.92
    2085128        INPUT VAT 5% (PURCHASE)                  750.00
    2085128        INPUT VAT 5% (PURCHASE)                  580.00
    Please suggest .
    Regards,
    Jemes

    Hi,
    Check following...
    1. Rate for every items in PO and Invoce are same including tax.
    2. Total of the above items = amount entered into the header.
    Moreover, if there is a difference then it will hit the Price Difference account which wrongly mapped as Material reval. gain/loss account. check this setting for key PRD using transaction OBYC
    Regards,
    Chintan Joshi

  • R12: Unrealized Gain/Loss Report cutoff

    The Unrealized Gain/Loss Report will report on all open AP Invoices.
    For cut-off purposes we require the report to 'cut-off' at period end:
    The report should list all open invoices as of a specific accounting date, regardless if the invoice is paid when the report is submitted. It should not report any invoices with an accounting date greater than the specified accounting date.
    I submitted this issue to Oracle as an enhancement request, but was wondering if anyone has a solution in the meantime, or if others would like to help push the enhancement along.

    We are going with this select statement:
    And then take the difference of the invoice amount * the 2 exchange rates
                        SELECT
                        s.segment1,
                        s.vendor_name,
    b.invoice_num,
                        b.invoice_date,
                        b.invoice_amount,
                        decode(b.exchange_rate_type,'Corporate',custom.coop_ap_pkg.getexchangerate(trunc(b.invoice_date),'USD','CAD'), b.exchange_rate) inv_exch_rate,
                        custom.coop_ap_pkg.getexchangerate(dteCutOff,'USD','CAD') cur_exch_rate
                   FROM ap.ap_invoices_all b, ap.ap_suppliers s
                   WHERE b.invoice_currency_code = 'USD' AND
                        b.org_id = org_id_IN AND
                        b.terms_date <= dteCutOff AND
                        s.vendor_id = b.vendor_id AND
    -- b.payment_status_flag IN ('N') AND
    nvl(b.cancelled_date,'30-Jan-2099') > dteCutOff
    and
    b.invoice_amount > (SELECT nvl(SUM(amount),0) FROM ap.ap_invoice_payments_all a
    WHERE a.invoice_id = b.invoice_id AND
    a.accounting_date <= dteCutOff)
    ORDER BY s.segment1,b.invoice_num ;

Maybe you are looking for

  • Windows 8.1 not booting!

    I installed windows 8 then I installed bootcamp 5 drivers and the beta amd catalyst drivers. I then updated to windows 8.1 and rebboted and worked fine. I then rebooted (do not ask why) and when I rebooted the screen was lit but black! This has happe

  • Showing column shop_from in quick sales order

    Dear all, I am trying to show one field name(ship_from) Warehous , when i go to show field it is not showing that field during creation of new folder, however this field is already shows for other saved folder , I have to show on quick sales order fo

  • Toad explain plan

    Hi, I understand that reading output of an explain starts from the mostly indented lines. Anyhow in TOAD (I am using version 9.7) toad Adds a number before each line in the explain plan tree. This number looks random to me because I cannot link it to

  • Getting Files off of ATV

    Hi All, Is there a way to get files off of ATV that have been synced from iPhoto? Here's my problem. I have a LaCie drive that I use to save all of my media files on and that drive syncs my photo's to my ATV. I can no longer mount my LaCie drive; whi

  • AIR runtime will not install

    I must be missing something simple.... I cannot get the AIR runtime to install on a 17" G4 iMac, 1ghz processor, 768 RAM. I click on the installer application and nothing happens. Has anyone else had this problem or can they shed some light on what m