API For AP Invoice

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Application programming interface to Crate Account Payable invoice

(API TO CREATE AP INVOICE)

There is no direct API to create the AP INVOICE so the following methods(Approaches)are used in
creating AP INVOICE:

A.Standard AP_Invoice creation method. (Pay On Receipt Auto Invoice creation)

B.Using Interface program. (a payable open interface import Concurrent program)

A.Standard AP_Invoice creation method:

The following steps are done to create the AP_INVOICE:

Step 1: Create a Requisition.

Step 2: Create the Purchase Order.

Step 3: Create the Receipt.

Step 4: Run the Concurrent Program(Pay On Receipt Auto Invoice) to create the AP Invoice.

B.Using Interface program:


The following steps are done to create the AP_INVOICE:

Step 1: Create the Staging Table.

Step 2: Create a Flat file.

Step 3: Create a Control file(SQL Loader) to insert data into the Staging table.

Step 4: Validate and Update the Staging table data into AP_ INVOICES_INTERFACE Table.

Step 5: Run the Concurrent Program(Payable open interface import) to create the AP Invoice.

B.Using Interface program:


Step 1: Create the Staging Tables( for AP_ INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE ):

Query to create the Staging Table:


Example:

CREATE TABLE xx_ap_invoice (

invoice_id NUMBER,

invoice_num VARCHAR2(100),

po_number VARCHAR2(100),

vendor_id number,

vendor_num NUMBER,

vendor_name VARCHAR2(100),

vendor_site_id NUMBER,

vendor_site_code VARCHAR2(100),

invoice_amount NUMBER,

organization_id NUMBER,

source VARCHAR2(100),

msg VARCHAR2(100), ----- for validation purpose

flag VARCHAR2(100), ----- for validation purpose

dflag VARCHAR2(100) ----- for validation purpose

);

CREATE TABLE xx_ap_invoice_lines

invoice_id NUMBER,

invoice_line_id NUMBER,

line_number NUMBER,

line_type_lookup_code VARCHAR2(300),

amount NUMBER,

msg VARCHAR2(300), ----- for validation purpose

flag VARCHAR2(300), ----- for validation purpose

dflag VARCHAR2(300) ----- for validation purpose

);
Step 2: Create a Flat file:

The flat file is created and attached as bellow

AP.csv

Step 3: Create a Control file to insert data into the Staging table.

To insert the data from flat file to staging table the Control file(SQL Loader) is used and it attached as
bellow

AP.ctl

Step 4: Validate and Update the Staging table data into AP_ INVOICES_INTERFACE Table.

For validation Purpose the bellow attached query is used:

Validation.txt
Step 5: Run the Concurrent Program(Payable open interface import) to create the AP Invoice.

Navigate to-->Payables,Vision Operations(USA)

Click the View &Request and submit the new Request


Run Payables open interface Import concurrent Program
Enter the Source and Batch number(available)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy