Procure To Pay Base Tables Flow

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

SELECT * FROM XXFIN_COUNTRY

SELECT * FROM XXFIN_STATE;


SELECT * FROM XXFIN_CITY;
UPDATE XXFIN_CITY SET STATE_CODE='AP' WHERE STATE_CODE='TPT';
COMMIT;
/
HOW TO REGISTER TABLES IN APPS?

P_APPL_SHORT_NAME IN VARCHAR2,
P_TAB_NAME IN VARCHAR2,
P_TAB_TYPE IN VARCHAR2,
P_NEXT_EXTENT IN NUMBER DEFAULT 512,
P_PCT_FREE IN NUMBER DEFAULT 10,
P_PCT_USED IN NUMBER DEFAULT 70);

XXFIN_COUTRY :
=============

EXEC AD_DD.REGISTER_TABLE('PO','XXFIN_COUNTRY','T');
COMMIT;
DESC XXFIN_COUNTRY;
BEGIN
EXEC
AD_DD.REGISTER_COLUMN('PO','XXFIN_COUNTRY','COUNTRY_NAME',1,'VARCHAR2',30,'N','
Y');
EXEC
AD_DD.REGISTER_COLUMN('PO','XXFIN_COUNTRY','COUNTRY_CODE',2,'VARCHAR2',10,'N','Y'
);
END;
/
EXEC AD_DD.REGISTER_TABLE('PO','XXFIN_COUNTRY','T');
COMMIT;
DESC XXFIN_COUNTRY;

HOW REGISTER TABLE ALL COLUMNS AT TIME:

BEGIN
AD_DD.REGISTER_COLUMN('PO','XXFIN_COUNTRY','COUNTRY_NAME',1,'VARCHAR2',30,'N','
Y');
AD_DD.REGISTER_COLUMN('PO','XXFIN_COUNTRY','COUNTRY_CODE',2,'VARCHAR2',10,'N','Y'
);
END;
/
COMMIT;

XXFIN_STATE:
============
EXEC AD_DD.REGISTER_TABLE('PO','XXFIN_STATE','T');
COMMIT;
DESC XXFIN_COUNTRY;
BEGIN
AD_DD.REGISTER_COLUMN('PO','XXFIN_STATE','STATE_NAME',1,'VARCHAR2',30,'N','Y');
AD_DD.REGISTER_COLUMN('PO','XXFIN_STATE','STATE_CODE',2,'VARCHAR2',10,'N','Y');
AD_DD.REGISTER_COLUMN('PO','XXFIN_STATE','COUNTRY_CODE',3,'VARCHAR2',10,'N','Y');
END;
/
COMMIT;

XXFIN_CITY:
===========
EXEC AD_DD.REGISTER_TABLE('PO','XXFIN_CITY','T');
COMMIT;
DESC XXFIN_CITY;
BEGIN
AD_DD.REGISTER_COLUMN('PO','XXFIN_CITY','CITY_NAME',1,'VARCHAR2',30,'N','Y');
AD_DD.REGISTER_COLUMN('PO','XXFIN_CITY','STATE_CODE',2,'VARCHAR2',10,'N','Y');
EXEC AD_DD.REGISTER_COLUMN('PO','XXFIN_CITY','STD_CODE',3,'NUMBER',10,'N','Y');
(HOW REGISTER TABLE SINGLE COLUMN REGISTER)
END;
/
COMMIT;
PO_REQUISITION_LINES_V;
PO_REQUISITION_HEADERS_V
INTIALIZING ORGANIZATION IN BACKEND
BEGIN
MO_GLOBAL.SET_POLICY_CONTEXT('S',204);
END;
/

PROCURE TO PAY FLOW QUERIES

REQUISTION BASE TABLES:


======================
SELECT * FROM PO_REQUISITION_HEADERS;
SELECT * FROM PO_REQUISITION_HEADERS_ALL;
SELECT * FROM PO_REQ_DISTRIBUTIONS_ALL;

RFQ TABLE QUERIES:

SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='100' AND TYPE_LOOKUP_CODE='RFQ';


SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID=110346
SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID=173275;
SELECT * FROM PO_DISTRIBUTIONS_ALL WHERE LINE_LOCATION_ID=264421

'QUOTATION' TABLE QUERIES:

SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='200' AND


TYPE_LOOKUP_CODE='QUOTATION';
SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID=110347
SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID=173276;
SELECT * FROM PO_DISTRIBUTIONS_ALL WHERE LINE_LOCATION_ID=264422;

'PO' TABLE QUERIES:

SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='305' AND


TYPE_LOOKUP_CODE='STANDARD' AND VENDOR_ID=34169;
SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID=110348
SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID=173277;
SELECT * FROM PO_DISTRIBUTIONS_ALL WHERE LINE_LOCATION_ID=264423;
305
SELECT * FROM AP_SUPPLIERS WHERE VENDOR_NAME LIKE 'SK%'; --34169

'RCV' TABLE QUERIES:

SELECT * FROM TAB WHERE TNAME LIKE 'RCV%SHI%';(FIND RCV TABLES)


--------------------------------------------------------------- ---------------------------
SELECT * FROM RCV_SHIPMENT_HEADERS WHERE RECEIPT_NUM='4' AND
VENDOR_ID=34169;
SELECT * FROM RCV_SHIPMENT_LINES WHERE SHIPMENT_HEADER_ID=4813907
SELECT * FROM RCV_TRANSACTIONS WHERE REQUEST_ID=5849747--
SHIPMENT_HEADER_ID=4813907;

'AP INVOICE' TABLE QUERIES:

SELECT * FROM AP_INVOICES_ALL WHERE INVOICE_NUM='555' AND VENDOR_ID=3


SELECT * FROM AP_INVOICE_LINES_ALL WHERE INVOICE_ID=23298
SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL WHERE INVOICE_ID=23298

'AP INVOICE PAYMENT' TABLE QUERIES:


SELECT * FROM TAB WHERE TNAME LIKE 'AP%PAY%'; (FIND AP PAYMENT TABLES)
-------------------------------------------------------------------------------------------------------

SELECT * FROM AP_INVOICE_PAYMENTS_ALL WHERE INVOICE_ID=23298;


SELECT * FROM AP_PAYMENT_SCHEDULES_ALL WHERE INVOICE_ID=23298;
SELECT * FROM AP_PAYMENT_HISTORY_ALL;

'GL CREATING ACCOUNTING' TABLE QUERIES:

SELECT * FROM XLA_EVENTS WHERE EVENT_ID=123469;


SELECT * FROM GL_INTERFACE;
SELECT * FROM GL_JE_HEADERS;
SELECT * FROM GL_JE_LINES;
SELECT * FROM GL_JE_BATCHES;

'GL POSTING' TABLE QUERIES:

SELECT * FROM GL_BALANCES;

PROCURE TO PAY (P2P)


====================

REQUISTION TABLES

PO_REQUISITION_HEADERS

PO_REQUISITION_HEADERS_ALL

PO_REQUISITION_LINES_ALL

PO_REQ_DISTRIBUTIONS_ALL

RFQ TABLES

PO_HEADERS_ALL

PO_LINES_ALL

PO_LINE_LOCATIONS_ALL

QUOTATION

PO_HEADERS_ALL

PO_LINES_ALL

PO_LINE_LOCATIONS_ALL
PO TABLES

PO_HEADERS_ALL

PO_LINES_ALL

PO_LINE_LOCATIONS_ALL

PO_DISTRIBUTIONS_ALL

RECEIPT TABLES

RCV_SHIPMENT_HEADERS

RCV_SHIPMENT_LINES

RCV_TRANSACTIONS

AP INVOICE TABLES

AP_INVOICES_ALL

AP_INVOICE_LINES_ALL

AP_INVOICE_DISTRIBUTIONS_ALL

AP INVOICE PAYMENTS TABLES

AP_INVOICE_PAYMENTS_ALL

AP_PAYMENT_SCHEDULES_ALL

AP_PAYMENT_HISTORY_ALL

CREATING GL ACCOUNTS TABLES

XLA_EVENTS (XLA -- SUB LEDGER ACCOUNT)

GL_INTERFACE

GL_JE_HEADERS

GL_JE_LINES

GL_JE_BATCHES

POSTING GL DATA TABLES

GL_BALANCES

You might also like