R12 links between GL and AR through XLA

Hello,
I have a requirement where in I need to modify standard account analysis report to show Customer name, ReceiptNumber/Invoice Number, Invoice Date etc going from GL.
I have noticed that this has to be a UNION ALL query as AR data resides in mulitple tables based on the Source table column in AR_DISTRIBUTIONS_ALL which can have the following
tables listed
-- RA AR_Receivble Applications All
-- CRH AR_Cash_receipt_History_ALL
-- ADJ AR Adjustments ALL
-- MCD AR_MISC_CASH_DISTRIBUTIONS_ALL
-- TH AR_TRANSACTION_HISTORY_ALL
I built a query based on the fact that JE_SOURCE of 'Receivables' can have the following JE_CATEGORY values
Sales Invoices
Credit Memos
Debit Memos
Misc Receipts
Receipts
The query works for few accounts but not for every one. Some times it misses some data and some times it brings more data than required. I'm posting one such query here that is
being used for RECEIPTS. Can some one with the knowledge of XLA tables take a look and see if I need to bring in any additional tables to aviod Dupes or bring missing data?
We will be going live in a week and these reports will be needed right away. Thanks for your help
SELECT CASE WHEN acra.amount IS NOT NULL THEN acra.amount ELSE NVL(o100137.ENTERED_DR,0)-NVL(o100137.ENTERED_CR,0) END as Line_Total
,o100137.DESCRIPTION as Description
,o100137.EFFECTIVE_DATE as Effective_Date
,acra.amount as Invoice_amount
,acra.receipt_date as Invoice_Date
,acra.receipt_number as trx_number
,o100138.PERIOD_NAME as Period_Name
,o100138.PERIOD_NUM as Period_Num
,o100138.PERIOD_YEAR as Period_Year
,o100127.SEGMENT2 as Division
,o100127.SEGMENT3 as Department
,o100127.SEGMENT4 as Account
,o100127.SEGMENT5 as FTA
,ard.source_id
,NVL(hzp.party_name,acra.misc_payment_source) as Customer_Name
,'Receipts(CRH)' as source
FROM ar.ar_cash_receipt_history_all acr,
     ar.ar_Cash_Receipts_all acra,
ar.ar_distributions_all ard,
     ar.hz_cust_accounts hca,
     ar.hz_parties hzp,
GL.GL_CODE_COMBINATIONS o100127,
GL.GL_IMPORT_REFERENCES o100131,
GL.GL_JE_HEADERS o100135,
GL.GL_JE_LINES o100137,
GL.GL_PERIODS o100138,
XLA.XLA_AE_LINES o100197,
XLA.XLA_DISTRIBUTION_LINKS o100199
WHERE (ard.source_id                = acr.cash_receipt_history_id)
and (acr.cash_receipt_id          = acra.cash_receipt_id)
and (acra.pay_from_customer      = hca.cust_account_id(+))
and (hca.party_id               = hzp.party_id(+))
and (o100135.je_header_id = o100137.je_header_id)
and (o100137.CODE_COMBINATION_ID = o100127.CODE_COMBINATION_ID)
and (o100137.JE_HEADER_ID = o100131.JE_HEADER_ID AND o100137.JE_LINE_NUM = o100131.JE_LINE_NUM)
and (o100137.PERIOD_NAME = o100138.PERIOD_NAME)
and (o100131.GL_SL_LINK_ID = o100197.GL_SL_LINK_ID)
and (o100199.source_distribution_id_num_1 = ard.line_id)
and (o100199.event_id                         = acr.event_id)
and (o100197.code_combination_id               = acr.account_code_combination_id)
and (o100197.AE_HEADER_ID = o100199.AE_HEADER_ID AND o100197.AE_LINE_NUM = o100199.AE_LINE_NUM)
-- and (o100199.accounting_line_code IN ('MFAR_MISC_RCT_CASH','RCT_APP_MFAR_TRX_REC'))--('CASH', 'MISC_CASH')) --('RCT_CASH'))--
-- and (o100197.accounting_class_code IN ('RECEIVABLE'))
and (o100135.je_source = 'Receivables')
-- and (o100135.JE_CATEGORY <> '
AND (o100138.PERIOD_SET_NAME = 'PACE_CAL')
AND (o100135.CURRENCY_CODE = 'USD')
AND (o100135.STATUS = 'P')
AND (o100135.ACTUAL_FLAG = 'A')

Hello Hansen,
I found this note on My Support:
"R12. EBTax. How to Differentiate Tax Rate Code for Payables and Receivables Transactions in Tax Classification Code LOV (List of Values). [ID 756985.1]
Tax Classification Code LOV ( List of Values) is showing all tax rates created in EBTax. You need to choose your tax rate code in the list of values on tax classification code in Payables or Receivables. How do you differentiate the Tax Rate Code for Payables and Receivables transactions in the Tax Classification Code LOV?
*Solution*
Please note that in R12, there is a centralized tax engine. Tax set up made in EBTax will be and can be applicable to both Payables and Receivables. Any tax rate created in EBTax, will be available as a Tax Classification Code LOV in both these applications. It cannot be restricted and it is the intended functionality.
If Payables and Receivables exist with unique operating units then the MOAC security settings can be used to restrict the LOV. Additionally if EBTax is configured propertly the tax classification codes will not be used for tax determination except in exception based scenarios. Please see the case study in *Note 577996.1* for examples
I just setup ebTax using tax codes for AR and AR and, by the moment, the tax codes from both modules are shared on the LOV. We used a convention for the code naming...but I'm will be looking note 577996.1
Regards.

Similar Messages

  • Link between Item and delivery

    Hi ,
    I want to know the link between item and deliveyr. Like for example, an sales order item ( no. 10) containing 10 quantities can be delviered 5 times( each containing 2 quantities) and line item ( no. 20) can contain one single delivery. I am working on a report where i have to link all the line item to its delivery number. I am trying to achieve this through GENIl but i am not able to indetify as to how to differentiate the different deliveyr numbers. In other words, can some one help me as to how to link the delivery number to its corresponding items?

    Document flow is stored in the table VBFA in ECC.
    VBELV fied is the sales order number and in POSNV specify the line item number and speicfy VBTYP_N = J (Delivery).
    Regards,
    Bhanu

  • Link between GTM and FSCM (sales or purchase order hedging)

    Hi all,
    I am trying for a few days to have SAP GTM working (I am in an IDES ECC6 system, and as far as I know in EhP4 version). The main goal in fact is to test the currency hedging, and therefore to the link GTM and FSCM, either single-sided purchase or sales order, or two-sided . The flow I want is the following :
    -     I buy or sell a product, in GTM, through a trading contract which generates a purchase or sales order.
    -     Automatically a currency hedge is generated to cover the risk, in FSCM, I guess in exposure management.
    -     And then the financial products (derivatives) are generated as well.
    No problem to create the trading contract, no problem to generate the sales or purchase order. But in spite of the (very little) customizing I found in u201CSAP GTM => currency hedgesu201D, and some in FSCM, in u201Ctreasury and risk managementu201D, no way to have this link between GTM and FSCM, no additional document is generated like a Forward Exchange Transaction (I guess I should have this, and then a risk exposure in FSCM).
    Would you have an idea ? Is this customizing, or an additional Business Functions or Extension Set not activated ? SAP says : u201Cit worksu201D, but canu2019t find the way.
    Thank you very much for your help, I am quite looking for this link for a few days now u2026
    Best regards
    Patrick

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • Install from scratch 3 times Mavericks but cannot used my restore it will just start for ever. After first install and restore mail and link between folder and files didn't work anymore. Now cant see my disk in finder. Help?

    First install through regular update : never finishing the start after automatic restart
    First install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only - Mail crashed each 5 inutes and asked constantly for password of my 2 accounts, links between folders and files not OK and attaching a doc was complicated. I downloaded the update same problems
    Second install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only and settings : never finishing the start after automatic restart
    Third install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - But no disk available in Finder
    So far no Mac since 3 days ...
    Any help is welcome

    Still struggling to understand why copying the entire root dir to a disk image and then restoring from that image did not, as expected, yield an identical system, and why I even had to reinstall after doing this.
    Because there is a lot more going on under the hood than merely copying files.
    The only way to do what you want is to use cloning software like Carbon Copy Cloner.
    My  advice is to rescue your personal files to a regular non-TimeMachine  external drive, Zero erase the ENTIRE drive and install OS X fresh and  update, then your programs from original sources and files from backup.
    Then, make a bootable clone and you can copy that as many times as you want and each one is bootable.
    Most commonly used backup methods
    How to erase and install Snow Leopard 10.6

  • Link between iTunes and Library lost. Hard drive failure

    Hi!
       I need help with the following problem. (i7 27" iMac/256GB SSD + 1TB of internal disk hard drive. (SATA/7200rpm/3.5"))
              The 1TB internal hard drive on my iMac failed the S.M.A.R.T. Utilities test so Apple called in the computer and I had to have the hard drive replaced. The technicians reloaded the system from a 1TB external Western Digital hard drive; I had backed up the everything on it using Time Machine.
              Unfortunately, the iTunes application cannot now locate my iTunes library. I create a lot of slideshows on Aperture and use music from iTunes on the audio tracks. The titles on the audio tracks are now inaudible and are preceded by a yellow triangle with an exclamation mark inside. Can anyone help me on how I should re-establish the original link between iTunes and its library. The music files are located in folders (name of artists), within a folder (iTunes Music), within a folder (iTunes), within a folder (Music), within a folder (declangreaney) on the 1TB of internal disk drive.
              In trying to solve the problem, I went through the folders and double clicked on one song. This opened iTunes so I highlighted and dragged all the other 'artist-named' folders on the iTunes interface and in doing so, I succeeded in accessing all the files. This is not wholly satisfactory, however, as I do not have my own playlists and more seriously, there is still no link between the Aperture audio tracks.
      Sincerely,
         DG.

        Hi again!
         I saved the last message by accident which caused the reply to be sent off and so I had not finished what I wanted to write. Aploogies.
         I didn't find the new iMac hybrid SSD/Disk system easy to understand when it arrived over a year ago. I eventually decided that the 256 SSD section would be best suited to having the Operatin System for greater speed and I must have decided to put the music files on the 1TB internal hard drive along with photos and raw video clips. I can't honestly remember. There was a lot to take in. I wasn't even aware until this failure that iTunes had a default location.
         In addition to having the iTunes folder on the internal 1TB hard drive, I used Time Machine to store the entire computer contents on a 1TB Western Digital external hard drive. I had done my last Time Machine back-up on the 13 February and so I was hoping that by opening one or two songs on the back-up, they might reactivate the 'old' interface with the original playlists on it. That didn't happen but I then realised, while I was still in the Tme Machine back-ups on the WD external hard drive, that in the iTunes Media folder contained within the iTunes folder on the default Users/Username/Music location there was only an Add automatically to iTunes folder which was empty. While still still looking through the Time Machine back-upsI saw that the music instead was stored on the 1TB of internal hard drive as outlined on the first post:
         'The music files are located in folders (name of artists), within a folder (iTunes Music), within a folder (iTunes), within a folder (Music), within a folder (username) on the 1TB of internal disk drive.'
       The iTunes.itl file was last modified on Monday at 21:52. Created on 17th February, 2012. Size 386KB
         Regards,
         DG.

  • Link between IT0014 and IT0015

    Hi,
       i created one wage type in IT0015 with amount 5000$, So that 5000$ payment made to associate. Now the same i want to recovery as 500$ in 10 installments through IT0014. Can u pls help me how will create the link between IT0014 and IT0015 for the advance wage type?
    Please give me the detailed information,so that i can configure in my system own.

    Hi,
    Please follow the below steps:
    1. Copy the WT (XXX1) from MD70 as a Balance WT
    2. Copy the WT (XXX2) from MD80 as a Recovery WT
    3. Copy the WT (XXX3) from MD90 as a Total WT
    4. Maintain the link in the table V_T51P1:
      indicator 10: Recovery WT to Balance WT
      Indicator 11: Balance WT to Total WT
    After you Paid the Advance Just decide the installments star date and amount and then maintain
    1. WT XXX2 in IT0014 with same start date (End date can be 31.12.9999) (Installment amount needs to be maintained)
    2.WT XXX1 in IT0015 with same start date (One time entry only) (the Advance amount needs to be maintained)
    3. WT XXX3 no need to maintain in any info type AND just you run the payroll ,system will deduct all installments until the total advance will deduct.
    Please let me know if you have .........
    Thanks
    Cheera

  • Link Between AR and GL

    Hi ,
    The query :-
    "Please tell me the link between AR and GL.. As i need to extract cost from GL for journal source Receivable."
    do i need to use both AR_ADJUSTMENTS_ALL and ar_distributions all within a seprate query while joining both with UNION ALL?
    How can i make use of GL_IMPORT_REFERENCES?
    Please reply

    Is it on R12 / 11i?
    If R12, please have a look at http://www.orafaq.com/node/2242
    By
    Vamsi

  • Link between reports and universes

    Hi,
    How to have automatically the link between Universes and Reports in a repository ?
    Which universes are used and by which reports ?
    I know where to get the information manually on the report but I don't how to get it automatically.
    Is it possible to make a request on meta model ? Is there a tool provided ?

    Jerome,
    You have to install Auditing (unless it was installed with the initial install, which it looks like for you it wasn't).
    Locate the PDF "BusinessObjects Enterprise(tm) XI Release 2 Auditor's Guide" (xir2_bip_auditor_en.pdf).
    You will find, among other things, that you will have to locate your software and go through another installing situation, but this time choosing to only add the missing piece (Auditor) -- best to read through the PDF first to get a handle on everthing you need to set up.  Also know that DeskI activity is not captured, just WebI (Infoview, modify report, etc).
    Thanks,
    John

  • Link between oracle and java

    Please, can you explain me the link between oracle and java.

    The link b/w oracle and java is through
    driver.
    Driver name :JDBC

  • Link  between knvp and the data belonging to a pernr

    Hello
    In table knvp there are link between customer and partners. These partners can be companies but also persons.
    Thje personnujmber is filled in case.of a person.
    Does anyone knows the links or the tables belonging to that pernr ( like the adddres, email etc.).
    i do not want the functions.
    thanx in advance

    Hi,
    Master data of personnel number are stored under infotype tables (table PAxxxx).
    e.g. the address is stored in infotype 0006 (PA0006), while email is usually stored in infotype 0105 (PA0105)...
    The key fields of those infotypes tables are mainly the personnel number, along with the validity dates and a subtype field if needed (e.g. the standard subtype for email in PA0105 is '0010')...
    fyi, You can display/maintain all PA infotypes through transaction PA20/30...
    Kr,
    Manu.

  • Missing link between Itunes and Music Loaded from CDs

    Somehow itunes no longer recognizes the link between itunes and music loaded from my Cds (error message in itunes indicates original file could not be found). I can establish this link manually one by one and the songs play but how can I establish this link other than manually one by one in itunes ?

        Hi again!
         I saved the last message by accident which caused the reply to be sent off and so I had not finished what I wanted to write. Aploogies.
         I didn't find the new iMac hybrid SSD/Disk system easy to understand when it arrived over a year ago. I eventually decided that the 256 SSD section would be best suited to having the Operatin System for greater speed and I must have decided to put the music files on the 1TB internal hard drive along with photos and raw video clips. I can't honestly remember. There was a lot to take in. I wasn't even aware until this failure that iTunes had a default location.
         In addition to having the iTunes folder on the internal 1TB hard drive, I used Time Machine to store the entire computer contents on a 1TB Western Digital external hard drive. I had done my last Time Machine back-up on the 13 February and so I was hoping that by opening one or two songs on the back-up, they might reactivate the 'old' interface with the original playlists on it. That didn't happen but I then realised, while I was still in the Tme Machine back-ups on the WD external hard drive, that in the iTunes Media folder contained within the iTunes folder on the default Users/Username/Music location there was only an Add automatically to iTunes folder which was empty. While still still looking through the Time Machine back-upsI saw that the music instead was stored on the 1TB of internal hard drive as outlined on the first post:
         'The music files are located in folders (name of artists), within a folder (iTunes Music), within a folder (iTunes), within a folder (Music), within a folder (username) on the 1TB of internal disk drive.'
       The iTunes.itl file was last modified on Monday at 21:52. Created on 17th February, 2012. Size 386KB
         Regards,
         DG.

  • Link between HRP1005 and BUKRS

    Hi all,
    I have a requirement, i need to select data from infotype HRP1005(Planned Compensation) based on BURKS in the selection screen.
    Could any one tell me how to link BUKRS to infotype HRP1005.
    existing program statement.
    SELECT *
          INTO itab
          FROM  hrp1005
           WHERE  plvar  = pchplvar
           AND    otype  = c_job
           AND    objid  = btab-job_id
           AND    trfar  IN s_trfar
           AND    begda  LE w_date
           AND    endda  GE w_date.

    There is no direct link between Job and Company Code. A Job describes one or more Positions.  A Position belongs to an Organizational Unit. An Org. Unit is tied to a Company Code through its Account Assignment features.
    ~Suresh

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Link between sd and pp

    hi all,
      i have a problem regarding relation or link between sales and production order. i have to fetch production order number related to sales order number. i have checked in the table AFPO that is production order item table , there is field AFPO-KDAUF and AFPO-KDPOS ie, sales order and sales item. but when i see these two fields there is no data into the field so how can i get data into the table related to production order.can anyone help me on this issue.

    Please refer to the below links -
    https://forums.sdn.sap.com/post!reply.jspa?threadID=309885
    Integration points with MM/IM and PP are some of the following -
    When a Production order is created and released a reservation gets created for the materials in BOM
    When the reservation is created and materials are posted against the reservation with mvt type 311 these are transferred to the respective location.
    When a GR is posted with mvt type 101, the Finished or Semifinished goods are posted to the respective storage location and inventorized.
    When a consumption is posted with mvt type 261 then stock will get reduced in resepective storage location.
    When a batch determination is done in a production order basing on the batch search strategy and sort rule material, quantity and batch are selected.
    If WM is configured an associated internal movement for all the above movement types will be posted.
    During MRP, BOM which is a master data for PP is used to calculate the dependent requirements of materials.
    During availabilty check of a production order basing on the availability check configured materials will be selected and checked.
    Hope the above may help you.

  • 'Is there a link between OLM and iProcurement'

    I have been asked 'Is there a link between OLM and iProcurement'? The person posing the question is wanting to create trainers as suppliers and I know that the supplier information is shared between OLM and the A/P, A/R and G/L modules and I presume that the link to iProcurement will be via one of these modules however is there a more direct vanilla link between OLM and iprocurement?
    Any help would be great
    Thanks
    DM

    I am afraid there is no link between the iProc and OLM.
    The closest that apps can offer you is that your learner/delegates can be of type external i.e. being an Organization or a Customer. Hence there exists a link for your delegate to be a customer(hz_parties).
    However this might be a future integration i.e. Trainers being suppliers. I am saying so because in 11.5.10 there is a table named OTA_VENDOR_SUPPLIES that has reference to vendor_id. Currently this table is not being used by OLM.
    You may look into the code of packages OTA_VSP_API, OTA_TEA_BUS & OTA_PLE_BUS and see if Oracle's future functionality will converge towards your business requirement.
    Thanks,
    Anil Passi
    http://oracle.anilpassi.com

Maybe you are looking for