R12 link to AP and GL

Hello,
I am trying to link AP and GL in R12. I am totally new to R12 , so kind of lost. I tried to develop a query using subledger accounting tables as below but I am getting duplicates. Can someone pl correct me orhelp me build this. I actually need the check no attached to the invoice. please help!!!!
select check_number, p.invoice_id, p.payment_num, jl.je_header_id, jl.je_line_num, i.invoice_num
, i.gl_date, i.invoice_amount
, al.code_combination_id XLA_CC_ID
, jl.code_combination_id journal_CC_ID
,l.source_distribution_type
--distinct applied_to_entity_code
from xla_distribution_links l,
ap_invoice_payments_all p,
xla_ae_lines al,
gl_import_references r,
gl_je_lines jl,
ap_checks_all c,
ap_invoices_all i
where l.applied_to_source_id_num_1 = p.invoice_id
--and   l.source_distribution_type= 'AP_INV_DIST'
and l.ae_header_id = al.ae_header_id
-- and l.ae_line_id = al.ae_line_id
and al.gl_sl_link_id = r.gl_sl_link_id
and r.je_header_id = jl.je_header_id
and r.je_line_num = jl.je_line_num
and p.check_id = c.check_id
and p.invoice_id = i.invoice_id
and invoice_num = '90283-070108'

Do you just need the check no attached to an invoice, please confirm ? In this case you need not refer to any of the GL tables ?
select check_number, p.invoice_id, p.payment_num, i.invoice_num, i.gl_date, i.invoice_amount
from ap_invoice_payments_all p,
ap_checks_all c,
ap_invoices_all i
where p.check_id = c.check_id
and p.invoice_id = i.invoice_id
and i.invoice_num = '90283-070108';

Similar Messages

  • 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.

  • Hi There, any one can send me on-line documentation link 11.5 and r12

    Hi There,
    Any one can send me on-line documentation link 11.5 and r12
    Thanks
    Bachan

    Direct links of Oracle Apps Documentation:
    Oracle E-Business Suite Online Documentation Library Release 12
    http://download.oracle.com/docs/cd/B40089_05/current/html/homeset.html
    Oracle Applications Release 11.5.10 + Online Documentation Library
    http://download.oracle.com/docs/cd/B25516_17/current/html/homeset.html
    Oracle Applications Release 11.5.10 Documentation CD
    http://download.oracle.com/docs/cd/B15436_01/current/html/homeset.html
    Archived Documents (11.5.1 to 11.5.9) can be found at:
    http://www.oracle.com/technology/documentation/applications.html

  • 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 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

  • When I first open Firefox it is fine but if I open a second tab to search another site I get a white screen and have to continually click 'back', click the site link, white screen, back, click the link, white screen and so on.

    When I first open Firefox it is fine but if I open a second tab to search another site I get a white screen and have to continually click 'back', click the site link, white screen, back, click the link, white screen and so on.

    This can also be a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    You will have to redo App Tabs and Tab Groups after deleting sessionstore.js.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • 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

  • Link between Project and Sales Order

    Apart from sales order can we have a link between project and customer master ??
    I know that WBS element assignment can be made in sales order but i want to have link between
    customer master and project. I don't want any user field or text field in sales order.
    Any idea ?
    Regards
    Ashish

    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

  • 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

  • What is the link between PO and Requisition in database side

    hello friends,
    please can any one tell me that what is the link between PO and Requisition in database side. means after creating the requisition we will go for create the PO based on that requisition.
    want to know that what is the link between both in database side.
    Thanks in advance
    krish.

    Hi,
    The link is at distribution level, between:
    PO_DISTRIBUTIONS_ALL.REQ_DISTRIBUTION_ID
    and
    PO_REQ_DISTRIBUTIONS_ALL.DISTRIBUTION_ID
    Hope it helps.

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contacts. I want it to just autofill for the contacts that I have in my address book. Is this possible? Thank you. I have an Imac Intel version and an Iphone 5 phone.

    Mail > Window > Previous Recipients

  • Hi everyone, I have a computer linked to my iPAD through itunes.  Then my Computer crashed and had to get  a new one. How do I get rid of the old computers link on ipad and get it on new computer bcos is wont work! (doesn't work) PLZ HELP :(

    Hi everyone, I have a computer linked to my iPAD through itunes.  Then my Computer crashed and had to get  a new one. How do I get rid of the old computers link on ipad and get it on new computer bcos is wont work! (doesn't work) PLZ HELP

    what do you mean the old computers link?
    my ipad is sycned with my computer but nowhere is there a link
    and if I connected it with a new computer and set it to sync it would replace all my data with the data from the new computer

  • How can I print a Safari page without the links being printed and cover other text?

    How can I print a Safari page without the links being printed and covering other text?

    Try printing the page as PDF.
    From your Safari menu bar click File > Print > Save As PDF then print the PDF file.
    If you don't want to do it that way, reset the print system.
    Mac OS X: How to reset the printing system

Maybe you are looking for

  • Executing a SQL Command in my bean class

    Hello everyone, I'm using JDeveloper 12.1.2.0.0. I have an interest in executing a query in my bean method. I've done some research and i still got a code but it can't find the method that the method requires so i tried to added the query in my AppMo

  • Why can't I play .mov files on my IPAD?

    The file plays ok on IMAC. Is there an app I can download?

  • Autopost - General Ledger

    How do we call Autopost-General Ledger and pass the Criteria set as a parameter using FND_REQUEST.SUBMIT_REQUEST Thanks.

  • Automatize imports in XI

    Hi Gurus. Is there any chance to automatize transports in XI? Has the last SP a tool to automatize them? Any external application? We use to have a large ammount of transports from DEV to QA and then to Live and it would be really helpful if we could

  • PPPOE Radius Server Recomendation

    We are looking at providing internet service to subscribers via wireless 802.11. I am looking at using PPPOE and Radius for authentication. Is this still the best way to handle authentication for fixed wireless subscribers? If so what is the best way