Wanted Po to payments??

Hi,
I need to form a query from purchase order to payments can this be done with mandatory columns.I have written the query but may be i missed some tables or the joins dint match in some cases.
So anyone please build me purchase order-->receipts-->invoices-->payments (po to payments query).
Thanks,
By,
Kranthi.

Hi,
Please look at the following query. This is in R12. Please modify the query as per your requirement.
SELECT
pha.segment1 po_number,
     pla.line_num,plla.shipment_num,
     msi.segment1 ordered_item,
     msi.description ordered_item_description,
     pla.unit_price po_unit_price,
     rt.transaction_type,
     rt.transaction_date,
rt.subinventory,
plla.quantity quantity_ordered,
plla.quantity_received,
pda.quantity_delivered,
plla.quantity_Billed,
rsh.receipt_num,
aia.invoice_num,
ail.line_number inv_line_number,
aid.distribution_line_number inv_dist_number,
ail.line_type_lookup_code Line_type,
aid.line_type_lookup_code Dist_line_type,
aid.amount,
aid.quantity_invoiced,
ac.check_number,
aip.payment_num
FROM
apps.rcv_transactions rt,
apps.po_headers_all pha,
apps.po_line_locations_all plla,
apps.po_distributions_all pda,
apps.po_lines_all pla,
apps.mtl_system_items msi,
apps.rcv_shipment_headers rsh,
apps.ap_invoices_all aia,
apps.ap_invoice_lines_all ail,
apps.ap_invoice_distributions_all aid,
apps.ap_invoice_payments_all aip,
apps.ap_checks_all ac
WHERE 1=1
and rt.po_header_id = pha.po_header_id
and pha.po_header_id = pla.po_header_id
and pla.po_line_id = plla.po_line_id
and plla.line_location_id = pda.line_location_id
and rt.po_line_location_id = plla.line_location_id
and pla.item_id = msi.inventory_item_id (+)
and rt.po_line_id = pla.po_line_id (+)
and rt.organization_id = msi.organization_id
and rsh.shipment_header_id (+) = rt. shipment_header_id
and aip.check_id = ac.check_id (+)
and aia.invoice_id = aip.invoice_id
and aia.invoice_id (+) = ail.invoice_id
and aia.invoice_id = aid.invoice_id
and pda.po_distribution_id(+) = aid.po_distribution_id
and rt.transaction_type = 'DELIVER'
and ail.line_type_lookup_code = 'ITEM'
and aid.line_type_lookup_code = 'ACCRUAL'
and pha.segment1 = '&PO_Number'
Regards,
Jyoti

Similar Messages

  • HT2589 My account is blocked out. I registered my account for Russia because there was no that option for Ukraine. And now I can't do any purchasing, because apple store want's another payment option. What should I do? Ps my friends here has such a proble

    My account is blocked out. I registered my account for Russia because there was no that option for Ukraine. And now I can't do any purchasing, because apple store want's another payment option. What should I do? I have many apps on my account but I can't do even updating.  Ps my friends here has such a problem too

    Ukraine is there. It's been there for a while. I even see it now.

  • I dont want to enter payment details ,iam new to iphone i need to install apps and i also did't get none option

    i dont want to enter payment details ,iam new to iphone i need to install apps and i also did't get none option

    You have to follow the instructions on this page when creating a new account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…
    If you don't then credit card details will need to be entered before the account can be used to download any item from the store.
    If you are being prompted to review the account when logging into it then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
    If not then you will either have to enter credit card details (you can remove the card after entering it), or create a new account (and this time follow the instructions on the above link)

  • Want to change payment methods, it says: 'we're processing your order'. For 3 days already. In 2 days my subscription ends.

    I've had earlier issues with changing my creditcard data, eventually that worked, and the person I spoke with in the chat said everything would be fine with my subscription.
    Now, it says I should've had a bill 2 days ago to renew my subscription, but I didn't. So I clicked 'add payment info' and it says: 'We are processing your order'. But it's saying that for 3 days now, and my subscription ends in 2 days. So if it's not fixed by then I'm damn lost 'cause my work depends on Photoshop.
    What am I supposed to do now? I just want to pay the bill so I can use Creative Cloud.

    This is an open forum with a mix of other users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I want to maintain  payment terms...material wise

    hi,
    Experts,
    here i want to maintain vendorwise and material wise payment terms....Vendorwise payment terms its ok i got it but how to maintain paymet terms for material.....is there any way to do maintain material wise payment term...
    thaks in advance.......
    Regards....
    sunil.....
    Helpful Ans will be awarded...

    Hi,
    Sorry to say but all the alternatives suggested did not work.
    Because fundamentally what you are trying to do Sunil is not logical.
    e.g. X person wants 100 qty of material, y person wants 2000 qty of material, the terms of payment are always dependent on the quantity of material, never on the material.
    also various other factors play  a role in determining payment terms:
    like credit check,
           payment history,etc
    these terms are all related to the customer only.
    thus depending upon the fact that majority of its dependant fields are invovled with customer, it can only be configured with respect to customer.
    plz clarify on the situation as to why do you need to configure it on material basis.
    regards,
    Siddharth.

  • I want to change payment option

    Dear frnd,
    I have an issue , i want to use None option for my apple id ITunes, but "None" option is not avaialable for my id, but many other guys is using that option

    The None option is only available when setting up new Apple ID. If you redeemed the gift card, this will be used as the primary payment method for your subsequent purchases, not your credit/debit card.
    http://support.apple.com/kb/ht1574

  • HT204266 i want to change payment method

    When i first created the account when it showed up which payment method it said that you could select a no payment method but then there was no symbol to put it as a no payment method

    JUST WONDERING IF YOU EVER FIGURED THIS OUT? IM HAVING THE SAME PROBLEM. THERE IS NO SELECTION FOR "NONE" IM TRYING TO CHANGE THIS TOO?

  • HT1918 When I want to Submit payment information there is a messege

    When i bought ipad i didnt have credit card but now i have so i want to change the information of payement but when i do they said this credit card cannot be used in this itunes store please change the information this is crazy im sure that i wrote every singel word right note: i live in lebanon and the credit card is a visa card
    Please help i want to purshase apps and music and before the school came

    See your other post on the subject:
    https://discussions.apple.com/message/19606078#19606078

  • I cannot buy anything from App Store ! I want change account payment but something wrong ,come some link for assistance contact iTunes support

    I Cannot bu anything from App Store help ,and change payment

    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Payment Information  >  http://support.apple.com/kb/HT1918
    If necessary... Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How to block on account payment for certain user

    Dear All,
       We are looking to implement a policy on how to block certain users not to be able to take on account payment. One more query is it possible to disable a field. I want to disable the field "Payment on account" in the Incoming Payments. Please advice

    Hi,
    Sue below code in transaction notification procedure,Change userid =1 to user id for user ou want to block payment on account
    IF @Object_type = N'24' and @transaction_type = N'A'
    BEGIN
    if exists (SELECT    ORCT.DocEntry from ORCT
                         WHERE (ORCT.PayNoDoc='Y' and ORCT.UserSign=1) and ORCT.DocEntry  = @list_of_cols_val_tab_del
    begin
            select @error =14
       select @error_message = 'Cannot make on account payments '
    end
    END
    Thanks,
    Neetu

  • Vendor wise payment report

    Dear Experts,
    I need to have a report that shows all the details of vendor wise payment reports is there any specific transaction codes to resolve this issue
    Regards,
    Ramakrishnan. S

    Hi
    The simplest I Could think of is FBL1N itself with cleared Items. You can always subtotal on Vendor No and Payment Document type. There are other std reports like S_ALR_87012085, S_P99_41000099. It also depends on what kind of information you want from the payment report
    Regards
    Sanil Bhandari

  • Automatic payment issue

    Hi,
    We are in the process of upgrading our SAP system from release 4.6c to ECC 6.0.
    As part of preparation activity, we have applied patches into our production live system (4.6c) from 48 to 54 for SAP_APPL, SAP_BASIS and SAP_ABA.
    Before applying the patch, our automatic payment run executed successfully.
    Using Automatic Payment Program (Transaction code: F110), we have scheduled the proposal with required parameters. After successful generation of proposal, we wanted to edit payment proposal to clear the particular selected line item. We selected required line item to be cleared; however, system is clearing all the line items which are due for payment for the given vendor.This issue started coming after we applied patch level 54 for our SAP 4.6c.
    This is stopped all our outgoing payment to our business partners since yesterday.
    Kindly help us regarding this issue.
    Regards
    vimal

    Hi ,
    What do you mean when you say Invoices were not cleared, are you generating posting orders?
    Secondly either you generate posting orders or payment documents SAP will not allow to further process this documents unless you void and reverse the same.
    Pls be more detailed to suggest a  solution.
    Thanks,
    Praveen

  • F110 - Automatic Payment Program (APP) - Profit Center wise

    Has anyone worked on plant wise/profit center wise payments before? We have done necessary enhancement to populate profit center in vendor line item at the time of posting invoice. We are doing profit center wise proposal run in F110 by using additional selection criteria in F110.
    However, the problem arises when different profit centers want to make payment to same vendor. In such cases when one profit center has created the proposal for the vendor, F110 locks the vendor for any other payment proposal by making an entry in REGUS table. Hence, when the other profit center creates proposal in F110, the vendor is shown as locked. The lock is released only after the payment run.
    All the profit center will run proposal at the same time and after that payment run will be carried out by central treasury. Hence, I cannot schdule the payment run of different profit center at different time.
    Is there any work around? Is it possible that same vendor can be contained in different proposals of different profit centers?
    We were thinking of doing an enhancement to delete the entries from REGUS table after proposal run. Would it be right way?

    It is standard behaviour in F110 for locking vendor.
    Try luck to use same paying company code for all your profit center company codes.  Keep update

  • Down payment for AUC error

    hello Gurus.
    we want to down payment against asset Purchase order using F-48.
    during Simulate the Document we get the following error.
    Account 26318501 is not a reconciliation account
    Message no. AU138
    Diagnosis
    Processing terminated because account 26318501 (determined from account symbol KTANZA in chart of accounts YAIN) is not specified as a reconciliation account for assets.
    Procedure
    Define the account as a reconciliation account or assign a different account in the account determination for Asset Accounting.
    the account 26318501  is Reconciliation accounts. still system generate the error.
    how I resolved this issue.
    I am waiting your reply.
    regards,
    riten patel

    Hello Atif Farooq .
    I have get two error.
    if I made changes to recon account type to Asset then
    during Down payment using F-48, system gives me error  during the entry  that
    "Account 26318501 is not a reconciliation account for account type K
    Message no. F5017
    Diagnosis
    The account 26318501 is to be used as a reconciliation account for the desired special G/L transaction. However, the account was not defined as a reconciliation account for account type K in the company code-specific part of the master record.
    Procedure
    If the account number is correct, change the master record of the account. If the account number is incorrect, determine via Customizing which account is to be used. The specification is made in table T074."
    and if I made changes to recon account type to vendor then ,
    system gives me error during Simulation that
    Account 26318501 is not a reconciliation account
    Message no. AU138
    Diagnosis
    Processing terminated because account 26318501 (determined from account symbol KTANZA in chart of accounts YAIN) is not specified as a reconciliation account for assets.
    Procedure
    Define the account as a reconciliation account or assign a different account in the account determination for Asset Accounting.
    Please help me to solve this problem.
    I am waiting your reply.
    regards,
    riten patel

  • Mass change of payment in customer line item for all open line item.

    Hello,
    We have updated the new payment as per the new agreement with customer in customer master. We want this new payment term should also be updated in all the open invoices which are not cleared. Is there are way we can do the mass change in Payment term as the open line item in the customer where line item are more than 50. Please let me know the transaction code for the mass change of payment term in Customer account balances.
    Thanks and Regards,
    Rajesh Kumar Mantri

    Hi
    you can find the way to change the payment terms
    first check weather the payment term field is having change option in your document change rules in the line item for you customers.
    Financial Accounting (New)Financial Accounting Global Settings (New)DocumentRules for Changing DocumentsDocument Change Rules, Line Item
    if the payment term BSEG-ZTERM(payment term) is there for your customer and having deselcted check box for changing document you cannot change payment term for your company code.
    This can done client level or company code level.
    if the payterm  can be changed you do changes to payment terms mass level.
    Thanks
    ANJI

Maybe you are looking for

  • Oracle Database 10.2.0.1 to 10.2.0.5 error

    Hi, i am having Oracle database 10g(10.2.0.1) on RHEL5 which i am upgrading to 10.2.0.5. I receive the below error while installing. It seems that i need to change the kernal parameters. Checking operating system requirements ... Expected result: One

  • Critical error while approving leave

    Hi In portal while approving leave i am getting the follwoing error . Critical Error A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost. Please contact your system administrator.    The running ap

  • Problem with lenovo t60 and the vga output

    I have a problem with the vga output and the lenovo t60 When i put the videoprojector connector in to the lenovo t 60, the projector reponde is: Not supported H: 48.20khz   v: 143,10 hz  On my desktop pc the projector function on 1024x768 resolution

  • PBR feature in cisco 3548 nexus switch

    Hi All , Could you please tell me whether cisco 3548 switch will support PBR ? we do have license of Lan1k9 enterprise license switch. But we are not ableto use the PBR featutre. Any help on this.. Regards, Vijay.

  • Woke up this morning to fan blasting and no response to keyboard

    I have been using my mac with a surveillance program called SecurutySpy for the last 3 weeks with no problem. I leave the Mac running all night and just turn off the dual monitors. Last night, after finally reading the manual for the program, I decid