AP90 Invoice Attachment URL Location Table

Sort:
You are not authorized to post a reply.
Author
Messages
shashank
Basic Member
Posts: 7
Basic Member

    See the attachment for reference.
    On AP 90, if you drill down for an invoice, you get a pop-up page called "Drill Around".
    There is a list of options on the left section of this page.
    The first option in the list is "Invoice URL Attachment".
    Expanding this option gives you a link to the invoice image.
    When you click on the Invoice Image link, you see the Title and the Url on the right section of the page.

    Which Lawson table holds this title and URL?
    I'm assuming each URL is tied to the invoice.

    Thanks in advance!
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
    shashank
    Basic Member
    Posts: 7
    Basic Member
      Thanks John, this helped!

      Anyone else looking for a solution, here it is...

      Objective -
      My invoices on AP90 have images linked to it from an external document repository (in my case Ascend's ReportSafe)
      I'd like to know which Lawson table stores the URL for a given invoice-image pair.
      Note: We're on iSeries Lawson 9.0.6.

      Solution:

      Table DBAPAPI contains invoice details.
      Column VENDOR is the vendor number.
      Column INVOICE is the invoice number.
      Column L_INDEX is the Key in this table that References the image URL for this invoice.

      Table L_HAPI contains header information for a given invoice (if there is any).
      Column L_INDEX is the Key used to reference the vendor-invoice-image from the table DBAPAPI.

      The below query will give you the image URL for a given vendor-invoice-image.
      Note: The Key is case sensitive.

      select object from l_hapi
      where l_index in (
      select l_index from dbapapi
      where vendor = <vendor number>
      and invoice like '<invoice number>%' )
      You are not authorized to post a reply.