Professional Documents
Culture Documents
PO Queries
PAGEVIEW
3
set pagesize 5000
set linesize 5000
spool C:\Script\OUTPUT.TXT LABELS
set colsep "|" 11i
select * from dual ; ADF
set colsep " "
spool off ADI
set pagesize 50 AIM
set linesize 200 ALERTS
AME
/* Formatted on 2011/02/18 10:05 (Formatter Plus v4.8.8) */ AOL
SELECT d.table_name "Table name", d.constraint_name "Constraint name", AP
DECODE (d.constraint_type, API
'P', 'Primary Key',
APPLICATIO
'R', 'Foreign Key',
'C', 'Check/Not Null', AR
'U', 'Unique', ASSETS
'V', 'View Cons' BANKS
) "Type",
BOM
d.search_condition "Check Condition", p.table_name "Ref Table name",
p.constraint_name "Ref by", m.column_name "Ref col", BPEL
m.POSITION "Position", p.owner "Ref owner" C/C++
FROM dba_constraints d LEFT JOIN dba_constraints p CASH
ON (d.r_owner = p.owner AND d.r_constraint_name = p.constraint_name)
CONVERSIO
LEFT JOIN dba_cons_columns m ON (d.constraint_name =
m.constraint_name CRM
) DATA LOAD
WHERE d.table_name IN ( DBA
SELECT table_name
DISCOVERE
FROM dba_tables
WHERE owner = UPPER ('mkm') DOCUMENT
UNION ALL eText
SELECT view_name FA
FROM dba_views
FAQS
WHERE owner = UPPER ('mkm'))
ORDER BY 1, 2 FLEX FIELD
=============================================================================== FNDLOAD
FORM PERS
SELECT ROWNUM "SL NO",
FORMS
prha.segment1 "PR NO",
prha.creation_date "PR CREATION DATE", FORMS PER
(prla.quantity*prla.unit_price) "PR VALUE", FUNCTIONA
msib.inventory_item_id "MATERIAL CODE", FUSION
msib.description "MATERIAL DESCRIPTION",
GL
prla.quantity "QTY",
prla.unit_meas_lookup_code "UOM", HRMS
prha.authorization_status "PR APPROVAL STATUS", iEXPENSE
pha.segment1 "PO NO", INTERFACE
pha.creation_date "PO DATE",
INV
(pla.quantity*pla.unit_price) "PO VALUE"
FROM po_requisition_headers_all prha, iSTORE
po_requisition_lines_all prla, ITEMS
mtl_system_items_b msib, JAVA
po_headers_all pha,
LDT
po_req_distributions_all prda,
po_distributions_all pda, MOAC
oracleapps88.blogspot.com/search/label/PO 1/7
19 12 2012 Oracle Applications: PO
po_lines_all pla, MSCA
hr_operating_units hou
MULTI ORG
WHERE prha.requisition_header_id=prla.requisition_header_id
O2C
AND prha.org_id=msib.organization_id
AND msib.inventory_item_id=prla.item_id OAF
AND prla.requisition_line_id=prda.requisition_line_id OAF CUST
AND prda.distribution_id=pda.req_distribution_id
OAF PERS
AND pda.po_line_id=pla.po_line_id
OBIEE
AND pla.po_header_id=pha.po_header_id
AND hou.name=:Operating_Unit OM
AND TRUNC(prha.creation_date) BETWEEN NVL(:From_Creation_Date,to_date OPM
prha.creation_date,'DD-MON-RR'))
ORG
AND NVL(:To_Creation_Date,to_date(prha.creation_date,'DD-MON-
OTL
RR'))
AND msib.inventory_item_id BETWEEN NVL(:From_Material_Code,msib.inventory_item_id) P2P
AND NVL(:To_Material_Code,msib.inventory_item_id) PA
PAYMENTS
--> List of PRs Converted to PO
PAYROLL
select ROWNUM "SL NO", PL SQL
prha.segment1 "PR NO", PN
prha.creation_date "PR CREATION DATE",
PO
prha.approved_date "PR APPROVAL DATE",
msib.inventory_item_id "MATERIAL CODE", PROFILE OP
msib.description "MATERIAL DESCRIPTION", QOH
prla.quantity "QTY", R12
prla.unit_meas_lookup_code "UOM",
RAJU
pha.segment1 "PO NO",
pha.creation_date "PO_CREATION_DATE", REPORTS
pha.approved_date "PO APPROVAL DATE", RFQ
aps.vendor_name "SUPPLIER_NAME", S/W
papf.full_name "BUYER NAME",
SCM
(prla.quantity*prla.unit_price) "PR VALUE",
(pla.quantity*pla.unit_price) "PO VALUE" SCRIPTS
FROM po_requisition_headers_all prha, SETUPS
po_requisition_lines_all prla, SLA
po_req_distributions_all prda,
SQL
po_distributions_all pda,
mtl_system_items_b msib, SQL SERVE
po_headers_all pha, SQL*LOADE
ap_suppliers aps, SR
per_all_people_f papf,
SUPPLIERS
po_lines_all pla,
hr_operating_units hou TABLES
WHERE prha.requisition_header_id=prla.requisition_header_id TCA
AND prla.requisition_line_id=prda.requisition_line_id UNIX
AND prda.distribution_id=pda.req_distribution_id
UPGRADE
AND pda.po_header_id=pha.po_header_id
AND prla.item_id= msib.inventory_item_id VALUE SET
AND msib.organization_id=prha.org_id VIEWS
AND pha.vendor_id=aps.vendor_id WIP
AND pha.agent_id=papf.person_id
WORK FLOW
AND pha.po_header_id=pla.po_header_id
AND hou.name=:Operating_Unit XLA
AND TRUNC(prha.creation_date) BETWEEN NVL(:From_Creation_Date,to_date XMLP
(prha.creation_date,'DD-MON-RR')) AND NVL(:To_Creation_Date,to_date XYZ
(prha.creation_date,'DD-MON-RR'))
AND msib.inventory_item_id BETWEEN NVL (:From_Material_Code,msib.inventory_item_id)
AND NVL (:To_Material_code, msib.inventory_item_id) ORACLE LI
AND aps.vendor_name=:Vendor Boardreader
AND papf.full_name=:Buyer
eTRM
oracleapps88.blogspot.com/search/label/PO 2/7
19 12 2012 Oracle Applications: PO
po_headers_all pha, Apps2Fusion
po_line_locations_all plla,
BI Publisher
per_all_people_f papf,
Club Oracle
hr_operating_units hou
WHERE prha.requisition_header_id=prla.requisition_header_id ERP Schools
AND prla.requisition_line_id=prda.requisition_line_id Exforsys Ora
AND prda.distribution_id=pda.req_distribution_id
Its a Feature
AND pda.po_header_id=pha.po_header_id
Logicwala
AND prla.item_id=msib.inventory_item_id
AND msib.organization_id=prha.org_id Ooracle500 B
AND pha.po_header_id=plla.po_header_id Oracle Applic
AND pha.agent_id=papf.person_id
Oracle Apps
AND hou.name=:Operating_Unit
Oracle Apps
AND TRUNC(prha.creation_date) BETWEEN NVL(:From_Creation_Date,to_date
(prha.creation_date,'DD-MON-RR')) AND NVL(:To_Creation_Date,to_date Oracle Base
(prha.creation_date,'DD-MON-RR')) Oracle Docs
AND msib.inventory_item_id BETWEEN NVL (:From_Material_Code,msib.inventory_item_id)
Oracle ERP
AND NVL (:To_Material_code, msib.inventory_item_id)
Oracle UG
AND papf.full_name=:Requestor
Oracle Video
Oracle WVU
--> PR''s Converted to RFQ Prasanth App
oracleapps88.blogspot.com/search/label/PO 3/7
19 12 2012 Oracle Applications: PO
Job KFF,
Grade KFF,
People Group KFF,
Position KFF,
Cost Allocation KFF,
Comptence KFF
5. The differece between both secured views and non secured views is :
1.Secured views display information only for the current period
2.Unsecured views is used to get the information from the entire rows
6. APIs in HRMS
API are used in HR to insert the data into the Base tables. As its very secured system, the user
does nothave the facility to copy the data directly into the Base tables.When we write the
inbound interfaces / use WebAdI, the systems will use the APIs to store the data into system.The
API are published by oracle with number of parameters.The different types of parameters are IN /
INOUT / OUT.Of these parameters few are mandatory, with out which the process wont
complete.Generally when we use API we give data for : Object Version Number, Effective Date,
P_Validate
oracleapps88.blogspot.com/search/label/PO 4/7
19 12 2012 Oracle Applications: PO
pla.po_header_id,
msib.organization_id,
plla.tax_name "SEA WORTHY PACKING",
pha.fob_lookup_code "DELIVERY TERMS",
pha.freight_terms_lookup_code "MODE OF TRANSPORT",
trm.name "PAYMENT TERMS",
papf.full_name,
jcvs.CST_REG_NO "CST NO.",
jcvs.VAT_REG_NO "VAT/ TIN NO.",
jcvs.EC_CODE "ECC NO.",
(fdt.title||fdt.description ) "ATTACHMENT",
hou.NAME "OPERATING UNIT"
FROM po_headers_all pha,
po_releases_all pra,
ap_suppliers pva,
ap_supplier_sites_all pvsa,
ap_supplier_contacts pvc,
per_all_people_f papf,
po_line_locations_all plla,
po_distributions_all pda,
po_req_distributions_all prda,
po_requisition_lines_all prla,
po_requisition_headers_all prha,
hr_locations_all hla,
po_lines_all pla,
mtl_system_items_b msib,
JAI_CMN_VENDOR_SITES JCVS,
hr_operating_units hou,
ap_terms_tl trm,
fnd_documents_tl fdt,
fnd_attached_documents fad
WHERE pha.po_header_id= pra.po_header_id
AND pva.vendor_id= pvsa.vendor_id
AND pvc.vendor_site_id= pvsa.vendor_site_id
AND pha.org_id=pvsa.org_id(+)
AND pha.agent_id=papf.person_id
AND pha.po_header_id=plla.po_header_id
AND plla.ship_to_location_id=hla.location_id
AND plla.po_line_id=pla.po_line_id
AND pla.item_id=msib.inventory_item_id(+)
AND msib.organization_id=hla.inventory_organization_id
AND jcvs.vendor_site_id(+)=pvsa.vendor_site_id
AND hou.organization_id(+)=pha.org_id
AND pda.line_location_id(+)=plla.line_location_id
AND pra.po_release_id(+)=pda.po_release_id
AND prda.distribution_id=pda.req_distribution_id
AND prla.requisition_line_id=prda.requisition_line_id
AND prha.requisition_header_id=prla.requisition_header_id
AND trm.term_id=pha.terms_id ►
AND fad.pk1_value(+) = TO_CHAR(pha.po_header_id)
AND fdt.document_id (+)=fad.document_id
AND pva.segment1 BETWEEN NVL(:FROM_VENDOR_CODE,pva.segment1) GENERAL L
AND NVL(:TO_VENDOR_CODE,pva.segment1) Online TELU
AND pha.currency_code<>'INR'
oracleapps88.blogspot.com/search/label/PO 5/7
19 12 2012 Oracle Applications: PO
rcv_shipment_headers rsh,
rcv_shipment_lines rsl,
ap_invoices_all aia,
ap_invoice_lines_all aila,
ap_invoice_distributions_all aida,
ap_invoice_payments_all aipa,
ap_payment_schedules_all apsa,
ap_checks_all aca,
ap_terms apt,
mtl_system_items_b msib,
org_organization_definitions ood
WHERE pha.po_header_id=pla.po_header_id
AND pla.po_line_id=plla.po_line_id
AND plla.line_location_id=pda.line_location_id
AND pv.vendor_id=pha.vendor_id
AND rsh.shipment_header_id=rsl.shipment_header_id
AND pda.po_distribution_id=rsl.po_distribution_id
AND rsl.shipment_line_id=rt.shipment_line_id
AND aia.invoice_id=aila.invoice_id
AND aia.invoice_id=aida.invoice_id
AND aipa.invoice_id(+)=aia.invoice_id
AND aia.invoice_id=apsa.invoice_id
AND aipa.check_id=aca.check_id(+)
AND apt.term_id=aia.terms_id
AND pla.item_id=msib.inventory_item_id(+)
AND ood.organization_id(+)=msib.organization_id
AND rt.transaction_id=aida.rcv_transaction_id
AND TRUNC(rt.transaction_date) BETWEEN NVL(:FROM_RECEIPT_DATE,to_date
(rt.transaction_date,'DD-MON-RR')) AND NVL(:TO_RECEIPT_DATE,to_date
(rt.transaction_date,'DD-MON-RR'))
AND pv.vendor_name=NVL(:VENDOR_NAME,pv.vendor_name)
AND aca.payment_method_code='CHECK'
GROUP BY pha.segment1,
pha.creation_date,
pv.vendor_name,
rsh.receipt_num,
rt.transaction_date,
aia.amount_paid,
apt.name,
apsa.due_date,
aca.payment_method_code,
aca.check_number,
aca.check_date
oracleapps88.blogspot.com/search/label/PO 6/7
19 12 2012 Oracle Applications: PO
pla.unit_meas_lookup_code,
plla.quantity,
plla.quantity_received,
plla.quantity_accepted,
plla.quantity_rejected,
plla.quantity,
plla.quantity_received
Email : oracleapps88@yahoo.com. Picture Window template. Template images by konradlew. Powered by Blogger.
oracleapps88.blogspot.com/search/label/PO 7/7