Вы находитесь на странице: 1из 40

Procure-to-Pay (P2P) Cycle

Procure to Pay Life Cycle.


Create requisition

Enter the line details.

Click on the Distributions, Click on Charge account

Page 1 of 40

Procure-to-Pay (P2P) Cycle

Save

Page 2 of 40

Procure-to-Pay (P2P) Cycle

As per the above requisition my requisition number is : 14355


--segment1 ,authorization_status = 'INCOMPLETE'
select * from po_requisition_headers_all where SEGMENT1 LIKE '14355' ; --REQUISITION_HEADER_ID =182070
--RFQ_REQUIRED_FLAG ,
select * from po_requisition_lines_all where REQUISITION_HEADER_ID = 182070 ; -REQUISITION_LINE_ID = 209318
RFQ_LINE_QUANTITY ,
select * from po_req_distributions_all where REQUISITION_LINE_ID = 209318 ; -- DISTRIBUTION_ID = 207917
Click approve for approval

Page 3 of 40

Procure-to-Pay (P2P) Cycle


CLICK ON OK BUTTON
--segment1 ,authorization_status = 'APPROVED'
select * from po_requisition_headers_all where SEGMENT1 LIKE '14355' ;
TO VARIFY THE STATUS OF A REQUISITION >>
purchasing vision opertions >> requisition summary >>

Query with a requisition number in the above case it is 14355

Page 4 of 40

Procure-to-Pay (P2P) Cycle

Here you can see approval status is 'APPROVED'.

Page 5 of 40

Procure-to-Pay (P2P) Cycle


Navigation to crate a RFQ's
purchasing vision operations >> RFQ's and Quotations >> RFQ's

Page 6 of 40

Procure-to-Pay (P2P) Cycle

Here we have 3 types of RFQ's 1) BID 2) catalog RFQ 3) Standard RFQ

Page 7 of 40

Procure-to-Pay (P2P) Cycle

Enter item details , price

Page 8 of 40

Procure-to-Pay (P2P) Cycle

press >> shipments -- enter quantity ..etc

Page 9 of 40

Procure-to-Pay (P2P) Cycle


save or ctrl + S , it will generate RFQ number in our case it is = 314
Base tables effected at this stage
--type_lookup_code = RFQ , segment1 = 314 , QUOTE_TYPE_LOOKUP_CODE = BID , QUOTATION_CLASS_CODE = BID
-- APPROVAL_REQUIRED_FLAG = Y

--select * from po_headers_all where SEGMENT1 LIKE '314' AND ORG_ID = 204 ; PO_HEADER_ID = 112006
select * from po_lines_all where PO_HEADER_ID = 112006 ; -- PO_LINE_ID = 174815
select * from po_line_locations_all where PO_LINE_ID = 174815 ; --LINE_LOCATION_ID = 266021
-- SHIPMENT_TYPE
>>press suppliers button then enter the suppliers from whom you have requested for RFQ's

>> In this example i have request RFQ from 2 suppliers

Page 10 of 40

Procure-to-Pay (P2P) Cycle

select * from PO_RFQ_VENDORS where PO_HEADER_ID = 112006 ;


Relation between po_headers_all .po_header_id and po_rfq_vendors.po_header_id 1 to many

NOW ENTER THE QUOTATIONS RECEIVED FROM SUPPLIERS

Page 11 of 40

Procure-to-Pay (P2P) Cycle

ENTER SUPPLIER AND ITEM DETAILS AND RFQ NUMBER

>>PRESS Shipment button and enter Qty then save

Page 12 of 40

Procure-to-Pay (P2P) Cycle

save and change the status of a quotation from in process to active .

Page 13 of 40

Procure-to-Pay (P2P) Cycle

It will give quotations number and in the same manner enter another quotation received from another supplier
In the above case above quotations number is 512 / 513
--type_lookup_code = 'QUOTATION' , STATUS_LOOKUP_CODE = I/A , FROM_TYPE_LOOKUP_CODE = 'RFQ' ,
select * from po_headers_all where SEGMENT1 LIKE 512 and po_header_id = 112026 ;
select * from po_lines_all where po_header_id = 112026; -- PO_LINE_ID = 174835
select * from po_line_locations_all where PO_LINE_ID = 174835 ; -- LINE_LOCATION_ID = 266041 ;
NOW its time choose quotation form pool of quotations received from various vendors/ suppliers

navigation>> RFQ's and quotations >> Quotations

Page 14 of 40

Procure-to-Pay (P2P) Cycle

enter RFQ number in our case it is 314 >> press find .

Page 15 of 40

Procure-to-Pay (P2P) Cycle


It will show list of quotations received place cursor on one of the quotation and press>>Approve Entry Quotation

Now we have to enter reasons for approval

>> ok >>

Page 16 of 40

Procure-to-Pay (P2P) Cycle

>> ok >>
list of all approved quotations can be seen in following table
select * from PO_QUOTATION_APPROVALS_ALL where LINE_LOCATION_ID = 266041
relation is po_line_locations_all table line_location_id

In order to create Purchase Order form Quatation once again go to


Navigation>> RFQ's and quotations >> Quotations >> Query with quotations number (F11 enter quotation number and Ctrl+F11)
>>tools>> copy Document

Page 17 of 40

Procure-to-Pay (P2P) Cycle

>>select purchase order type >> ok >>

It will generate a Purchase Order you can see po number :6135

Page 18 of 40

Procure-to-Pay (P2P) Cycle

>> Shipments>>

>>Distributions >>

Page 19 of 40

Procure-to-Pay (P2P) Cycle

But here po status in incomplete It should be send for approval

If you made any changes then save it and press >>Approve>> button

Page 20 of 40

Procure-to-Pay (P2P) Cycle

>> ok >>

Now its status is changed to approved .

--from_type_lookup_code ='STANDARD' , AUTHORIZATION_STATUS = 'APPROVED' ,DOCUMENT_CREATION_METHOD =


'COPY_DOCUMENT'
select * from po_headers_all where SEGMENT1 like 6135 and ord_id = 204 ;-- , po_header_id = 112028
select * from po_lines_all where po_header_id = 112028 ; --po_line_id = 174837
-- inspection_required_flag , receipt_required_flag ship_to_organization_id , closed_code ='open'
--amount_received , amount_billed , amount_cancelled , amount_rejected , amount_accepted
--QUANTITY_RECEIVED , QUANTITY_ACCEPTED , QUANTITY_REJECTED , QUANTITY_BILLED
select * from po_line_locations_all where -po_line_id = 174837 ; -- line_location_id = 266043
--QUANTITY_DELIVERED , QUANTITY_BILLED , QUANTITY_CANCELLED ,

Page 21 of 40

Procure-to-Pay (P2P) Cycle


select * from po_distributions_all where line_location_id = 266043 ; -- PO_DISTRIBUTION_ID = 272490

Now its time to receive the Purchase ordered goods . so navigation for that is
navigation >> Receiving >> Receipts

>> select inventory organization >> (our po ship to location was m1 ) so select m1 .

>> ok >> enter purchase order number and >> find >>

Page 22 of 40

Procure-to-Pay (P2P) Cycle

Page 23 of 40

Procure-to-Pay (P2P) Cycle

Tables effected are as follow .


----------------------------------------------------------------------------------------------------------this query to see on hand availability of a stock
SELECT * FROM MTL_ONHAND_QUANTITIES_DETAIL where inventory_item_id = 280955 and organization_id = 207 ;
select sum(primary_transaction_quantity) from MTL_ONHAND_QUANTITIES_DETAIL
where inventory_item_id = 280955 and organization_id = 207 ;
--------------------------------------------------------------------------------------------------------------- TABLES EFFECTED WHEN PO RECEIPTS IS GENERATED FOR EACH RECEIPTS THERE WILL 2 ROWS INSERTED IN

Page 24 of 40

Procure-to-Pay (P2P) Cycle


RCV_TRANSACTION
---SOURCE_DOCUMENT_CODE , DESTINATION_TYPE_CODE ,INSPECTION_STATUS_CODE
select * from rcv_transactions where PO_HEADER_ID =112028 ; ---RECEIPT_NUM = 23721 , SHIPMENT_LINE_STATUS_CODE
select * from rcv_shipment_headers where SHIPMENT_HEADER_ID = 4849907 ; ; -select * from rcv_shipment_lines where SHIPMENT_LINE_ID = 4841468; -select * from MTL_MATERIAL_TRANSACTIONS where rcv_transaction_id = 4933363 ;
rcv_transactions.rcv_transaction_id = MTL_MATERIAL_TRANSACTIONS.rcv_transaction_id
------------------------------------------------------------------------------------------------------------- few fields of the these
tables po_line_locations_all ,po_distributions_al1 will get updated after receipts
--QUANTITY_RECEIVED , QUANTITY_ACCEPTED , QUANTITY_REJECTED , QUANTITY_BILLED
select * from po_line_locations_all where line_location_id = 266043 ; --- QUANTITY_RECEIVED IS UPDATED WITH RECEIVED QUANTITY
--QUANTITY_DELIVERED , QUANTITY_BILLED , QUANTITY_CANCELLED ,
select * from po_distributions_all where PO_DISTRIBUTION_ID = 272490 ; -- PO_DISTRIBUTION_ID = 272490
-------------------------------------------------------------------------------------------------------------

Payables > Invoices > Entry > Invoices

Page 25 of 40

Procure-to-Pay (P2P) Cycle

Enter the supplier, amount , po number and other details.

Match the invoice with Receipt or with PO


Page 26 of 40

Procure-to-Pay (P2P) Cycle


press>> Match button >> enter po number and find

Check the lines and press >>Match button >>

Validate Invoice: Open Invoice > Actions ...

Page 27 of 40

Procure-to-Pay (P2P) Cycle

>> press Actions button and check validate and ok .

>> ok >> now you can see status as a validated .


Now create accounting
Actions >> check Create Accounting >> Draft >> ok

Page 28 of 40

Procure-to-Pay (P2P) Cycle

Actions >> check Create Accounting >>final >> ok

Page 29 of 40

Procure-to-Pay (P2P) Cycle

query in a table AP_INVOICE_DISTRIBUTIONS_ALL with po_distributions_all . po_distribution_id


get invoice id
--po_distribution_id ,org_id ,invoice_distribution_id 4
select * from AP_INVOICE_DISTRIBUTIONS_ALL where po_distribution_id = 272490 ;-- po_distribution_id = 272490
--amount_paid ,quick_po_header_id
select * from AP_INVOICES_ALL where invoice_id = 212320 ; -select * from AP_INVOICE_LINES_ALL where invoice_id = 212320 ;

select * from AP_PAYMENT_SCHEDULES_ALL where invoice_id = 212320 ;


-------------------------------------------------------------------------------------------------------------fields updated in po tables

Page 30 of 40

Procure-to-Pay (P2P) Cycle


--quantity_billed , amount_billed ,closed_code ='closed for invocie'
select * from po_line_locations_all where line_location_id = 266043 ; -- line_location_id = 266043
--quantity_billed , amount_billed
select * from po_distributions_all where PO_DISTRIBUTION_ID = 272490 ;

---------------------------------------------------------------------------------------------------------select * from XLA_EVENTS ;


select * from XLA_AE_HEADERS ;
select * from XLA_AE_LINES ;

Initiate Payment this can be done in 2 way either you can do it from invoice form
Actions>>pay in full >> ok it will take you to payments form
or you can directly navigate to Payable Work bench >> payments
Here we are doing first way

Enter bank details etc...>> save >>

Page 31 of 40

Procure-to-Pay (P2P) Cycle

Page 32 of 40

Procure-to-Pay (P2P) Cycle


Actions >> Check Create Accounting >> Draft >> ok .

>> ok >>

Page 33 of 40

Procure-to-Pay (P2P) Cycle


Actions >> Check Create Accounting >> Final >> ok .

>> ok >>

>> ok >> now it will fire back ground concurrent programs

Page 34 of 40

Procure-to-Pay (P2P) Cycle

select * from AP_INVOICE_PAYMENTS_ALL where invoice_id = 212320 ;

Page 35 of 40

Procure-to-Pay (P2P) Cycle


select * from AP_PAYMENT_DISTRIBUTIONS_ALL where invoice_payment_id = 157542;
select * from AP_INVOICE_PAYMENTS_ALL where invoice_id = 212320 ;
select * from AP_CHECKS_ALL where check_id = 77850 ;
select * from AP_CHECK_STOCKS_ALL ;
select * from AP_INV_SELECTION_CRITERIA_ALL where CHECKRUN_NAME like '77850' ;--check_stock_id = 1009 ;
select * from AP_INV_SELECTION_CRITERIA_ALL where CHECK_date like '77850' ;
select * from XLA_EVENTS ;
select * from XLA_AE_HEADERS ;
select * from XLA_AE_LINES ;

Now run Transfer journal entries to GL concurrent program

Page 36 of 40

Procure-to-Pay (P2P) Cycle

Now we have done with every thing last step left to post the entries

Page 37 of 40

Procure-to-Pay (P2P) Cycle


>> navigation >> general ledger >> journals >> post >> query with banch same or date >>
then select and post >> done

Page 38 of 40

Procure-to-Pay (P2P) Cycle


select * from AP_INVOICE_PAYMENTS_ALL where invoice_id = 212320 ;
-- GET INVOICE_PAYMENT_ID=157542
--INVOICE_DISTRIBUTION_ID = 3475567 , INVOICE_PAYMENT_ID =157542
SELECT * FROM ap_payment_hist_dists WHERE INVOICE_PAYMENT_ID =157542;
--PAYMENT_HISTORY_ID = 1058059
SELECT * FROM XLA_DISTRIBUTION_LINKS WHERE SOURCE_DISTRIBUTION_ID_NUM_1 = 1058059;
--XLA_DISTRIBUTION_LINKS.SOURCE_DISTRIBUTION_ID_NUM_1 = ap_payment_hist_dists.PAYMENT_HISTORY_ID
-- AE_HEADER_ID = 1829480 , EVENT_ID = 692320
select * from XLA_EVENTS where EVENT_ID = 692320;
select * from XLA_AE_HEADERS WHERE AE_HEADER_ID = 1829480 ;
select * from XLA_AE_LINES where AE_HEADER_ID = 1829480 ;
select * from GL_JE_BATCHES where name like '%shiv%'

select * from GL_JE_HEADERS where je_batch_id = 2949184 ;


select * from gl_je_lines where je_header_id in (4703155 ,4703156);

Page 39 of 40

Procure-to-Pay (P2P) Cycle

Page 40 of 40

Вам также может понравиться