Query to to find the Employee Supervisor name SELECT papf1.full_name supervisor_nameFrom apps.per_all_people_f papf,apps.

per_a ll_assignments_f paaf,apps.per_all_people_f papf1WHERE papf.person_id = paaf.per son_idAND paaf.primary_flag = Y AND paaf.assignment_type = E AND paaf.supervisor_id = papf1.person_idAND papf1.current_employee_flag = Y AND papf.business_group_id = paa f.business_group_idAND SYSDATE BETWEEN papf.effective_start_date and papf.effect ive_end_dateAND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end _dateAND SYSDATE BETWEEN papf1.effective_start_date AND papf1.effective_end_date AND papf.employee_number = :p_emp_number; Query to find out payroll Costing Detail / How to find out payroll costed accou nts / Query to find out Payroll Charged Accounts . SELECT distinct d.EMPLOYEE_NUMBER,d.FULL_NAME,a.CONCATENATED_SEGMENTS, a.element _name,decode(a.debit_or_credit, Debit ,COSTED_VALUE, ) Debit , decode(debit_or_credit, Credit ,COSTED_VALUE, ) Credit FROM pay_costs_v a, pay_assignment_actions_v b,per_assignments_x c,per_people_x d where d.EMPLOYEE_NUMBER= nvl(:p_emp_no,d.EMPLOYEE_NUMBER) and trunc (b.EFFECTIVE_DATE) between :p_from_date and :p_to_date and a.ASSIGNMENT_ACTION_ID=b.ASSIGNMENT_ACTION_ID and b.ASSIGNMENT_ID=c.ASSIGNMENT_ID and c.PERSON_ID=d.PERSON_ID

Query to Find All Active Employees and Current Salary. select EMPLOYEE_NUMBER,a.FULL_NAME,x.USER_PERSON_TYPE, c.PROPOSED_SALARY_n Basi_ Salary ,c.CHANGE_DATE ,c.* from per_people_f A,per_assignments_f b,pER_PAY_pROposals c ,per_person_types x , per_person_type_usages_f e where a.PERSON_ID=b.PERSON_ID and b.ASSIGNMENT_ID=C.ASSIGNMENT_ID and a.EMPLOYEE_NUMBER is not null and a.EMPLOYEE_NUMBER=:emp_num and c.CHANGE_DATE = (select max(d.CHANGE_DATE) from pER_PAY_pROposals d where d. ASSIGNMENT_ID=b.ASSIGNMENT_ID and d.approved = Y ) and c.CHANGE_DATE>=:change_date and b.PAYROLL_ID=62 and :p_effective_date between a.EFFECTIVE_START_DATE and a.EFFECTIVE_END_DATE and :p_effective_date between b.EFFECTIVE_START_DATE and b.EFFECTIVE_END_DATE and a.PERSOn_id = e.PERSON_ID and a.EFFECTIVE_START_DATE between e.EFFECTIVE_START_DATE and e.EFFECTIVE_END_DA TE and e.PERSON_TYPE_ID = x.PERSON_TYPE_ID and x.SYSTEM_PERSON_TYPE = EMP

Query fo Find out all Earning and Deduction Elements and values after Payroll Ru n SELECT ppf.employee_number,ppf.person_id,ppf.full_name,ppa.TIME_PERIOD_ID,ppa.EF FECTIVE_DATE,TP.PERIOD_NAME,paf.ORGANIZATION_ID, sum(decode(pec.CLASSIFICATION_NAME, Earnings ,to_number(rrv.result_value), 0) ) Earnings,

ppf.TO_NUMBER(rrv. 0) ) Deductions ety.result_value). 0)) Earned_salary.TO_NUMB ER(rrv.assignment_action_id = rr.element_name.Nid_Salary_By_Date(paf.EFFECTIVE_DATE BETWEEN :p_st_effect_date AND :p_end_effect_date and ppf.sum(decode(pec.ppf. PER_TIME_PERIODS TP.CLASSIFICATION_NAME. Employer Charges . 0)) Transportation_allowance.to_number(rrv.assignment_id. Voluntary Deductions . per_assignments_x paf. sum(decode(ety.SEGMENT5 POSITION_NO.CLASSIFICATION_ID PD. /******************************************************************************* ******************************/ .input_value_id and TP. pay_run_result_values rrv.CLASSIFICATION_ID AND i.employee_number.POSITION_DE FINITION_ID and ppa. Transportation Out Work Incident Leave Payment .TIME_PERIOD_ID.TO_NUMBER(rrv. /******************************************************************************* *************************/ sum(decode(ety. pay_assignment_actions pas.TIME_PERIOD_ID and ety.payroll_action_id AND rr.element_type_id = ety.element_name.re sult_value).SEGMENT6.ppa.ppa.person_id . N')).ppf.EF FECTIVE_DATE . Basic Out Work Incident Leave Payment .paf.effective_date.employee_number = nvl(:p_emp_number.SEGMENT6 POSITION_NAME. ppf.ety.PD.assignment_id = pas.employee_number.result_value).element_name. To_Number(Wassa_HR_PACK AGE.result_value). PD.input_value_id = i.ppf.CLASSIFICATION_ID=pec.ORGANIZATION_ID Query for Oracle Payroll Salary Slip / Salary Slip Detail Report Query / How to find out detail of salary slip/ Element wise Landscape Salary Slip at Payroll R un Levle or quick pay level Note: I have hardcoded element names.TO_NUMBER(rrv. You can also hardcode your elements to ge t Landscaped salary slip.PD. FROM per_people_x ppf.ppa.result_value). pay_run_results rr.person_id AND paf. Basic Salary .result_value ).element_type_id AND rrv.full_name.TIME_PERIOD_ID.SEGMENT5 . PAY_ELEMENT_CLASSIFICATIONS_VL pec WHERE ppf.name = Pay Value AND HR_GENERAL.EFFECTIVE_DATE.element_type_id AND i. SELECT ppf. pay_payroll_actions ppa. TP.person_id = paf.run_result_id = rr.POSITION_ID) = PD.result_value).run_result_id AND rrv.TIME_PERIOD_ID = PPA.PERIOD_NAME.person_id.element_type_id = ety.payroll_action_id = pas.TP.full_name.to_number(rrv.assignment_action_id AND ppa.TO_NUMBER(rrv.assignment_id AND pas.result_value). pay_element_types_f ety.employee_number) group by ppf. Basic Sick Leave Payment .result_value). pay_input_values_F I.TO_NUMBER(rrv. Transportation Allowance .period_name.to_number(rrv. Involuntary Deductions . Transportation Sick Leave Payment .ppa.DECODE_LATEST_POSITION_DEF_ID(PAF.

TO_NUMBER(rrv. pay_element_types_f ety. Penalty .result_value). Danger Out Work Incident Leave Payment . Work Type Sick Leave Payment . In Out Leave Deduction . /******************************************************************************* ******************************/ sum(decode(ety. Damages Allowance . Work Type Out Work Incident Leave Payment . result_value). Retrieve Mony Recovery .TO_NUMBER(rrv.TO_NUMBER(rrv.element_name. per_assignments_x paf. sum(decode(ety. pay_assignment_actions pas .result_value). PER_TIME_PERIODS TP PER_POSITION_DEFINITIONS PD PAY_INPUT_VALUES_F .element_name.element_name.element_name.element_name. pay_run_result_values rrv.result_value).TO_NUMBER(rrv. Work Type Allowance .TO_NUMBER(rrv.0) ) In_Out_Leave_Deduction.result_value).TO_NUMBER(rrv.result_value).element_name.element_name.element_name.result_value).0) ) Retrieve_Mony_Recovery FROM per_people_x ppf.0)) Housing_Deduction. Damages Sick Leave Payment .TO_NUMBER(rrv.TO_NUMBER(rrv.result_value).TO_NUMBER(rrv.result_value). /******************************************************************************* **********************************/ sum(decode(ety. Danger Sick Leave Payment .r esult_value). sum(decode(ety.resu lt_value). Loan Recovery . Unpaid Leave Deduction . Loan Recovery Housing .result_value).0) ) Inflation_Allowance.result_value). /******************************************************************************* ********************************/ sum(decode(ety.TO_NUMBER(rrv. sum(decode(ety.sum(decode(ety. 0)) Damage_allowance.element_name.0)) Loan_Recovery_Others.0)) Penalty.TO_NUMBER(rrv. 0)) Civil_pension. sum(decode(ety. Social Insurance .TO_NUMBER(rrv. sum(decode(ety. Loan Recovery Others .result_value).0)) Loan_recovery.element_name. pay_payroll_actions ppa.result_value). Housing Deduction . pay_input_values_F I .TO_NUMBER(rrv. Damages Out Work Incident Leave Payment .result_value). sum(decode(ety.TO_NUMBER(rrv. 0)) Danger_allowance.element_name.TO_NUMBER(rrv. Danger Allowance .result_value). /******************************************************************************* ****************************************/ sum(decode(ety. Civil Pension .TO_NUMBER(rr v. 0)) worktype_allowance.0) ) Unpaid_Leave_Deduction.TO_NUMBER(rrv.element_name. /********************************************************* Deductions ******** ****************************************/ sum(decode(ety.TO_NUMBER(rrv.TO_NUMBER(rrv. Inflation Allowance .TO_NUMBER(rrv.element_name.result_value).result_value).0)) Loan_Recovery_Housing. /******************************************************************************* *****************************************************/ sum(decode(ety.result_value). pay_run_results rr.

PD.CREATI ON_DATE.requisition_line_id and pord.po_header_id = poh.payroll_action_id = pas. 2010faisalNo comments Oracle EBS R12 Query to find out PR and PO linked (Find PO information Against PR) select req.TIME_PERIOD_ID = PPA.DECODE_LATEST_POSITION_DEF_ID(PAF.ppa.user_id order by 2 Query to find out PR and PO linked September 28th. po_requisition_lines_all rl.po_distributions_all pod.po_headers_all poh.po. TP.15202*/) group by ppf. poh.employee_number.15201.segment1 as Req Number .period_name order by ppa.element_type_id AND rrv. po_req_distributions_all rd.effective_date.element_type_id = ety. trunc(poh.14666.run_result_id = rr.APPROVED_DATE.assignment_action_id = rr.fnd_user u where porh.name = Pay Value AND HR_GENERAL.AUTHORIZATION_STATUS PO Status .WHERE ppf.segment1 PO Number .po_header_id(+) and porh.SEGMENT5 .segment1.POSITION_DE FINITION_ID and ppa.payroll_action_id AND rr.segment1.requisition_header_id and porl.Creation_date) PO Creation Date .requisition_header_id = porl.ppf.requisition_line_id = pord.full_name. apps.po.po_requisition_headers_all porh.Creation_Date) Created On .po_requisition_lines_all porl.TIME_PERIOD_ID.distribution_id = pod.EFFECTIVE_DATE Query to find out info from PR to PO September 28th. po_distributions_all dst.APPROVED_FLAG from po_headers_all po. poh.LAST_UPDATED_BY.SEGMENT6.Approved_Date) Approved Date from apps. apps.input_value_id and TP.Description Description .person_id = paf.assignment_action_id AND ppa.assignment_id = pas.assignment_id AND pas.POSITION_ID) = PD. porh. 2010faisalNo comments Oracle EBS R12 Query to find out info from PR to PO select distinct u.35343. trunc(poh.DESCRIPTION req_. ppf. apps. pord. apps.created_by = u.Authorization_Status Status .po_req_distributions_all pord.req. porh.run_result_id AND rrv.input_value_id = i. porh.employee_number = :P_Employee_number in(34000/*1546014859.description Requestor .person_id . PD.EFFECTIVE_DATE BETWEEN :P_FROM_DATE AND :P_TO_DATE and ppf. trunc(porh.person_id AND paf.element_type_id = ety.element_type_id AND i.req_distribution_id(+) and pod.po. po_requisition_headers_all req .req.TIME_PERIOD_ID AND i. apps.

fnd_user_resp_groups a.concurrent_program_id and c.request_group_id = u.user_concurrent_queue_name.fnd_responsibility_vl b.USER_CONCURRENT_PROGRAM_NAME like Purchase Order ORDER BY C.requisition_line_id = rl. g. fnd_concurrent_programs_tl c WHERE g.end_date. apps. c.user_id = (select user_id from FND_USER where user_name=:User_name) AND a. u. fnd_concurrent_queues_vl b. SELECT b. u.application_name.req_distribution_id = rd.fnd_user u WHERE a.where po. A. fnd_application_tl a.concurrent_queue_id and a. SYSDATE + 1) AND b. COUNT (*) .application_id. Order Management Qureies To Find Duplicate Item Category Code SELECT category_set_name.distribution_id and rd.end_date IS NULL AND u. category_concat_segments.concurrent_process_id = c.application_name.requisition_header_id Oracle EBS R12 Administrator and Concurrent Related September 19th. fnd_request_group_units u.unit_application_id = a.unit_application_id. fnd_concurrent_requ ests c where a. Find the Request Groups and Concurrent Progams SELECT g.concurrent_queue_id = b. 2010faisalNo comments Oracle EBS R12 Administrator and Concurrent Related Query to Find Responsibilities assigned to particular user.user_id = u.request_unit_id FROM fnd_request_groups g.po_header_id and dst. c.requisition_header_id = req.responsibility_id AND a.responsibility_name NAME FROM apps.request_unit_id = c.APPLICATION_NAME FROM fnd_application_tl WHERE application_name = Purchasing AND rownum = 1.user_concurrent_program_name.request_group_id. Inventory. Running in System System Administrator SELECT application_id.controlling_manager.responsibility_id = b.application_id AND SYSDATE BETWEEN a. apps.responsibility_application_id = b.start_date AND NVL (a.requisition_line_id and rl.request_group_id AND u.user_concurrent_program_name. g. g.application_id AND u.request_group_id SCM Queries September 19th. 2010faisal1 comment Oracle EBS R12 Purchasing.request_id from fnd_concurrent_processes a.po_header_id = dst.end_date IS NULL Query To find the Request Run By Concurrent select b.user_id AND u. a.request_group_name.

ood.|| segment3 catgory FROM org_organization_definitions ood.secondary_inventory_name. gcc2.segment3 loc_seg3. E DD/MM/YYYY ) To Check Item Catogry For Inventory master (No Of Segments May Varry) SELECT ood.a.segment6 loc_seg6.SUBINVENTORY_CODE FROM mtl_item_locations mil.per_all_people_f where hr.user_id = a.structure_id ORDER BY ood.ORG_ID.PERSON_ID in (select employee_id from fnd_user fu where fu.segment2 loc_seg2.segment1 loc_seg1. mtl_category_sets mcs WHERE mcs.concatenated_segments Outside Processing Account .segment5 loc_seg5.AUTHORIZATION_STATUS.count(SEGMENT1 ) FROM po_requisition_headers_all a WHERE a. mtl_categories_vl mcv. mil. DD/MM/YYYY ) and TO_DATE( 30/05/2007'.per_all_people_f.AUTHORIZATION_STATUS.ORGANIZATION_ID = ood. gcc3. AND TO_DATE (:tdate.middle_names|| || hr.segment11 loc_seg11. gcc5.segment4 loc_seg4.concatenated_segments Expense Account .per_all_people_f.PICKING_ORDER Picking Order .structure_id = mcv. segment1|| .ORGANIZATION_ID Display All Subinventories Setup select msi.organization_name Check Locators for inventory Inventory Org Wise(Number of segment may varry) SELECT mil.concatenated_segments Encumbrance Account .DESCRIPTION Description .CREATED_BY)) CREATED_B Y. mil.(a.fi rst_name|| || hr. mil.mil.|| segment2|| . DD/MM/YYYY ) and a.concatenated_segments Resource Account .FROM mtl_category_set_valid_cats_v WHERE (category_set_id = 1) GROUP BY category_set_name. gcc7. mil. mil.AUTHORIZATION_STATUS = CANCELLED group by a.per_all_people_f.concatenated_segments Material Account . MS I.CREATED_BY Number of line processed in Order Management SELECT COUNT (line_id) Order Line Processed FROM oe_order_lines_all WHERE creation_date BETWEEN TO_DATE (:Fdate.(SELECT distinct hr. gcc1.DISABLE_DATE Disable Date . MSI.concatenated_segments Overhead Account . gcc6.a.ORG_ID). .SECONDARY_INVENTORY_NAME Subinventory .last_name mployee Name FROM hr. DD/MM/YYYY ) AND flow_status_code = CLOSED . gcc4. mil.per_all_people_f. category_concat_segments HAVING COUNT (*) > 1 ORDER BY category_concat_segments Get Number Of canceled requisition SELECT a. MSI.creation_date BETWEEN TO_DATE( 01/01/2007'.concatenated_segments Material Overhead Account .organization_name. msi.ORGANIZATION_NAME.org_organization_definitions ood where mil.

hz_cust_acct_sites_all CAS.CODE_COMBINATION_ID(+) and msi.a.loc.loc. apps.loc.PARTY_ID and I. select p.secondary_inventory_name To Select Unit Of measure exist in ebusiness suite select uom_code.PARTY_NAME.CUST_ACCT_SITE_ID=cas. Ad ress etc.material_account = gcc1.address3.CUST_ACCOUNT_ID and ca.expense_account = gcc6.CODE_COMBINATION_ID(+) and msi. gl_code_combinations_kfv gcc1.hz_cust_site_uses_all CSU. msi.encumbrance_account from mtl_secondary_inventories msi.ca.CODE_COMBINATION_ID(+) and msi.address1.bill_to_site_use_id=csu. gl_code_combinations_kfv gcc5.hz_parties P.material_overhead_account.PARTY_ID=p.ACCOUNT_NUMBER. msi.hz_party_sites PS where I.COMPLETE_FLAG = Y and I. gl_code_combinations_kfv gcc6.PARTY_SITE_ID=ps.resource_account = gcc3.hz_locations Loc.encumbrance_account = gcc7.CODE_COMBINATION_ID(+) order by msi.expense_account. apps. gl_code_combinations_kfv gcc7 where msi.location_id=loc. Expected Deliver select sum(ordered_quantity).outside_processing_account.LOCATION_ID Query to find on Hand Quantity select sum(transaction_quantity) from MTL_ONHAND_QUANTITIES where inventory_item_id=9 and organization_id=188 Qunatity on order.overhead_account. msi.SCHEDULE_SHIP_DATE from oe_order_lines_all a where inventory_item_id=10 and ship_from_org_id=188 .outside_processing_account = gcc5.country.resource_account.ca.CODE_COMBINATION_ID(+) and msi. apps.ra_customer_trx_all I.unit_of_measure from mtl_units_of_measure Query to find out Customer Master Information. loc. apps. apps. apps. msi.loc.bill_TO_CUSTOMER_ID= CA. msi.hz_cust_accounts CA.address2. Customer Name. gl_code_combinations_kfv gcc2.overhead_account = gcc4.postal_code.material_overhead_account = gcc2. Account Number. gl_code_combinations_kfv gcc3.msi.CODE_COMBINATION_ID(+) and msi.city. gl_code_combinations_kfv gcc4.CUST_ACCT_SITE_ID and cas.CUST_ACCOUNT_ID from apps.party_site_id and ps.CODE_COMBINATION_ID(+) and msi.site_use_id and csu.loc .

segment4) FROM mtl_system_items_b msib WHERE msib.|| msib.CATEGORY_CONCAT_SEGS Category FROM MTL_ITEM_CATEGORIES_V micv Another Query to Get Onhand Qty With Oranization ID.inventory_item_id .group by a. Item Code. (SELECT ( msib. Average monthly consumption (select sum(transaction_quantity)/30 from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity<0) .CATEGORY_SET_ID Category Set ID .inventory_item_id = moq. Quantity SELECT organization_id.|| msib.segment3|| .CATEGORY_SET_NAME Category Set . 2.SCHEDULE_SHIP_DATE Query to find Item Code.|| msib.scheduled_ship_date from oe_order_lines_all where inventory_item_id=&your_item and ship_from_org_id=&organization_id group by scheduled_ship_date) order_info Total Received Qty select sum(transaction_quantity) from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity>0) Total received Qty in 9 months select sum(transaction_quantity) from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity>0 and transaction_date between trunc(sysdate) and trunc(sysdate-270)) Total issued quantity in 9 months select sum(transaction_quantity) from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity<0 and transaction_date between trunc(sysdate) and trunc (sysdate-270)) tot_iss_qty_9mths.CATEGORY_ID Category ID .segment1|| . decode( micv. micv. micv. Master . 1. Other ) Control Level . Org . Display all categories that the Item Belongs SELECTunique micv.Expected deivery date( select sum(ordered_quantity). micv.segment2|| . Item Description Oracle Item Master Query select item.CONTROL_LEVEL. description from mtl_system_items_b where inventory_item_id=&your_item and organization_id=&organization_id) item Query to Find out On Hand Quantity of specific Item Oracle inventory select sum(transaction_quantity) from mtl_onhand_quantity_details where inventory_item_id=&your_item and organization_id=&organization_id Qty On Order.

recipe_id and a.-1.TRANSACTION_SOURCE_ID and a.RECIPE_VALIDITY_RULE_ID.de scription.RECIPE_VALIDITY_RULE_ID and grr.decode(c.organization_id) Item Code .RECIPE_VALIDITY_RULE_ID.gmd_recipe_validity_rules grr. Ingredient .a.transaction_quantity) onhandqty FROM mtl_onhand_quantities moq GROUP BY moq.c.FM_MATL_DTL b.inventory_item_id AND msib.apps.a.decode(b.ORGANIZATION_ID=c.organization_id and a.line_type.AND msib.organization_id) item Description .inventory_item_id = moq.FORMULA_ID and b.apps.formula_no.d.batch_no in (select batch_no from apps.FORMULA_DESC1.apps.c. (moq.FORMULA_ID Quantity of Ingredients and Products June 27th.FORMULA_ID=b.formula_id=b.transaction_date) between :from_date and :to_date group by b. (SELECT description FROM mtl_system_items_b msib WHERE msib.ORGANIZATION_ID and c.INVENTORY_ITEM_ID=e.ORGANIZATION_ID=e.RECIPE_ID=b.organization_id.ORGANIZATION_ID=:your_Org_id and a.RECIPE_DESCRIPTION.c.-1.'Product ) Type.mtl_material_transactions e where a. sum(e.mtl_system_items c where a. 2010faisalNo comments Oracle Apss R12 OPM (Oracle Process manufacturing) Formula Base Tables and Detail of Products and Ingredients select a.INVENTORY_ITEM_ID=d.'Product ) Type from FM_FORM_MST a.desc ription.INVENTORY_ITEM_ID=c.GME_BATCH_HEADER a.ORGANIZATION_ID=:your_org_id and trunc(e.descripti on.a.ORGANIZATION_ID=d. OPM Query to Find out Quantity of Products and Ingredients of all Batches in particu lar Month.INVENTORY_ITEM_ID and c.b.TRANSACTION_QUANTITY) quantity from apps.ROUTING_ID and a.batch_id=e.ORGANIZATION_ID=c. Select b.organization_id = moq.INVENTORY_ITEM_ID and a.inventory_item_id and b.GME_BATCH_HEADER where trunc(plan_s tart_date) between :from_date and :to_date) and a.d.line_type.gme_material_details c.ORGANIZATION_ID and c.INVENTORY_ITEM_ID.BATCH_ID=c.b.c.ROUTING_ID=b. Ingredient .gmd_recipes b.FORMULA_ID and a. 2010faisalNo comments Oracle Apps R12.mtl_system_items d.organization_id order by a.a.RECIPE_VALIDITY_RULE_ID=grr.inventory_item_id) Formula Details June 27th.ap ps.INVENTORY_ITEM_ID.organization_id = moq.organization_id.RECIPE_DESCRIPTION.FORMULA_CLASS<> COSTING and b.INVENTORY_ITEM_ID.line_type order by RECIPE_DESCRIPTION Convert Number into Words .BATCH_ID and a.FORMULA_ID. SUM (moq.

|| segment3 catgory FROM org_organization_definitions ood. mtl_category_sets mcs .per_all_people_f.fi rst_name|| || hr.per_all_people_f where hr. DD/MM/YYYY ) and TO_DATE( 30/05/2007'.AUTHORIZATION_STATUS.AUTHORIZATION_STATUS = CANCELLED group by a.to_char(to_date(sal.per_all_people_f.count(SEGMENT1 ) FROM po_requisition_headers_all a WHERE a.per_all_people_f. Inventory.a. mtl_categories_vl mcv.ORG_ID.CREATED_BY Number of line processed in Order Management SELECT COUNT (line_id) Order Line Processed FROM oe_order_lines_all WHERE creation_date BETWEEN TO_DATE (:Fdate.CREATED_BY)) CREATED_B Y.(a. 2010faisal1 comment Convert Number into Words select ename.user_id = a. Purchaing . DD/MM/YYYY ) and a. Payro l .middle_names|| || hr. OPM) To Find Duplicate Item Category Code SELECT category_set_name. from scott. category_concat_segments HAVING COUNT (*) > 1 ORDER BY category_concat_segments Get Number Of canceled requisition SELECT a.emp ENAME SAL CONVERTED_FORM JSP ) as converted_form SMITH 800 EIGHT HUNDRED ALLEN 1600 ONE THOUSAND SIX HUNDRED WARD 1250 ONE THOUSAND TWO HUNDRED FIFTY JONES 2975 TWO THOUSAND NINE HUNDRED SEVENTY-FIVE MARTIN 1250 ONE THOUSAND TWO HUNDRED FIFTY BLAKE 2850 TWO THOUSAND EIGHT HUNDRED FIFTY Oracle R11.June 21st. AND TO_DATE (:tdate.last_name mployee Name FROM hr. COUNT (*) FROM mtl_category_set_valid_cats_v WHERE (category_set_id = 1) GROUP BY category_set_name. HR.per_all_people_f.ORG_ID).creation_date BETWEEN TO_DATE( 01/01/2007'.AUTHORIZATION_STATUS. category_concat_segments. segment1|| . 2010faisalNo comments Oracle R11.(SELECT distinct hr. R12 Important Queries June 21st.a. J').|| segment2|| . R12 Important Queries (Concurrent .PERSON_ID in (select employee_id from fnd_user fu where fu. DD/MM/YYYY ) AND flow_status_code = CLOSED . E DD/MM/YYYY ) To Check Item Catogry For Inventory master (No Of Segments May Varry) SELECT ood.sal.organization_name.

apps.segment3 loc_seg3. msi. gcc5. msi.material_overhead_account.secondary_inventory_name To Select Unit Of measure exist in ebusiness suite select uom_code. apps. gcc3.CUST_ACCOUNT_ID from apps.ood.PARTY_NAME. Ad ress etc. gl_code_combinations_kfv gcc3.ca.CODE_COMBINATION_ID(+) and msi.overhead_account = gcc4. msi.concatenated_segments Resource Account .encumbrance_account = gcc7.overhead_account.DISABLE_DATE Disable Date . msi.concatenated_segments Material Overhead Account . gcc6.unit_of_measure from mtl_units_of_measure Query to find out Customer Master Information.org_organization_definitions ood where mil.SUBINVENTORY_CODE FROM mtl_item_locations mil.secondary_inventory_name.expense_account.concatenated_segments Expense Account . gl_code_combinations_kfv gcc1.CODE_COMBINATION_ID(+) and msi.hz_cust_accounts CA.city.mil. select p. msi.segment11 loc_seg11. mil.CODE_COMBINATION_ID(+) and msi. mil. msi. mil.ra_customer_trx_all I.loc . gcc7.outside_processing_account.CODE_COMBINATION_ID(+) and msi. apps.address2.material_account = gcc1.organization_name Check Locators for inventory Inventory Org Wise(Number of segment may varry) SELECT mil. .segment6 loc_seg6.country. Customer Name.concatenated_segments Material Account . gl_code_combinations_kfv gcc7 where msi.resource_account.ACCOUNT_NUMBER. gcc2. MSI. msi.concatenated_segments Encumbrance Account .expense_account = gcc6.resource_account = gcc3. gl_code_combinations_kfv gcc2.loc.segment2 loc_seg2.postal_code.loc.concatenated_segments Overhead Account .segment1 loc_seg1.address1. Account Number. mil.structure_id ORDER BY ood.address3.material_overhead_account = gcc2.encumbrance_account from mtl_secondary_inventories msi.ORGANIZATION_ID Display All Subinventories Setup select msi. gcc1. mil. mil.WHERE mcs. gl_code_combinations_kfv gcc6. loc.CODE_COMBINATION_ID(+) and msi. apps.CODE_COMBINATION_ID(+) order by msi.outside_processing_account = gcc5.SECONDARY_INVENTORY_NAME Subinventory .ORGANIZATION_ID = ood.segment5 loc_seg5.loc. gl_code_combinations_kfv gcc4.ca.ORGANIZATION_NAME.DESCRIPTION Description .segment4 loc_seg4.loc.hz_locations Loc. MS I. MSI. gl_code_combinations_kfv gcc5.concatenated_segments Outside Processing Account .CODE_COMBINATION_ID(+) and msi.PICKING_ORDER Picking Order .hz_cust_site_uses_all CSU.structure_id = mcv.hz_parties P. gcc4.

concurrent_queue_id and a. fnd_concurrent_queues_vl b.fnd_user_resp_groups a. Query to find on Hand Quantity select sum(transaction_quantity) from MTL_ONHAND_QUANTITIES where inventory_item_id=9 and organization_id=188 Qunatity on order.request_id from fnd_concurrent_processes a.CUST_ACCOUNT_ID and ca.a.hz_cust_acct_sites_all CAS. Qty Issued by X No clue what you want here Qty On Order.concurrent_process_id = c.user_concurrent_queue_name.fnd_responsibility_vl b. apps.responsibility_id AND a.CUST_ACCT_SITE_ID=cas.hz_party_sites PS where I.COMPLETE_FLAG = Y and I.location_id=loc.start_date AND NVL (a.CUST_ACCT_SITE_ID and cas.scheduled_ship_da te from oe_order_lines_all where inventory_item_id=&your_item and ship_from_org_id=&organization_id group by scheduled_ship_date) order_info.responsibility_application_id = b. SELECT b.apps.concurrent_queue_id = b.fnd_user u WHERE a. Item Description Oracle Item Master Query(select item.SCHEDULE_SHIP_DATE Query to find Item Code.Expected deivery date(select sum(ordered_quantity). c. apps.bill_to_site_use_id=csu. Expected Deliverselect sum(ordered_quantity).end_date.PARTY_ID and I. .end_date IS NULL Query To find the Request Run By Concurrent select b.application_id AND SYSDATE BETWEEN a. Query to Find out On Hand Quantity of specific Item Oracle inventory (select sum(transaction_quantity) from mtl_onhand_quantity_details where inventory_item_id=&your_item and organization_id=&organization_id) onhand.controlling_manager.party_site_id and ps.LOCATION_ID Query to Find Responsibilities assigned to particular user.user_id AND u.site_use_id and csu.responsibility_id = b.PARTY_ID=p. apps. SYSDATE + 1) AND b.bill_TO_CUSTOMER_ID= CA. fnd_concurrent_requ ests c where a.user_id = u. description from mtl_system_items_b where inventory_item_id=&your_item and organization_id=&organization_id) item.end_date IS NULL AND u.user_id = (select user_id from FND_USER where user_name=:User_name) AND a.SCHEDULE_SHIP_ DATE from oe_order_lines_all a where inventory_item_id=10 and ship_from_org_id=188 group by a.responsibility_name NAME FROM apps.PARTY_SITE_ID=ps.

application_id.request_group_id = u.request_group_id AND u. 2. Total received Qty in 9 months (select sum(transaction_quantity) from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity>0 and transaction_date between trunc(sysdate) and trunc(sysdate-270)) tot_rec_qty_ 9mths. Find the Request Groups and Concurrent Progams SELECT g.CATEGORY_SET_ID Category Set ID .APPLICATION_NAME FROM fnd_application_tl WHERE application_name = Purchasing AND rownum = 1.unit_application_id = a.user_concurrent_program_name.request_group_id. Find detail of specific Appli cations Running in System System Administrator SELECT application_id. decode( micv.CONTROL_LEVEL. fnd_request_group_units u.request_group_name. fnd_application_tl a.application_id AND u. fnd_concurrent_programs_tl c WHERE g. Quantity SELECT organization_id. a. .user_concurrent_program_name. Total issued quantity in 9 months(select sum(transaction_quantity) from mtl_mater ial_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity<0 and transaction_date between trunc(sysdate) and trunc (sysdate-270)) tot_iss_qty_9mths. u. c. A.concurrent_program_id and c. micv.CATEGORY_CONCAT_SEGS Category FROM MTL_ITEM_CATEGORIES_V micv Another Query to Get Onhand Qty With Oranization ID.Toatl Received Qty (select sum(transaction_quantity) from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity>0) tot_rec_qty. g. g.unit_application_id. Org .application_name.request_unit_id = c. u. g. micv.application_name. Master .CATEGORY_SET_NAME Category Set . Other ) Control Level . Average monthly consumption (select sum(transaction_quantity)/30 from mtl_material_transactions inventory_item_id=&your_item and organization_id=&organization_id and transaction_quantity<0) avg_month_consumption. Display all categories that the Item Belongs SELECTunique micv.request_unit_id FROM fnd_request_groups g.USER_CONCURRENT_PROGRAM_NAME like %Purchase Order% ORDER BY C. micv.CATEGORY_ID Category ID . 1. Item Code.request_group_id.

(moq.organization_id) Item Code .segment4) .segment1|| .organization_id.|| msib.(SELECT ( msib.organization_id = moq.organization_id) item Description .inventory_item_id) .transaction_quantity) onhandqty FROM mtl_onhand_quantities moq GROUP BY moq.inventory_item_id = moq.segment3|| FROM mtl_system_items_b msib WHERE msib.|| msib.segment2|| .inventory_item_id = moq.inventory_item_id AND msib. SUM (moq.organization_id = moq. (SELECT description FROM mtl_system_items_b msib WHERE msib.|| msib.inventory_item_id AND msib.

Sign up to vote on this title
UsefulNot useful