Search This Blog

Wednesday, 7 September 2016

Oracle Database Tables List SCM

PO - Purchasing
PO_ACTION_HISTORY Document approval and control action history table 
PO_AGENTS Buyers table 
PO_DISTRIBUTIONS_ALL Purchase order distributions 
PO_HEADERS_ALL Document headers (for purchase orders, purchase agreements, quotations, RFQs) 
PO_LINES_ALL Purchase document lines (for purchase orders, purchase agreements, quotations, RFQs) 
PO_LINE_LOCATIONS_ALL Document shipment schedules (for purchase orders, purchase agreements, quotations, RFQs) 
PO_RELEASES_ALL Purchase order releases 
PO_LINES_ARCHIVE_ALL Archived purchase order lines 
PO_LINE_LOCATIONS_ARCHIVE_ALL Archived purchase order shipments 
PO_HEADERS_ARCHIVE_ALL Archived purchase orders 
PO_LINE_TYPES_B Line types 
PO_RELEASES_ARCHIVE_ALL Archived releases 
PO_REQUISITION_HEADERS_ALL Requisition headers 
PO_REQUISITION_LINES_ALL Requisition lines 
PO_REQ_DISTRIBUTIONS_ALL Requisition distributions 
RCV_TRANSACTIONS Receiving transactions 
RCV_SHIPMENT_HEADERS Shipment and receipt header information 
RCV_SHIPMENT_LINES Receiving shipment line information 
INV – Inventory
MTL_CATEGORIES_B Code combinations table for Item Category 
MTL_CATEGORY_SETS_B Category Sets 
MTL_CUSTOMER_ITEMS Customer item Information 
MTL_CUSTOMER_ITEM_XREFS Relationships between customer items and inventory items 
MTL_DEMAND Sales order demand and reservations 
MTL_DEMAND_HISTORIES Sales order demand and reservations 
MTL_ITEM_LOCATIONS Definitions for stock locators 
MTL_ITEM_REVISIONS_B Item revisions 
MTL_ITEM_TEMPLATES_B Item template definitions 
MTL_ITEM_TEMPL_ATTRIBUTES Item attributes and attribute values for a template 
MTL_LOT_NUMBERS Lot number definitions 
MTL_MATERIAL_TRANSACTIONS Material transaction table 
MTL_MATERIAL_TRANSACTIONS_TEMP Temporary table for processing material transactions 
MTL_ONHAND_QUANTITIES_DETAIL FIFO quantities by control level and receipt 
MTL_PARAMETERS Inventory control options and defaults 
MTL_RESERVATIONS Reservations 
MTL_SECONDARY_INVENTORIES Subinventory definitions 
MTL_SECONDARY_LOCATORS Item-subinventory-locator assignments 
MTL_SERIAL_NUMBERS Serial number definitions 
MTL_SYSTEM_ITEMS_B Inventory item definitions 
MTL_TRANSACTION_ACCOUNTS Material transaction distributions 
MTL_TRANSACTION_TYPES Inventory Transaction Types Table 
MTL_TXN_REQUEST_HEADERS Move Order headers table 
MTL_TXN_REQUEST_LINES Move order lines table 
MTL_UNIT_TRANSACTIONS Serial number transactions 
GL- General Ledger 
GL_CODE_COMBINATIONS Stores valid account combinations 
GL_SETS_OF_BOOKS Stores information about the sets of books 
GL_IMPORT_REFERENCES Stores individual transactions from subledgers 
GL_DAILY_RATES Stores the daily conversion rates for foreign currency 
Transactions 
GL_PERIODS Stores information about the accounting periods 
GL_JE_HEADERS Stores journal entries 
GL_JE_LINES Stores the journal entry lines that you enter in the Enter Journals form 
GL_JE_BATCHES Stores journal entry batches 
GL_BALANCES Stores actual, budget, and encumbrance balances for detail and summary accounts 
GL_BUDGETS Stores Budget definitions 
GL_INTERFACE Import journal entry batches 
GL_BUDGET_INTERFACE Upload budget data from external sources 
GL_DAILY_RATES_INTERFACE Import daily conversion rates 
AR- Accounts Receivables 
RA_CUST_TRX_TYPES_ALL Transaction type for invoices, commitments and credit memos 
RA_CUSTOMER_TRX_ALL Header-level information about invoices, debit memos, chargebacks, commitments and credit memos 
RA_CUSTOMER_TRX_LINES_ALL Invoice, debit memo, chargeback, credit memo and commitment lines 
RA_CUST_TRX_LINE_GL_DIST_ALL Accounting records for revenue, unearned revenue and unbilled receivables 
RA_CUST_TRX_LINE_SALESREPS_ALL Sales credit assignments for transactions 
AR_ADJUSTMENTS_ALL Pending and approved invoice adjustments 
RA_BATCHES_ALL 
AR_CASH_RECEIPTS_ALL Detailed receipt information 
AR_CASH_RECEIPT_HISTORY_ALL History of actions and status changes in the life cycle of a receipt 
AR_PAYMENT_SCHEDULES_ALL All transactions except adjustments and miscellaneous cash receipts 
AR_RECEIVABLE_APPLICATIONS_ALL Accounting information for cash and credit memo applications 
AR_TRANSACTION_HISTORY_ALL Life cycle of a transaction 
HZ_CUST_ACCOUNTS Stores information about customer accounts. 
HZ_CUSTOMER_PROFILES Credit information for customer accounts and customer account sites 
HZ_CUST_ACCT_SITES_ALL Stores all customer account sites across all operating units 
HZ_CUST_ACCT_RELATE_ALL Relationships between customer accounts 
HZ_CUST_CONTACT_POINTS This table is no longer used 
HZ_CUST_PROF_CLASS_AMTS Customer profile class amount limits for each currency 
HZ_CUST_SITE_USES_ALL Stores business purposes assigned to customer account sites. 
HZ_LOCATIONS Physical addresses 
HZ_ORG_CONTACTS People as contacts for parties 
HZ_ORG_CONTACT_ROLES Roles played by organization contacts 
HZ_PARTIES Information about parties such as organizations, people, and groups 
HZ_PARTY_SITES Links party to physical locations 
HZ_PARTY_SITE_USES The way that a party uses a particular site or address 
HZ_RELATIONSHIPS Relationships between entities 
HZ_RELATIONSHIP_TYPES Relationship types 
AP- Accounts Payables
AP_ACCOUNTING_EVENTS_ALL Accounting events table 
AP_AE_HEADERS_ALL Accounting entry headers table 
AP_AE_LINES_ALL Accounting entry lines table 
AP_BANK_ACCOUNTS_ALL Bank Account Details 
AP_BANK_ACCOUNT_USES_ALL Bank Account Uses Information 
AP_BANK_BRANCHES Bank Branches 
AP_BATCHES_ALL Summary invoice batch information 
AP_CHECKS_ALL Supplier payment data 
AP_HOLDS_ALL Invoice hold information 
AP_INVOICES_ALL Detailed invoice records 
AP_INVOICE_LINES_ALL AP_INVOICE_LINES_ALL contains records for invoice lines entered manually, generated automatically or imported from the Open Interface. 
AP_INVOICE_DISTRIBUTIONS_ALL Invoice distribution line information 
AP.AP_INVOICE_PAYMENTS_ALL Invoice payment records 
AP_PAYMENT_DISTRIBUTIONS_ALL Payment distribution information 
AP_PAYMENT_HISTORY_ALL Maturity and reconciliation history for payments 
AP_PAYMENT_SCHEDULES_ALL Scheduled payment information on invoices 
AP_INTERFACE_REJECTIONS Information about data that could not be loaded by Payables Open Interface Import 
AP_INVOICES_INTERFACE Information used to create an invoice using Payables Open Interface Import 
AP_INVOICE_LINES_INTERFACE Information used to create one or more invoice distributions 
AP_SUPPLIERS AP_SUPPLIERS stores information about your supplier level attributes. 
AP_SUPPLIER_SITES_ALL AP_SUPPLIER_SITES_ALL stores information about your supplier site level attributes. 
AP_SUPPLIER_CONTACTS Stores Supplier Contacts 
HRMS- Human Resource Management System
HR_ALL_ORGANIZATION_UNITS Organization unit definitions. 
HR_ALL_POSITIONS_F Position definition information. 
HR_LOCATIONS_ALL Work location definitions. 
PER_ADDRESSES Address information for people 
PER_ALL_PEOPLE_F DateTracked table holding personal information for employees, applicants and other people. 
PER_ALL_ASSIGNMENTS_F Allocated Tasks 
PER_ANALYSIS_CRITERIA Flexfield combination table for the personal analysis key flexfield. 
PER_ASSIGNMENT_EXTRA_INFO Extra information for an assignment. 
PER_ASSIGNMENT_STATUS_TYPES Predefined and user defined assignment status types. 
PER_CONTRACTS_F The details of a persons contract of employment 
PER_CONTACT_RELATIONSHIPS Contacts and relationship details for dependents, beneficiaries, emergency contacts, parents etc. 
PER_GRADES Grade definitions for a business group. 
PER_JOBS Jobs defined for a Business Group 
PER_PAY_BASES Definitions of specific salary bases 
PER_PAY_PROPOSALS Salary proposals and performance review information for employee assignments 
PER_PEOPLE_EXTRA_INFO Extra information for a person 
PER_PERIODS_OF_PLACEMENT Periods of placement details for a non-payrolled worker 
PER_PERIODS_OF_SERVICE Period of service details for an employee. 
PER_PERSON_ANALYSES Special information types for a person 
PER_PERSON_TYPES Person types visible to specific Business Groups. 
PER_PERSON_TYPE_USAGES_F Identifies the types a person may be. 
PER_PHONES PER_PHONES holds phone numbers for current and ex-employees, current and ex-applicants and employee contacts. 
PER_SECURITY_PROFILES Security profile definitions to restrict user access to specific HRMS records 
PAY- Payroll
PAY_ACTION_INFORMATION Archived data stored by legislation 
PAY_ALL_PAYROLLS_F Payroll group definitions. 
PAY_ASSIGNMENT_ACTIONS Action or process results, showing which assignments have been processed by a specific payroll action, or process.
PAY_ELEMENT_CLASSIFICATIONS Element classifications for legislation and information needs. 
PAY_ELEMENT_ENTRIES_F Element entry list for each assignment. 
PAY_ELEMENT_ENTRY_VALUES_F Actual input values for specific element entries. 
PAY_ELEMENT_LINKS_F Eligibility rules for an element type. 
PAY_ELEMENT_TYPES_F Element definitions. 
PAY_ELEMENT_TYPE_USAGES_F Used to store elements included or excluded from a defined run type. 
PAY_ORG_PAYMENT_METHODS_F Payment methods used by a Business Group. 
PAY_PAYMENT_TYPES Types of payment that can be processed by the system. 
PAY_PAYROLL_ACTIONS Holds information about a payroll process. 
PAY_PEOPLE_GROUPS People group flexfield information. 
PAY_PERSONAL_PAYMENT_METHODS_F Personal payment method details for an employee. 
PAY_RUN_RESULTS Result of processing a single element entry. 
PAY_RUN_RESULT_VALUES Result values from processing a single element entry. 
PAY_SECURITY_PAYROLLS List of payrolls and security profile access rules. 
PAY_INPUT_VALUES_F Input value definitions for specific elements. 
BOM – Bills Of Material 
BOM_DEPARTMENTS Departments 
BOM_DEPARTMENT_CLASSES Department classes 
BOM_DEPARTMENT_RESOURCES Resources associated with departments 
BOM_OPERATIONAL_ROUTINGS Routings 
BOM_OPERATION_NETWORKS Routing operation networks 
BOM_OPERATION_RESOURCES Resources on operations 
BOM_OPERATION_SEQUENCES Routing operations 
BOM_OPERATION_SKILLS 
BOM_RESOURCES Resources, overheads, material cost codes, and material overheads 
BOM_STANDARD_OPERATIONS Standard operations 
BOM_ALTERNATE_DESIGNATORS Alternate designators 
BOM_COMPONENTS_B Bill of material components 
BOM_STRUCTURES_B Bills of material 
BOM_STRUCTURE_TYPES_B Structure Type master table 
WIP – Work in Process 
WIP_DISCRETE_JOBS Discrete jobs 
WIP_ENTITIES Information common to jobs and schedules 
WIP_LINES Production lines 
WIP_MOVE_TRANSACTIONS Shop floor move transactions 
WIP_MOVE_TXN_ALLOCATIONS Move transaction allocations for repetitive schedules 
WIP_OPERATIONS Operations necessary for jobs and schedules 
WIP_OPERATION_NETWORKS Operation dependency 
WIP_OPERATION_OVERHEADS Overheads for operations in an average costing organization 
WIP_OPERATION_RESOURCES Resources necessary for operations 
WIP_OPERATION_YIELDS This table keeps all costing information for operation yield costing. 
WIP_TRANSACTIONS WIP resource transactions 
WIP_TRANSACTION_ACCOUNTS Debits and credits due to resource transactions

Thursday, 24 May 2012

Order Status / Delivery / Trip / Site

SELECT DISTINCT hcsu.LOCATION,
                a.ship_to_org_id,
                a.header_id,
                a.order_number,
                a.flow_status_code,
                a.cust_po_number,
                a.orig_sys_document_ref,
                a.attribute8 customer,
                a.creation_date,
                d.delivery_id,
                d.attribute13,
                b.released_status,
                wtv.trip_id,
                a.flow_status_code header_flow_status_code,
                d.last_update_date
FROM            oe_order_headers_all a,
                wsh_delivery_details b,
                wsh_delivery_assignments c,
                wsh_new_deliveries d,
                wsh_trips wtv,
                wsh_trip_stops pickup_stop,
                wsh_delivery_legs dl,
                hz_cust_accounts hca,
                hz_cust_acct_sites_all hcs,
                hz_cust_site_uses_all hcsu
WHERE           1 = 1
AND             hca.cust_account_id = hcs.cust_account_id
AND             a.header_id = b.source_header_id
AND             hcsu.site_use_id = a.ship_to_org_id
AND             hcs.cust_acct_site_id = hcsu.cust_acct_site_id
AND             hcsu.site_use_code = 'SHIP_TO'
AND             hcsu.status = 'A'
AND             a.header_id = b.source_header_id
AND             b.delivery_detail_id = c.delivery_detail_id
AND             c.delivery_id = d.delivery_id
AND             pickup_stop.stop_id = dl.pick_up_stop_id
AND             pickup_stop.trip_id = wtv.trip_id
AND             d.delivery_id = dl.delivery_id;

Monday, 23 May 2011

GS - Functional Group Header GS Segment..EDI


Interchange Control Enveloping Structure
GS - Functional Group Header
GS Segment

TRANSACTION SET: All Transactions (Interchange Control)
MAX USE/LOOPS: 1 per functional group/as required
PURPOSE: To start and identify a group of related transaction sets and provide control and application identification information.
GENERAL INFORMATION: Strict compliance and agreement on content by trading partners is required.
EXAMPLE: GS*SH*001222333*006414361*860123*1226*32*X*002040 N/L
Element IDElement Number  Element NameFeatures  Comments
GS01479Functional IDM ID 02/02"PO", "QG", "IN", "SH", "AG", "RC" or "FA"
GS02142Application Sender CodeM ID 02/12Use DUNS number
GS03124Application Receiver CodeM ID 02/12Use "006414361".
GS0429Data Interchange DateM DT 06/06Date created (YYMMDD)
GS0530Data Interchange TimeM TM 04/04Time created (HHMM)
GS0628Data Interchange Control numberM NO 01/09Start with 1 and increment by 1
for each subsequent GS segment between interchange and application sender and receiver combinations.
GS07455ResponsibilityM ID 01/02Use "X" for ANSI X12 code format
GS08480VersionM ID 01/12Refer to the discussion on version ID's. See each document for versions supported by ArvinMeritor.

ISA - Interchange Control Header ISA Segment..EDI


Interchange Control Enveloping Structure
ISA - Interchange Control Header
ISA Segment

TRANSACTION SET: All Transactions (Interchange Control)
MAX USE/LOOPS: 1 per interchange/none
PURPOSE: To start and identify an interchange of one or more functional groups and interchange-related control segments.
GENERAL INFORMATION: The actual values of the data element separator and the data segment terminator for this interchange are set by the interchange control header. In the segment diagram below, the data element separator is represented by the "*" character, and the data segment terminator is represented by the "N/L" character. For a particular interchange, the value at the fourth character position is the data element separator, and the value of the last character position is the value of the data segment terminator. The extent of this particular usage of the data element separator and the data segment terminator is from this header to and including the next interchange trailer.
The interchange control number value in this header must match the value in the same data element in the corresponding interchange control trailer.
The first occurrence of the data element separator (byte 4) defines the actual value of the data element separator and is graphically displayed as an asterisk "*". The first occurrence of the segment terminator, 1 byte after the data element ISA16, defines the actual value of the data segment terminator and is graphically displayed as "N/L".
EXAMPLE:  ISA*00* *00* *01*202145445 *01*
062442561 *960421*1550*U*00200*000000001*0*P* N/L
Element IDElement Number  Element Name  Features Comments
ISA0744Authorize Info QualifierM ID 02/02Use "00"
ISA02745Authorize InfoM AN 10/10Use ten spaces
ISA03746Security Info. QualifierM ID 02/02Use "00" for no password
ISA04747Security Info.M AN 10/10Use ten spaces
ISA05704Interchange ID QualifierM ID 02/02Use "01", "12", or "ZZ"
ISA06705Interchange Sender IDM ID 15/15DUNS number if ISA05="01".
Left justify, space fill.
ISA07704Interchange ID QualifierM ID 02/02Use "01".
ISA08706Interchange Receiver IDM ID 15/15ArvinMeritor DUNS number "006414361".
ISA09373DateM DT 06/06Date of creation (YYMMDD).
ISA10337TimeM TM 04/04Time of creation (HHMM).
ISA11726Interchange Standards IDM ID 01/01Use "U" for USA.
ISA12703Interchange Version IDM ID 05/05Use "00200".
ISA13709Interchange Control NumberM NO 09/09Sequential number starting with 000000001 and incremented by 1 for each subsequent ISA between sender and receiver.
ISA14749AcknowledgeM ID 01/01Use "0" for no Ack. Req.
ISA15748Test IndicatorM ID 01/01Use "T" for test data and "P" for production data.
ISA16701Sub-element SeparatorM AN 01/01Use "*".

EDI Database Tables...


Trading Partner Tables
============================
1) ECE_TP_GROUP 
2) ECE_TP_HEADERS 
3) ECE_TP_DETAILS 


Code Conversion Category = ECE_XREF_CATEGORIES
Assign Category >>Column = ECE_INTERFACE_COLUMNS
Code Conversion Values =  ECE_XREF_DATA
Interface file Definition >> Header column = ECE_EXTERNAL_LEVELS 
Interface file Definition >> Interface column = ECE_INTERFACE_COLUMNS
Interface file Definition >> Process Rules = ECE_PROCESS_RULES 
Interface file Definition >> Column Rules = ECE_COLUMN_RULES 


Other Important tables
========================
1) ECE_ERROR 
2) ECE_MAPPINGS 
3) ECE_OUTPUT
4) ECE_STAGE 
5) ECE_RULE_LIST 
6) ECE_RULE_LIST_DETAILS 
7) ece_po_interface_headers


810-INI tables
================
1) ap_invoices_interface
2) ap_invoice_lines_interface
3) ap_invoices_all


810-INO tables
================
1) ra_customer_trx_all
2) ra_customer_trx_lines_all


820- Electronic Fund Transfer
=============================
1) ap_checks_all
2) ce_bank_accounts


850- POI
=========
1) OE_HEADERS_INTERFACE_ALL
2) OE_LINES_INTERFACE_ALL
3) SO_HEADERS_INTERFACE_ALL
3) SO_LINES_INTERFACE_ALL 



855-POAO
==============
1) oe_header_acks
2) oe_line_acks

Cross-references in oracle...


Cross-reference types define relationships between items and entities such
     as old item numbers or supplier item numbers.
     
     For example, you can create a cross-reference type Old to track the old
     item numbers, and a type Supplier to track supplier part numbers.
     
     To define a cross-reference type:
          
          1. Navigate to the Cross-Reference Types window:
            
             Inventory>Items>Cross References
          
          2. Enter a unique cross-reference type name.
          
          3. Save your work.
     
     To make a cross-reference type inactive:
            
            o    Enter the date on which the cross-reference type becomes inactive.
          
          As of this date, you cannot assign this cross-reference type to an
          item.
     
     To delete a cross-reference type:
            
            o    You can delete a cross-reference if any item has not used it.
     
     To assign a cross-reference type:
            
            o    Choose the Assign button.

ECE_ERROR_CODE (ERROR_CODE=-1) SQL error message ORA-00001: unique constraint (EC.ECE_AR_TRX_HEADERS_U1) violated. ..EDI


Oracle EDI Gateway - Version: 11.5.3 to 11.5.10
This problem can occur on any platform.
EXECUTABLE:ECEINO - OUT: Invoice (810/INVOIC)
ConcurrentProgram:ECECDMO - OUT: Credit/Debit Memo (812)
Symptoms


810 Outbound completes in error with:
ECE_ERROR_CODE (ERROR_CODE=-1) 
SQL error message ORA-00001: unique constraint (EC.ECE_AR_TRX_HEADERS_U1) 
violated. 
Program Error: PL/SQL position not found for to_char(g_error_count). 
Program Info: Value: p_apps_tbl(g_error_count).value 
Program Info: Data Type: p_apps_tbl(g_error_count).data_type 
Program Info: Column Name: to_char(g_error_count).base_column_name 
Program level 2580-70: Please check the log file, correct the problem, and try 
again. 
Cause


Each row in ECE_AR_TRX_HEADERS is purged after the data is written to the data file. 
In this case that table was not purged from a previous run of the 810 Outbound (INO)
Solution


1.  Remove the records from ECE_AR_TRX_HEADERS and ECE_AR_TRX_LINES table from the previous run.  
2.  Run 810 Outbound again to pick up the records.