You are on page 1of 7

19 12 2012 Oracle Applications: PO

Paylaş 0 Diğer Sonraki Blog»

Home TOOLS PL SQL SCRIPTS OAF AP PO AR OM PA INV HRMS GL ALL

Showing posts with label PO. Show all posts

THURSDAY, OCTOBER 18, 2012

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

--> List of Rejected PR''s Metalink


Oracle
select ROWNUM "SL NO", Oracle 11g D
prha.segment1 "PR NO",
Oracle 11i Us
prha.creation_date "PR CREATION DATE",
prha.approved_date "PR APPROVAL DATE", Oracle APPL
msib.inventory_item_id "MATERIAL CODE", Oracle Blogs
msib.description "MATERIAL DESCRIPTION", Oracle Forum
prla.quantity "QTY",
Oracle FUSIO
prla.unit_meas_lookup_code "UOM" ,
prla.unit_price "UNIT_VALUE", Oracle R12 U
(prla.quantity*prla.unit_price) "TOTAL VALUE", Oracle Softw
plla.need_by_date, Search Oracl
papf.full_name "REQUESTOR",
pha.vendor_site_id "REQUESTOR AT SITE"
FROM po_requisition_headers_all prha, ORACLE BL
po_requisition_lines_all prla, 11i Instance
po_req_distributions_all prda,
about oracle
po_distributions_all pda,
mtl_system_items_b msib, Apps DBA

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

select ROWNUM "SL NO", Project Acco


prha.segment1 "PR NO", PSOUG
prha.creation_date "PR CREATION DATE", R12 Instance
prha.approved_date "PR APPROVAL DATE",
Real World O
msib.inventory_item_id "MATERIAL CODE",
msib.description "MATERIAL DESCRIPTION", Shareoraclea
prla.quantity "QTY", Solution Beac
prla.unit_meas_lookup_code "UOM", Your It Box
pha.segment1 "RFQ NO",
pha.creation_date "RFQ CREATION DATE"
FROM po_requisition_headers_all prha, BLOG ARC
po_requisition_lines_all prla, ▼
po_req_distributions_all prda,
po_distributions_all pda,
mtl_system_items_b msib,
po_headers_all pha,
hr_operating_units hou
WHERE prha.requisition_header_id=prla.requisition_header_id
AND prla.requisition_line_id=prda.requisition_line_id
AND prda.distribution_id=pda.req_distribution_id
AND pda.po_header_id=pha.po_header_id
AND prla.item_id= msib.inventory_item_id
AND msib.organization_id=prha.org_id
AND hou.organization_id(+)=pha.org_id
AND hou.name=:Operating_Unit
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
(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 Apps HRMS Interview Questions

1. Important Tables in HRMS


Per_all_people_F,
per_person_types,
per_person_type_usages,
per_addresses,
per_contact_Relationships,
per_periods_of_service
Per_all_assignments_f,
per_pay_groups,
per_jobs,
per_job_Definitions,
per_grades,
per_grade_definitions,
hr_all_positions,
hr_all_position_definitions,
hr_all_locations,
pay_all_payrolls_F
pay_element_entry_values_F,
pay_element_entries_F,
pay_elements_links_F,
pay_element_types_F

2. Key Flexfields (KFFs) in HRMS

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

3.What are Date Track Tables?


Every update in the Table, we will save the change in the form of a Record to provide the
facility to find the information at any point of time.

These tables are post fixed by _F

4. What are secured Views?


The Views which do not have the _all to be said as secured views.
Per_all_people_F
per_people_f
per_all_assignemtns_f
per_assignments_f
pay_all_payrolls_F
per_payrolls_f

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

HR_EMOYEE_api ex: hr_employee_api.create_employee


hr_PERSON_api
hr_organization_api Ex: hr_organization_api.create_organization
hr_applicant_apI
hr_assignment_api

7. What are the reports which you have done in HR?


HR PAYROLL COSTING :
This report is used to display the information about the employees, the assignements which were
given to the employees along with the payroll details including the Hours Paid, Salary, NI,
Pension, Car Allowances and Other Allowances.

Imported Supply Purchase Order

SELECT DISTINCT pva.segment1 "VENDOR CODE",


plla.ship_to_organization_id,
pha.po_header_id,
hla.inventory_organization_id,
pva.VENDOR_NAME,
pvsa.address_line1,
pvsa.address_line2,
pvsa.city,
pvsa.state,
pvsa.ZIP "PINCODE",
(PVC.first_name|| pvc.last_name) "SUPPLIER's CONTACT PERSON",
PVSA.phone "Mobile No./Phone No. ",
PVC.fax "FAX NO. ",
PVC.email_address "EMAIL ID ",
(pha.segment1||'/'||pha.revision_num) "PO/REV No",
(pra.release_num||'/'||pha.revision_num) "Rel/REV No.",
prha.segment1 "PR NO.",
papf.full_name "BUYER NAME ",
hla.address_line_1 "ADDRESS LINE 1 ",
hla.address_line_2 "ADDRESS LINE 2",
hla.LOCATION_CODE,
hla.town_or_city "CITY /STATE",
hla.telephone_number_1 "PHONE NO./FAX NO. ",
rownum "SL NO.",
msib.segment1 "ITEM_CODE",
pla.item_description,
plla.quantity "SHIPMENT QTY",
pla.UNIT_MEAS_LOOKUP_CODE "UOM",
plla.NEED_BY_DATE "NEED BY DATE ",
pha.currency_code "CURRENCY",
pla.unit_price "UNIT BASIC PRICE",
(pla.unit_price * plla.quantity) "TOTAL BASIC PRICE",

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'

--> APIL payments Invoice using Vendor

SELECT pha.segment1 "PO_NO" ,


pha.creation_date "PO_DATE",
pv.vendor_name,
SUM(pla.quantity) "PO_QTY",
rsh.receipt_num "GRN_NO",
rt.transaction_date "GRN_DATE",
SUM(plla.quantity_received) "RECEIVED_QTY",
SUM(plla.quantity_accepted) "ACCEPTED_QTY",
SUM(aila.quantity_invoiced) "INVOICED_QTY",
aia.amount_paid "PAYMENT_AMT",
apt.name "PAYMENT_TERMS",
apsa.due_date "PAYMENT_DATE",
aca.payment_method_code "PAYMENT_MODE",
DECODE(aca.payment_method_code,'CHECK',aca.check_number,
'NETTING',aca.check_number) "CHECK_NUMBER",
DECODE(aca.payment_method_code,'CHECK',aca.check_date,
'NETTING',aca.check_date) "CHECK_DATE"
FROM po_headers_all pha,
po_lines_all pla,
po_line_locations_all plla,
po_distributions_all pda,
po_vendors pv,
rcv_transactions rt,

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

--> List of Open PO

SELECT pha.segment1 "PO_NO",


pha.creation_date "PO_CREATION_DATE",
aps.segment1 "VENDOR_CODE",
msib.segment1 "MATERIAL_CODE",
msib.description "MATERIAL_DESCRIPTION",
plla.need_by_date,
pla.unit_meas_lookup_code "UOM",
plla.quantity "PO_QTY",
SUM(plla.quantity_received) "RECEIVED_QTY",
SUM(plla.quantity_accepted) "ACCEPTED_QTY",
SUM(plla.quantity_rejected) "REJECTED_QTY",
(plla.quantity-plla.quantity_received) "BALANCE_QTY_TO_BE_RECEIVED"
FROM po_headers_all pha,
po_lines_all pla,
po_line_locations_all plla,
po_distributions_all pda,
mtl_system_items_b msib,
ap_suppliers aps
WHERE pha.vendor_id=aps.vendor_id
AND pha.po_header_id=pla.po_header_id
AND pla.po_line_id=plla.po_line_id
AND pla.item_id=msib.inventory_item_id
AND pha.org_id=:ORGANIZATION
AND TRUNC (pha.creation_date) BETWEEN NVL (:FROM_RECEIPT_DATE,TO_DATE
(pha.creation_date,'DD-MON-RR'))AND NVL (:TO_RECEIPT_DATE,TO_DATE
(pha.creation_date,'DD-MON-RR'))
AND pha.vendor_id=:VENDOR
AND pha.segment1='7015'
GROUP BY pha.segment1,
pha.creation_date,
aps.segment1,
msib.segment1,
msib.description,
plla.quantity,
plla.need_by_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

Posted by Raju at 4:06 PM 0 comments +1 Recommend this on Google

Labels: PO, SCRIPTS

Home Older Posts

Subscribe to: Posts (Atom)

Email : oracleapps88@yahoo.com. Picture Window template. Template images by konradlew. Powered by Blogger.

Get Flower Effect

oracleapps88.blogspot.com/search/label/PO 7/7

You might also like