0% found this document useful (0 votes)
25 views

p2p Cycle With Tables

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

p2p Cycle With Tables

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

BACKEND TABLE DETAILS:

1.PURCHASE REQUISITION:
A) PO_REQUISITION_HEADERS_ALL (Requisition Header Information):
Select *
From PO_PRQUISITION_HEADERS_ALL
Where segment1 = ‘1234’ –segment1 will be requisition number.

B)  PO_REQUISITION_LINES_ALL (Requisition Lines Information):


select *
from PO_REQUISITION_LINES_ALL
where requisition_header_id =
(Select requisition_header_id
from PO_REQUISITION_HEADERS_ALLS
where segment1 = '1234')

2.PURCHASE ORDER
A. PO_HEADERS_ALL (Po Header Information):
Select *
From PO_HEADERS_ALL
where segment1='5700' -- segment1 is Po Number

A.  PO_LINES_ALL (PO Line Level information):


Select *
From PO_LINES_ALL
where Po header id =
(Select po header id
From PO_HEADERS_ALL
where segment1='5700')

B.  PO_LINE_LOCATIONS_ALL (PO shipment schedule information):


Select *
From PO_LINE_LOCATIONS_ALL
Where Po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700')
C.  PO_DISTRIBUTIONS_ALL (Distribution Information):
Select *
From PO_DISTRIBUTIONS_ALL
Where Po_header_id =
(Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700')

3.RECEIVING:

A) RCV_SHIPMENT_HEADERS (Receipts Header Information)


Select * from RCV_SHIPMENT_HEADERS
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700');

B) RCV_SHIPMENT_LINES (Receipts Lines Information)


Select * from RCV_SHIPMENT_LINES
where shipment_header_id =
(Select shipment_header_id
from RCV_SHIPMENT_HEADERS
where po_header_id =
(Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700')
);

C) RCV_TRANSACTIONS (Receipt Transaction Information)


Select * from RCV_TRANSACTIONS
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700');
4.ACCOUNT PAYABLE:

a) AP_INVOICES_ALL (Invoice Header information)


Select * From AP_INVOICES_ALL
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700');

B) AP_INVOICE_LINES_ALL (Invoice Lines Information)


Select * from AP_INVOICE_LINES_ALL
where invoice_id =
(Select invoice_id
From AP_INVOICES_ALL
where po_header_id =
(Select Po_header_id
From PO_HEADERS_ALL
where segment1='5700'));

C) AP_INVOICE_DISTRIBUTIONS_ALL (Invoice Distributions information)


 Select * from AP_INVOICE_DISTRIBUTIONS_ALL
where invoice_id =
(Select invoice_id
 From AP_INVOICES_ALL
where po_header_id =
(Select Po header id
From PO_HEADERS_ALL
where segment1='5700'));

5.PAYMENTS:

a) AP_PAYMENT_SCHEDULES_ALL (Payment Details)


 Select *
from AP_PAYMENT_SCHEDULES_ALL
WHERE invoice id =
(select invoice id
from AP_INVOICES_ALL
WHERE po header id =
( Select Po header id
From PO_HEADERS_ALL
where segment1='5700'));

b) AP_CHECKS_ALL (Checks Details)


Select * from AP_CHECKS_ALL
where Check num='Chq-1234';

You might also like