WIP Tables with description

 

Table NameDescription
  
WIP_ACCOUNTING_CLASSESstores accounting flexfield information for
standard discrete jobs, non-standard asset jobs, non-standard expense
jobs, and repetitive assemblies. Oracle Work in Process stores a
General Ledger account for each cost element associated with a class.
The CLASS_CODE column uniquely identifies each class. Oracle Work in
Process uses this information to create the journal entries that post
cost transactions.
WIP_BIS_EFF_TEMPTemporary table that holds data from wip_indicators_temp for efficiency for faster data manipulation based on indicator (group_id = 1)
WIP_BIS_MNRA_TEMPTemporary table that stores the resource information for calculating WIP resource utilization
WIP_BIS_PERF_TO_PLANWIP_BIS_PERF_TO_PLAN contains information about the scheduled and actual production of all assemblies in all organizations for every day in a given date range. The Capture Production Performance concurrent program populates information into this table for a given date range. The WIP Performance to MPS report is based on this table.
WIP_BIS_PERIOD_BALANCETable that stores WIP inventory balance for each inventory accounting period.
WIP_BIS_PROD_ASSY_YIELDWIP_BIS_PROD_ASSY_YIELD is the summary table that contains
information about completions and scrap transactions with reference to a job and assembly.
The Capture Production Indicators concurrent program populates this table for a given date range.
The WIP Product Quality report is based on this table.
WIP_BIS_PROD_ASSY_YIELD_TEMPTemporary table that contains information about completions and scrap transactions with reference to a job and assembly.
 
WIP_BIS_PROD_DEPT_YIELDWIP_BIS_PROD_DEPT_YIELD is the summary table that contains information about yield with reference to a job, assembly, and department. It includes information about assemblies scrapped at each department operation. The Capture Production Indicators concurrent program populates this table for a given date range. The WIP Product Quality report is based on this table.
 
WIP_BIS_PROD_DEPT_YIELD_TEMPTemporary table that contains information about yield with reference to a job, assembly, and department. It includes information about assemblies scrapped at each department operation.
WIP_BIS_PROD_INDICATORSWIP_BIS_PROD_INDICATORS is the summary table that contains information about productivity, utilization and yield with reference to a job, assembly, department, or resource. The Capture Production Indicators concurrent program populates this table for a given date range. The WIP Production Efficiency and Resource Utilization reports are based on this table.
WIP_BIS_PROD_INDICATORS_TEMPTemporary table that contains information about productivity, utilization and yield with reference to a job, assembly, department, or resource.
WIP_BIS_UTZ_TEMPTemporary table that holds data from wip_indicators_temp for utilization for faster data manipulation based on indicator (group_id = 2)
WIP_BIS_YLD_TEMPTemporary table that holds data from wip_indicators_temp for yield for faster data manipulation based on indicator (group_id = 3)
WIP_COST_TXN_INTERFACEWIP_COST_TXN_INTERFACE contains information about cost transactions
that Oracle Work in Process needs to process. Each row represents
either a resource transaction, an overhead transaction, an outside
processing transaction, a cost update transaction, a period close
variance transaction, or a job close variance transaction. Each row
contains the transaction date, the job or repetitive schedule to
charge, the resource to charge, the primary unit of measure
transaction quantity, and the actual unit of measure transaction
quantity. Each row also has foreign key references to
move and receiving transaction tables. Oracle Work in Process uses
this table to support all resource cost transactions including
transactions loaded from other systems through the
Oracle Work in Process Open Resource Transaction Interface.
WIP_DEF_CAT_ACC_CLASSESWIP_DEF_CAT_ACC_CLASSES stores accounting classes by category and
possibly by cost group. Information is entered into this table using
the Default WIP Accounting Classes for Categories window in Oracle
Cost Management
WIP_DISCRETE_JOBSWIP_DISCRETE_JOBS stores discrete job information. Each row
represents a discrete job, and contains information about the assembly
being built, the revision of the assembly, the job quantity, the
status of the job, the material control method, accounting
information, and job schedule dates. Oracle Work in Process uses this
information to control discrete production
WIP_DJ_CLOSE_TEMPWIP_DJ_CLOSE_TEMP is a temporary table that holds information for
discrete jobs that have a status of Pending Close. Oracle Work in
Process inserts records into this table from the Close Discrete Jobs
window and also the Discrete Job Close process. Records are deleted
from this table once jobs are closed.
WIP_EAM_DIRECT_ITEMSThis table stores the description based direct items associated with an EAM work order.
WIP_EAM_PARAMETERSFor EAM enabled organization, this table stores organization parameters specific to EAM functionality.
Whenever an organization level default is required, all EAM modules obtain the default value from this table through the view WIP_EAM_PARAMETERS_V.
WIP_EAM_PERIOD_BALANCESThis table stores summary accounting information for EAM jobs. Each row represents job charges within a given accounting period, and contains the summary values for each cost element. Oracle Work in Process uses this information to report job and schedule values and to calculate job and period variances
WIP_EAM_WORK_REQUESTSThis table stores work request information. It stores work request attributes like priority, contact person, owning department ID etc.
Please note that the details of the work request will be held in WIP_EAM_WORK_REQ_NOTES table.
WIP_EAM_WORK_REQ_NOTESThis table stores change history and audit information for individual work request. When users create a work request, they enter a brief description of the problem. They could subsequently update the work request to shed more light on the problem. All these description and updates are stored in this table.
WIP_EMPLOYEE_LABOR_RATESWIP_EMPLOYEE_LABOR_RATES stores information about employee labor
rates. Each row represents an employee's hourly labor rate as of a
certain effective date. This information is used when you charge a
resource at an actual labor rate rather than the standard cost of the
resource. Information is entered into this table using the Employee
Labor Rates window.
WIP_ENTITIESWIP_ENTITIES stores information about jobs, repetitive assemblies, and
flow schedules. Each row includes a unique entity name, the entity type, and
the assembly being built. Oracle Work in Process uses this
information to control production activities and to ensure that
entities with duplicate names are not created.
WIP_EXCEPTIONSWIP_EXCEPTIONS holds exceptions for job operation combinations.
WIP_FLOW_SCHEDULESWIP_FLOW_SCHEDULES stores Work Order-less Flow schedule information. Each row represents a Flow schedule and contains information about the assembly being built, the assembly revision, the schedule quantity, the status of the Flow schedule, and accounting information. Oracle Work in Process uses this information to control Flow schedule production
WIP_INDICATORS_TEMPWIP_INDICATORS_TEMP is the temporary table that is used to calculate production indicators, such as productivity, utilization, and yield, from transaction information. The table is used as a transient table by the Capture Production Indicators concurrent program for a given date range.
WIP_INTERFACE_ERRORSWIP_INTERFACE_ERRORS stores the text of errors or warnings issued when loading information through the WIP Scheduling and Open Job and
Schedule interfaces. It also stores information about the load
requests that generate the errors. When the WIP Mass Load program loads records from the WIP Scheduling Interface, you can print a report showing these errors

Open PO's to display the information regarding the PO in oracle apps R12

select  
(l.quantity*l.unit_price) "Amount Ordered",
(select sum(aid.amount)
 from ap_invoices_all aia,
      ap_invoice_distributions_all aid
where aia.invoice_id = aid.invoice_id
and   aid.po_distribution_id = d.po_distribution_id)"Amount Billed",
(select sum(aip.amount )
from AP_INVOICE_PAYMENTS_all aip ,
     ap_invoice_distributions_all adi
where aip.invoice_id=adi.invoice_id
and   adi.po_distribution_id= d.po_distribution_id)"Amount Received",

gcc.segment1||'-'||gcc.segment2||'-'||gcc.segment3||'-'||gcc.segment4||'-'||gcc.segment5 "Charge account",
ll.ship_to_location_id "Ship to Location",
l.quantity            "quantity",
ll.quantity          "Ordered Quantity",
ll.quantity_Billed     "Billed Quantity",
ll.quantity_received  "Received Quantity",
h.segment1,
d.po_distribution_id
from  
po.po_headers_all h,  
po.po_lines_all l,  
po.po_line_locations_all ll,  
po.po_distributions_all d,
gl_code_combinations   gcc
where h.po_header_id = l.po_header_id  
and  gcc.code_combination_id=d.code_combination_id
and ll.po_line_id = l.po_Line_id  
and ll.line_location_id = d.line_location_id
and h.segment1='1505'
and h.closed_date is null ;

utl file creation for inventory item in oracle apps R12

CREATE OR REPLACE procedure GE_INV_Out_BAL(Errbuf OUT varchar2,
        Retcode ouT varchar2,
f_id  in number,
t_id  in varchar2
--,dir_name varchar2
) as
cursor c1 is select
msi.segment1 item,
msi.inventory_item_id itemid,
msi.description itemdesc,
msi.primary_uom_code uom,
ood.organization_name name,
ood.organization_id id,
mc . segment1||','||mc.segment2 category
from
mtl_system_items_b msi,
org_organization_definitions ood,
mtl_item_categories mic,
mtl_categories mc
where
msi.organization_id = ood.organization_id
and msi.inventory_item_id = mic.inventory_item_id
and msi.organization_id = mic.organization_id
and mic.category_id = mc.category_id
and msi.purchasing_item_flag = 'Y'
--and msi.inventory_item_id=63
and ood.organization_name='Vision Operations'
and msi.organization_id between f_id and t_id;

x_id utl_file.file_type;

l_count number(5) default 0;

path  varchar2(1000);

--path V$PARAMETER.value%type;

begin
x_id:=utl_file.fopen('Select value into path from V$PARAMETER Where NAME like 'user_dump_dest'','invoutdata10.txt','W');
--select * from v$parameter where name like '%utl_file%'
for x1 in c1 loop
l_count:=l_count+1;
utl_file.put_line( x_id,'"'||
x1.item ||'"-"'||
x1.itemid ||'"-"'||
x1.itemdesc||'"-"'||
x1.uom ||'"-"'||
x1.name ||'"-"'||
x1.id ||'"-"'||
x1.category||'"' );
end loop;
utl_file.fclose(x_id);
Fnd_file.Put_line(Fnd_file.output,'No of Records transferred to the data file :'||l_count);
Fnd_File.Put_line(fnd_File.Output,' ');
Fnd_File.Put_line(fnd_File.Output,'Submitted User name '||Fnd_Profile.Value('USERNAME'));
Fnd_File.Put_line(fnd_File.Output,' ');
Fnd_File.Put_line(fnd_File.Output,'Submitted Responsibility name '||Fnd_profile.value('RESP_NAME'));
Fnd_File.Put_line(fnd_File.Output,' ');
Fnd_File.Put_line(fnd_File.Output,'Submission Date :'|| SYSDATE);
Exception
WHEN utl_file.invalid_operation THEN
fnd_file.put_line(fnd_File.log,'invalid operation');
utl_file.fclose_all;
WHEN utl_file.invalid_path THEN
fnd_file.put_line(fnd_File.log,'invalid path');
utl_file.fclose_all;
WHEN utl_file.invalid_mode THEN
fnd_file.put_line(fnd_File.log,'invalid mode');
utl_file.fclose_all;
WHEN utl_file.invalid_filehandle THEN
fnd_file.put_line(fnd_File.log,'invalid filehandle');
utl_file.fclose_all;
WHEN utl_file.read_error THEN
fnd_file.put_line(fnd_File.log,'read error');
utl_file.fclose_all;
WHEN utl_file.internal_error THEN
fnd_file.put_line(fnd_File.log,'internal error');
utl_file.fclose_all;
WHEN OTHERS THEN
fnd_file.put_line(fnd_File.log,'other error');
utl_file.fclose_all;
End GE_INV_Out_BAL;

ACTIVE USERS EMPLOYEE AND THEIR RESPONSIBILITIES IN ORACLE APPS

SELECT fu.user_name user_name
      ,fu.description user_description
      ,fu.email_address user_email
      ,ppf.full_name employee_name
      ,hou.name business_group
      ,fr.responsibility_name resp_name
FROM apps.fnd_user fu
    ,apps.per_all_people_f ppf
    ,apps.hr_all_organization_units hou
    ,apps.fnd_user_resp_groups_all fur
    ,apps.fnd_responsibility_tl fr
WHERE ppf.person_id = fu.employee_id
AND hou.organization_id = ppf.business_group_id
AND fu.user_id = fur.user_id
AND NVL (fur.end_date, SYSDATE + 1) > SYSDATE
AND fur.responsibility_id = fr.responsibility_id
--AND fr.responsibility_name LIKE 'Shipping User'
AND fr.LANGUAGE = 'US'
ORDER BY fu.user_name
        ,fr.responsibility_name 

Open PO's To display the amount billed , ordered amount , etc in oracle apps R12

Open PO's To display the amount billed , ordered amount , etc in Shipment Level


select  
(l.quantity*l.unit_price) "Amount Ordered",
(select aia.invoice_amount
 from ap_invoices_all aia,
      ap_invoice_distributions_all aid
 where aia.invoice_id = aid.invoice_id
 and   aid.po_distribution_id = d.po_distribution_id) "Amount Billed",
gcc.segment1||'-'||gcc.segment2||'-'||gcc.segment3||'-'||gcc.segment4||'-'||gcc.segment5 "Charge account",
ll.ship_to_location_id "Ship to Location",
l.quantity            "quantity",
d.quantity_ordered    "Ordered Quantity",
d.quantity_billed     "Billed Quantity",
d.quantity_delivered  "Received Quantity"
from  
po.po_headers_all h,  
po.po_lines_all l,  
po.po_line_locations_all ll,  
po.po_distributions_all d,
gl_code_combinations   gcc
where h.po_header_id = l.po_header_id  
and  gcc.code_combination_id=d.code_combination_id
and ll.po_line_id = l.po_Line_id  
and ll.line_location_id = d.line_location_id
and h.segment1='8533'
and h.closed_date is null ;

11i to R12 Replaced Tables in Oracle apps

11i to R12 Replaced Tables in Oracle apps

Following are the join conditions. Use these to 
complete your query. 

SO_HEADERS_ALL -- OE_ORDER_HEADERS_ALL 
SO_LINES_ALL -- OE_ORDER_LINES_ALL 
so_picking_lines_all -- WSH_DELIVERY_DETAILS 
so_picking_line_details -- wsh_delivery_assignments 


WSH_NEW_DELIVERIES.DELIVERY_IDWSH_DELIVERY_ASS IGNMENTS.DELIVERY_ID 

WSH_DELIVERY_DETAILS.DELIVERY_DETAIL_ID WSH_DELIVERY_ASSIGNMENTS.DELIVERY_DETAIL_ID 

WSH_DELIVERY_DETAILS.SOURCE_LINE_ID OE_ORDER_LINES_ALL.LINE_ID 

=================================================================================

RA_CUSTOMERS
The table below lists the corresponding HZ table and column for various columns in the current RA_CUSTOMERS view

Column in RA_CUSTOMERS
Corresponding Table
Column
customer_name
hz_parties
party_name,
customer_id
hz_cust_accounts
cust_account_id
customer_number
hz_cust_accounts
account_number
status
hz_cust_accounts
status
Join Conditions:
HZ_CUST_ACCOUNTS..Party_Id = HZ_PARTIES.Party_Id
RA_ADDRESSES
Column in RA_ADDRESSES
Corresponding Table
Column
address_id
hz_cust_acct_sites_all
cust_acct_site_id
status
hz_cust_acct_sites_all
status
address1
hz_locations
address1
address2
hz_locations
address2
address3
hz_locations
address3
address4
hz_locations
address4
city
hz_locations
city
state
hz_locations
state
postal_code
hz_locations
postal_code
county
hz_locations
county
country
hz_locations
country
language
hz_locations
language
Source Tables:  HZ_PARTY_SITES, HZ_LOCATIONS, HZ_CUST_ACCT_SITES_ALL
Join Conditions:
HZ_CUST_ACCT_SITES_ALL.party_site_id = HZ_PARTY_SITES.party_site_id
HZ_LOCATIONS.location_id = HZ_PARTY_SITES.location_id
RA_SITE_USES
The table below lists the corresponding HZ table and column for various columns in the current RA_SITE_USES view
Column in RA_SITE_USES
Corresponding Table
Column
site_use_id
hz_cust_site_uses
site_use_id
site_use_code
hz_cust_site_uses
site_use_code
status
hz_cust_site_uses
status
address_id
hz_cust_site_uses
cust_acct_site_id

RA_CONTACTS
Column in RA_CONTACTS
Corresponding Table
Column
contact_id
hz_cust_account_roles
cust_account_role_id
status
hz_cust_account_roles
status
customer_id
hz_cust_account_roles
cust_account_id
address_id
hz_cust_account_roles
cust_acct_site_id
first_name
hz_parties
person_first_name
last_name
hz_parties
person_last_name
Source Tables: HZ_CUST_ACCOUNT_ROLES, HZ_PARTY_RELATIONSHIPS, HZ_PARTIES
Join Conditions:
HZ_CUST_ACCOUNT_ROLES.party_id = HZ_PARTY_RELATIONSHIPS.party_id
HZ_CUST_ACCOUNT_ROLES.role_type = 'CONTACT'
HZ_PARTIES.party_id = HZ_PARTY_RELATIONSHIPS.subject_id
RA_CONTACT_ROLES
Column in RA_CONTACT_ROLES
Corresponding Table
Column
contact_id
hz_role_responsibility
cust_account_role_id
usage_code
hz_role_responsibility
responsibility_type
primary_flag
hz_role_responsibility
primary_flag

11i Table
R12 Change
ra_addresses_all
SELECT acct_site.cust_account_id customer_id,     acct_site.cust_acct_site_id address_id
FROM hz_party_sites party_site,
                 hz_loc_assignments loc_assign,
                 hz_locations loc,
                 hz_cust_acct_sites_all acct_site
           WHERE acct_site.party_site_id = party_site.party_site_id
             AND loc.location_id = party_site.location_id
             AND loc.location_id = loc_assign.location_id
             AND NVL (acct_site.org_id, -99) = NVL (loc_assign.org_id, -99)
ra_site_uses_all
SELECT site_use_id, LOCATION, attribute1
 FROM hz_cust_site_uses_all
ra_customers
SELECT cust_acct.cust_account_id customer_id,
                 SUBSTRB (party.party_name, 1, 50) customer_name,
                 cust_acct.account_number customer_number
            FROM hz_parties party, hz_cust_accounts cust_acct
           WHERE cust_acct.party_id = party.party_id



Suppliers:
New R12 tables  -> Old 11i Tables
AP_SUPPLIERS - replaces PO_VENDORS
AP_SUPPLIER_SITES_ALL- replaces PO_VENDOR_SITES_ALL

Additional supplier related tables in IBY (Payments) and HZ (TCA):
IBY_EXTERNAL_PAYEES_ALL - stores Payee(supplier) information.
HZ_PARTIES - Party data for the suppliers.
HZ_PARTY_SITES - Party site data for the supplier sites.

Invoices:

Additional table in R12: AP_INVOICE_LINES_ALL
Allocations - AP_CHRG_ALLOCATIONS_ALL is obsolete in R12

Taxes:

Functionality provided by E-Business Tax
New tables in R12
ZX_LINES - Detailed Tax lines for the invoice (trx_id = invoice_id)
ZX_LINES_SUMMARY - Summary tax lines for the invoice (trx_id = invoice_id)
ZX_REC_NREC_DIST  - Tax distributions for the invoice (trx_id = invoice_id)
ZX_LINES_DET_FACTORS - Tax determination factors for the invoice (trx_id = invoice_id)

Payments:

Functionality moved to central Payments (IBY)
New IBY tables in R12:
IBY_PAY_SERVICE_REQUESTS  - Payment Process Request information

Accounting:

Functionality moved to SubLedger Accounting (SLA)
New R12 tables:
XLA_EVENTS -> replaces AP_ACOCUNTING_EVENTS_ALL 
XLA_AE_HEADERS -> replaces AP_AE_HEADERS_ALL
XLA_AE_LINES-> replaces AP_AE_LINES_ALL
XLA_DISTRIBUTION_LINKS

Trial Balance:

New R12 Table
XLA_TRIAL_BALANCES
AP_LIABILITY_BALANCE-> not used in new R12 transactions
AP_TRIAL_BALANCE -> not used in new R12 transactions

Bank Accounts:

Functionality moved to Cash Management.
CE_BANK_ACCOUNTS -> replaces AP_BANK_ACCOUNTS_ALL
CE_BANK_ACCT_USES_ALL  -> replaces AP_BANK_ACCOUNT_USES_ALL

CE_PAYMENT_DOCUMENTS -> AP_CHECK_STOCKS_ALL

WIP Tables with description

  Table Name Description     WIP_ACCOUNTING_CLASSES stores accounting flexfield information for standard discrete jobs, non-standard asset j...