AP Distribution line, PO, and Inv Info Needed

Is this the place to ask for accounts payble help? Having a hard time getting po line and inv data to appear in my code since one of the tables needs to be outer joined twice so that if an inv isn't tied to a PO then it still appears, and that table is po.po_lines_all:
Here's what I have so far:
select ....
from ap.ap_invoices_all inv
,po.po_vendors vend
,ap.ap_invoice_distributions_all idstr
,gl.gl_code_combinations distr
,po.po_distributions_all pdstr
,po.po_line_locations_all shipm
,po.po_lines_all polin
,po.po_headers_all pohdr
where vend.vendor_id = inv.vendor_id
and inv.invoice_id = idstr.invoice_id
and idstr.dist_code_combination_id = distr.code_combination_id
and idstr.po_distribution_id = pdstr.po_distribution_id(+)
and pdstr.line_location_id = shipm.line_location_id (+)
and shipm.po_line_id = polin.po_line_id (+)
and pohdr.po_header_id (+) = polin.po_header_id(+) -- this is the important join I need in order to get the PO number (segment1) from pohdr and distribution info from polin which comes via the other path, via the AP table joins.
Any help from some AP pros would be appreciated - if this is the wrong place, let me know where I could find the answer, because I'm sure I'm not the first person to have to make this.

hi,
Goto " METALINK"
With Best Wishes
Ram

Similar Messages

  • Sync info and shutdown info needed, thanks

    Hello, I just purchased my first ipod touch & I love it, except for 2 problems: (1) Every time I sync it with itunes, the clock and the date always get reset/changed. When I go into settings to change it back it reads Chicago for the time zone and September 21 2008 for the date, changed from the Memphis time zone I had set it for. I have had the Time Zone Support feature set to OFF. Also, several times when I've been using Safari, and 3 or 4 times when I was flipping through album art, the screen went black for a second and then the main home screen came up, as if I had pressed that front bottom button. Any solutions that anyone has from similar problems would be appreciated...

    If you're a complete beginner don't waste your time with this
    and hire someone to do it for you. This task is for experienced
    flash developer.

  • Digital I/O why can't I have line outs and line ins in the same application?

    I have a problem with my digital lines. I have several "write to digital line" VIs, and I also need some "read from digital line" VIs. My problem is that when I supply 5V to the line in, it doesn't register high. I checked this on a separate program, and when I did not have a "write to digital line" , the "read from digital line" was at 5V (I checked it with a multimeter). As soon as I included a "write to digital line" in the program, the input was jumping around 1.3V. What is the problem here?

    Hello,
    I apologize for the delay in responding to your question. You are writing to digital channel 0. This is the same thing as digital port 0. A port is simply a collection of digital lines. Since you are reading and writing to lines 0-7 on channel 0, the Write to Digital Line and Read from Digital Line VIs are resetting the state of the port every time they are called. I notice you have wired a 0 to the iteration count of all the write VIs, but nothing to the read VIs. To fix this problem,
    Wire a 1 to the iteration input of all the write VIs except for one. This last VI you can either wire a 0, or leave it unwired as 0 is the default.
    Wire a 1 to the iteration input of all the read VIs.
    I have m
    odified your VI in this way and attached it below. Ideally, you would want to write to a line with 0 for the iteration count only once (outside the loop). The modified VI will do it at the beginning of every loop iteration. I have tested it here and it seems to work without problems. The reason for the modification is that both the high level read and write VIs reset the port when they are called unless you wire a nonzero number to the iteration input. This effectively tells the VI that the port has been initialized and it can skip it.
    Feel free to post again if you have further questions. Happy coding,
    Grant M.
    National Instruments
    Attachments:
    dio_problem.vi ‏75 KB

  • Show the PO and Invoice Number along with Distribution Line Info

    Does any one have some code that can show the PO and Invoice number along with the distribution line detail?
    I'm tring to get to the po.po_vendors for segment1 and po.po_distributions_all but it screws up at the po.po_lines_all table which needs outer joins and it's just not working for me.

    In case Invoice Distribution is matched to a Purchase Order then
    ap_invoice_distributions_all.PO_DISTRIBUTION_ID and ap_invoice_distributions_all.DIST_CODE_COMBINATION_ID is the link to po_distributions_all table
    Hope this help
    Ashish

  • SQL query needed to identify cancelled invoice where distribution lines

    SQL query needed to identify cancelled invoice where distribution lines Debit is not equal Credit line item in particular
    Is there a way from back end FROM ap_invoice_distributions_all where we can find for the cancelled invoice where distribution lines Debit is not equal Credit line item
    Regards,
    Prakash Ranjan

    Hello Prakash
    Can you please see if this query helps you?
    SELECT i.invoice_id, i.invoice_amount, nvl(sum(d.amount),0)
    FROM ap_invoice_distributions_all d, ap_invoices_all i
    WHERE i.org_id = <you org_id>
    AND i.invoice_id = d.invoice_id
    AND d.line_type_lookup_code not in ('PREPAY')
    AND i.cancelled_date IS NOT NULL
    GROUP BY i.invoice_id, i.invoice_amount
    HAVING (i.invoice_amount <> nvl(sum(d.amount),0))
    ORDER BY i.invoice_id asc
    Octavio

  • Display Distribution Lines, Invoice Number, and the PO Number

    In Toad, I'm trying to make a query that will display the invoice number and all distribution lines as well as if it's tied to a PO or not, and if so, what is the PO number - is this possible? This is what I've made so far and I don't think the outer joins are correct.
    from ap.ap_invoices_all inv
    ,po.po_vendors vend
    ,ap.ap_invoice_distributions_all idstr
    ,gl.gl_code_combinations distr
    ,po.po_distributions_all pdstr
    ,po.po_line_locations_all shipm
    ,po.po_lines_all polin
    ,po.po_headers_all pohdr
    where vend.vendor_id = inv.vendor_id
    and inv.invoice_id = idstr.invoice_id
    and idstr.dist_code_combination_id = distr.code_combination_id
    and idstr.po_distribution_id = pdstr.po_distribution_id(+)
    and pdstr.line_location_id = shipm.line_location_id (+)
    and shipm.po_line_id = polin.po_line_id (+)
    and pohdr.po_header_id (+) = polin.po_header_id

    Hi,
    If your PO is in SRM (and replicated into R/3), and the GR is created directly in R/3, then there is no reference of this R/3 GR in SRM. The only way to get it it to read the backend PO history.
    To do this, you can try to call the BBP_PD_PO_GETDETAIL is SRM, with I_READ_BE_DATA = 'X'.
    You will get your R/3 reference (R/3 material doc number) in export tables E_HEADER_REL and E_ITMLIM_REL, and actual item values in E_ACTVAL.
    Rgds
    Christophe
    PS: please reward points for helpful answers

  • HT5622 My ipad hangs up after showing a message that says it "Cannot Access Find My Friends" and that I need to open the app and review my signin info to continue sharing. I can't go there because it is hung up. I also can't power off.

    My ipad hangs up after showing a message that says it "Cannot Access Find My Friends" and that I need to open the app and review my signin info to continue sharing. I can't go there because it is hung up. I also can't power off.

    Perform a Reset...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • I need to have my macbook pro repaired how can I hide passwords and banking info?

    I need to have my macbook pro repaired how can I hide passwords and banking info?

    Create a new admin account named repair and only give them the password for that account. Alternately you could back up or clone your system, erase the hard drive and then reinstall OS X with one admin account that has no personal information.

  • The email address assoc. with my iTunes account is no longer valid. can't access it. need to change it in  iTunes but can't access account. even my birthdate is incorrect in iTunes...so can't log in. any suggestions on how to log in and edit info???

    the email address assoc. with my iTunes account is no longer valid. can't access it. need to change it in  iTunes but can't access account. even my birthdate is incorrect in iTunes...so can't log in. any suggestions on how to log in and edit info???

    There is nothing that you can do to get rid of the balance on your own. Contact iTunes Store Support and seek their assistance. I believe that they can reset your balance for you.
    https://expresslane.apple.com/Issues.action

  • I am considering buying a new MAC laptop to run LOGIC for composition and band live/recording, but which one is best as I do not want to spend too much money? Does it have a line in and how do you monitor sound? Will I need adaptors and a interface?

    Can anybody help?
    I am considering buying a new MAC laptop to run LOGIC for composition and band live/recording, but which one is best as I do not want to spend too much money?
    Does it have a line in and how do you monitor sound?
    Will I need adaptors and an interface?
    Also, I am guessing as Logic only runs on MAC surely then they would not the best spec to recommend to run it?
    I see all the upgrades as additional memory or a faster process?
    Is a retina screen necessary, and why flash based storage against a 1TB hard drive, and a i5 instead of an i7
    The main reason for this purchase is to play live and use backing tracks and record found sounds and make creative songs.
    I hope you can provide some valuable feedback, as I am a longtime MAC user and see upgrades and changes happen regularly but the most important thing is the songs not the equipment.
    I have £500 already and willing to add another 500 to 700 pounds, then software extra.

    Can anybody help?
    I am considering buying a new MAC laptop to run LOGIC for composition and band live/recording, but which one is best as I do not want to spend too much money?
    Does it have a line in and how do you monitor sound?
    Will I need adaptors and an interface?
    Also, I am guessing as Logic only runs on MAC surely then they would not the best spec to recommend to run it?
    I see all the upgrades as additional memory or a faster process?
    Is a retina screen necessary, and why flash based storage against a 1TB hard drive, and a i5 instead of an i7
    The main reason for this purchase is to play live and use backing tracks and record found sounds and make creative songs.
    I hope you can provide some valuable feedback, as I am a longtime MAC user and see upgrades and changes happen regularly but the most important thing is the songs not the equipment.
    I have £500 already and willing to add another 500 to 700 pounds, then software extra.

  • How do I copy a few lines from a pdf document to a Word document?  I'm not looking to convert the whole document, just need to copy a few lines here and there.

    How do I copy a few lines from a pdf document to a Word document?
    I'm not looking to convert the whole document, just need to copy a few lines here and there.
    ps.  Wow, what a user UNFRIENDLY site this is!

    In most cases you can just select the text and copy/paste. You can do that unless the file is a picture/scan.

  • I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers.

    I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?

    version 10.6.8

  • I bought a used macbook air,  it didn't come with the flash drive to do a factory reset.  Can I download the info needed and save it to my own flash drive and then do a factory reset?  If not what can I do?

    I bought a used macbook air,  it didn't come with the flash drive to do a factory reset.  Can I download the info needed and save it to my own flash drive and then do a factory reset?  If not what can I do?

    If it originally shipped with Mac OS X 10.6.8 or earlier, click here, phone Apple, and order a replacement.
    If it originally shipped with Mac OS X 10.7 or newer, restart it with the Option, Command, and R keys held down.
    (113079)

  • Invoice Distribution Line is Reversed and Manually Changed Invoice Amount

    Dear Members,
    I Created Invoice and Run Create Accounting. Later, I reversed Invoice distribution Line and manually Changed Invoice Header Amount. I Run Create Accounting. Reversed Distribution Line is Transfered to GL but Liability account is not balancing because i manually Changed to Zero.
    Is there any way
    Thanks

    Hi,
    You be not able to do any change in the invoice which has already been accounted and above all paid. Even then if you want to correct the effect in your books you can make a same reversal entry of wrong line and make a fresh entry with right expenditure type.

  • When I burn a disc from a playlist in iTunes, the track names and artist info does not display on the disc when friends view/listen to it. This probably is an easy fix, but I need some advice.

    When I burn a disc from a playlist in iTunes on my MacBook, the track names and artist info does not display on the disc when friends view/listen to it. This probably is an easy fix, but I need some advice.

    No, this standard has been implemented for several decades.
    How iTunes remembers audio CDs - http://support.apple.com/kb/TA27785
    It is just conceivable you burned a CD that exactly matched one already in the Gracenote database.  Gracenote uses track count and duration to decide what CD it is you have in a computer.  If you have one that matches that it will label it.  You could conceivably even have one that matches it that is not the correct one.
    This script will only work on Macs:
    http://dougscripts.com/itunes/scripts/ss.php?sp=cdtexttocdinfo - script to use CD-text file on CD to label CD in iTunes

Maybe you are looking for