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 ;

Similar Messages

  • 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

  • Unrealized Gain/loss from exchange rate

    Hi all,
    Please i need help , exchange rate fixed is checked in PO ,at the point of MIGO system use  exchange rate in PO.When i check Accounting document in MIGO system Debit Stock account and Credit GR/IR account using exchange rate in PO ,but the difference of exchange rate in PO and system exchange rate, Debit Price diff. clearing account and Credit unrealized Gain/loss from exchange rate account ,I need to know if the posting is correct.Thanks. The Accounting Document was displayed as follows:
    Stock account was Debited
    GR/IR account was Credited
    Price difference clearing account was Credited
    Unrealized Gain/loss from exchange rate account was Debited

    Yes the account postings are correct if you are using a Std price control on the material master.

  • Compute Unrealized Gain/Loss and Provisions for Valuated Forex Contract

    Hi Everyone,
    Can anyone tell me how unrealized gain/loss or provisions were computed for forex contract?
    I created a spot/forward transaction with the following details:
    Product Type: 60A
    Transaction Type: 102
    Buy Currency: USD
    Sell Currency: NZD
    Local Currency: SGD
    Forward Rate: 0.6864
    Spot Rate: 0.7045
    Swap Rate: 0.199-
    I used midyear valuation w/ reset as a valuation category when I execute valuation in TPM1.
    Your response would be greatly appreciated.
    Thank you.
    Canto

    Hi  Murlidhar,
    Thank you for the response.  Yes, I understand that a gain/loss can be realized based on exchange rate differences between when invoice entered/posted and when paid.  That's only part of the gain/loss in minds of the accountants.  The other part is gain/loss from time that cash was put into bank account.  For example, we spend $100 USD to purchase and deposit R$167 BRL into Brazil bank account.  Three months later that same R$167 BRL is worth only $85 USD.  At that time we post and pay Brazil invoice on same day in amount of R$167 with no exchange gain/loss on the invoice.  System posts credits of R$167 BRL and $85 USD to bank account G/L account.  System does not record gain/loss on payment because invoice currency translation date and paid date are same.  However, the bank account G/L account balance now reflects R$0 BRL and $15 USD on which system calculates a $15 USD unrealized gain/loss at month end.  This unrealized gain/loss on the bank G/L account posts and reverses each month just as you said but never goes away.  In minds of accountants the $15 USD gain/loss should be recognized.  How best to recognize the $15 USD gain/loss, that is the question.
    Thanks
    Steve

  • 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

  • Forex Gain/loss posting from prior interest Accruals in capitaliization scenario !!

    Gurus,
    This is a decent question.
    In SAP MM instruments, how do we post
    Forex Gain/loss arisng from prior interest Accruals in capitaliization scenario !!
    1. Is it REALIZED OR UNREALIZED gain/loss?
    2. Should it even be considered Gain / Loss, in which case Accounting Entry will be like
    DR/CR Interest Accrued
    Cr/DR Interest Accrued Discount
    Please advise.
    Rahul

    Hi Rahul,
    Can you explain what do you mean by prior interest acrruals in capitalization scenario.
    If you have a MM product which you are capitalizing the interest , then for previous month the accrual interest posted which is already posted will remain.
    I am not clear about the scenario. Care to explain it pls

  • 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

  • AP Balances' Mess.Xcess of Realised Exchange Gain/Loss Postings.How 2 Clear

    Dear Readers,
    Our project is stuck with an issue which from the onset a simple issue.
    Issue being the AP balances show excess of Realised exchange gain/loss postings.The Realised Exchange gain/loss postings are in USD (i.e. Local Currency).
    This creates an issue in clearing when the invoices do not match the balances and the automatic clearing is not possible.
    Although reports (income statement and Balance Sheet) give matching results, but AP on the individual level (vendor wise) poses such a problem.
    Kindly enumerate the solution.
    Its a high priority issue.
    Any sort of help is much sought.

  • Query about gain/loss

    hi mm gurus,
    my client has faced a problem
    After reviewing their month end account they noticed  that there are huge variances in Gl Code 429003 ( Stock Transfer Gain/Loss ) for  different material... .
    Grateful if you could revert to it and advise
    Please advice the possibilities
    Thanks in advance
    subbu

    Hi,
    If you move a material from one plant to another and the valuation price is different you will get postings to this account.
    You will also get postings to this account if the 309 movement type has been used (you must not use 309 to correct errors, it should only be used if a material has GENUINELY change to another material due to the passage of time).
    To check what else could be posting to this GL there is a noce function hidden away.
    Go to SPRO
    Materials Management > valuation and account assignment > account determination > account determination without wizard > configure automatic postings
    Get rid of any warning messages  then click on the "GL accounts" icon (next to simulation). Enter the company code involved and you will get a list of every account that is automatically posted to. It will also give you some indication as to why it was posted (which transaction event key and account modifier was used).
    thios si a really useful report for finding out (checking) which GL accounts are auto posted to via MM (and why)
    Steve B

  • Gain/loss from discontinued operation

    1.Once the consolidation Unit is full divested(100%), how the revenue after discontinued period will be accounted. Because the consolidation unit is fully disposed off to external group. If the earlier holding was having Minority Interest , do we have to provide the minority interest for income from discontinued operation.
    2.Can the reclassification function can be used in this context.
    3.How can we facilitate the report on income from discontinued operation. Can we maintain in the company/profit center the period in which divested so that we can know the generate the report for the income from discontinued operation with reference to the data of full divesture.

    Here's my understanding of how the divestiture works.
    Cons Group A
    - Parent A
    - Sub B
    Parent A owns sub B starting in 2006.  In 6/2007, Parent A divests Sub B.
    In the GL, Parent A books a Gain/Loss from the sale of their company.  In BCS, the system will calculate a gain/loss from divestiture as part of the total divestiture activity in the COI.  If we have a gain of -10, BCS will book a loss as +10 @ PL30 in Cons Group A.
    From an unconsolidated perspective, you are correctly showing the gain on the parents books.  At a consolidated perspective, you are still showing the Jan - June income statement from the sub until the end of the year.  BCS has offset the "unconsolidated gain" with a "consolidated loss" to prevent double counting the income.
    At the end of the year, the parent's gain will roll forward into the prior year earnings.  The "consolidated loss" would offset into retained earnings and go away.  Now you only have the prior year gain sitting in the parents surplus on a go-forward basis.
    Looking at the postings by BCS, I think it might help to have the divestiture gain & loss going to the same account in the COI config.  An the Gain booked in the parent on an unconsolidated GL basis needs to go to this account as well for everything to offset cleanly.
    That's what I see the system posting...let me know if I'm missing something...can't hurt to have more documentation here!
    Chris

  • Gain/loss posting in Group Curr when local cur and doc cur is the same

    When posting payment via F-28 we are getting currency gain/lost in group currency. The transaction and local currency are CLP. We are selling and receiving payment in CLP. Our group currency is USD. We are wanting to not see a currency gain/lost in USD when receiving payment. We would like the system to use the CLP:USD exchange rate in place at the time of the sale when we post the payment. Does any one have any advice on how to have the system to not calculate a currency gain/lost in group currency when document currency and local currency are the same AS the currency used for the sales and cash payment?

    Hi
    I have an query. Normally we will use the group currency for reporting at the Company level. So the gain/ loss for USD should have impact at CCo level. And practically fromt eh business point of view, it seems to be correct to valuate your payments or receipts when you actually book them. Doesn't it?
    Thanks
    Nikhil

  • 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

  • FI Forex gain loss & Exchange Rate difference on Foreign Currency & Chart of Accounts

    Dear All,
                 I have queries on following :
    1) what is difference b/w Forex gain loss account & Exchange Rate difference on Foreign Currency account .
    2) Under which Heads in Balance sheet they should come as per Indian Accounting Standards.
    3) Are these accounts common for Vendor & customers or different.
    4) they record FI data at Company code level or at sub-ledger level first (Vendor /Customer) .
    4) Is it advised to use same Chart of Accounts to two companies in same country by using different GL's with different FSV?
    Regards
    MJ

    Hi M J,
    Please note the answers below:-
    1. It is one and the same thing. When you say forex gain/loss account, it means a GL account and exchnage rate difference means, the difference in rates at which you purchased/sold and the rate at which you made paid/collected.
    2. Ask Client where they want to show these GL's in Financial statement Version.
    3. The configuration setting is in OB09 and SAP allows you to keep same or diff GL for both realised Exchnage rate gain/loss. It depends on how you want to see. technically it is possible.
    4. The Valuation is done at company code level, but individual records are picked up at vendor/customer level. It means that the revaluation gain/loss adjustment is not given to each individual Vendor/Customer, rather it is posted to a GL - Balance Sheet adj.
    5. Yes, you can use same chart of accounts and you do not need to create separate GL's at the company code level for two company codes. Same GL's can be used as the posting is made at Co. code level.
    Regards,
    Kavita
    Note : Please raise separate thread for different questions. Your Point No. 5 is not related to the rest.

  • How to post gain/loss on exchange rate from Money Market

    Dear Sap Expert,
         I need your kindly help about posting gain/loss in Treasury with money market type.
         My scenario use the product type 55A  - Interest rate instrument  and transaciton type = 200 borrowing in Foreign currency transaction as the transaction as belows,
    Date                   Flow Type     Name                       Amouunt      currency     Exchange rate         Amt.Local currency
    19.10.2011         1105             Borrowing               10,000            USD               30.00                       300,000
    30.10.2011         1120             Final repayment       10,000            USD               30.00                      300,000
        For the normally the system generate current exchange rate from the configuration .After that I try to change the Exchange rate manually in Flow type 1120 from 30.00 to be 31.00  then  the Amt.in Local currency changed to be 310,000 and the flow type gain/loss from exchange rate does not generate ( In Loan Management I can do it)
        On 19.10.2011 I use t-code TBB1 to post the borrowing transaction (1105)
        On 30.10.2011 I use T-code TBB1 to post the Payment transaction but the gain/loss account does not happen.
        For my question Can the system post  document for flow tpe 1120 (on 30.10.2011) with exchange rate realized gain/Loss automatically? or how should I do to make it correctly.
    Thank you very much for your suggestion.
    PK

    Hi,
    your customizing for Derived Business Transactions requires DBT_B flows in your PMP in order to post realized gains/losses.
    Regards,
    Lorenz

Maybe you are looking for