Doc Category TABLE name
Dear Members :
While creating Bill of Lading and Packing Slip document Category, can I mention OE_TRANSACTION_TYPES_ALL as the table name, could you please guide ? As this can not be changed later on.
Thanks in advance.
Atanu
That's exactly trying to achieve. As otherwise, WSH_DOCUMENT_INSTANCES is the table name out-of-box. So in order to make this custom numbering of BOL, PKSLP, by order type what more steps need to define - if you could please tell, do appreciate it very much. Of course this is to acknowledge your reply, if that link provides them, I am more than happy.
Just one more thing in doing so or rather bypassing WSH_DOCUMENT_INSTANCES with OE_TRANSACTION_TYPES_ALL, am I going to invite trouble later ?
Thanks very much.
Atanu
Similar Messages
-
What is Table name in Process deff reffers to?
Its design doc
See we have a application to be intergrated and for that I need to provision some details to AD custom Attributes.
Now to represent that app
1.I created a RO as application
2.Created a process deff and in the object name I added the app name.Now as per this doc the table name field has to have a value UD_appname.
Now when I enter this UD_appname and try to save it gives me error as stated -
SAP Business One Ver. 9.0 SQL Table Name
Dear All,
This is useful SQL Table Name for SAP Business One Ver.9.0 in details
Name Description
AAC1 Asset Classes - Depreciation Areas - History
AACP Periods Category-Log
AACS Asset Classes - History
AACT G/L Account - History
AAD1 Administration Extension-Log
AADM Administration - Log
AADT Fixed Assets Account Determination - History
ABAT Attribute - History
ABFC Bin Field Configuration - History
ABIN Bin Location - History
ABO1 External Bank Operation Code - Rows - Log
ABOC External Bank Operation Code - Log
ABOE Bill of Exchange for Payment - History
ABP1 Business Place Tax IDs
ABP2 Branch Tributary Info. Log
ABPL Business Place
ABSL Warehouse Sublevel - History
ABT1 Internal Bank Operation Codes - Accounts - Log
ABTC Internal Bank Operation Codes - Log
ABTN Batch Numbers Master Data
ABTW Batch Attributes in Location
ACD1 Credit Memo - Rows
ACD2 Credit Memo - Area Journal Transactions
ACD3 Credit Memo - Item Areas
ACFP CFOP for Nota Fiscal
ACH1 Checks for Payment - Rows - History
ACHO Checks for Payment - History
ACP1 Campaign - BPs
ACP2 Campaign - Items
ACP3 Campaign - Partners
ACPN Campaign
ACPR Contact Persons - History
ACQ1 Capitalization - Rows
ACQ2 Capitalization - Area Journal Transactions
ACQ3 Capitalization - Item Areas
ACR1 Business Partner Addresses - History
ACR2 Bussiness Partners - Payment Methods-History
ACR3 Business Partner Control Accounts - History
ACR4 Allowed WTax Codes for BP - History
ACR5 BP Payment Dates
ACR7 Fiscal IDs for BP Master Data
ACRB Business Partner Bank Accounts - History
ACRC Credit Cards
ACRD Business Partners - History
ACS1 Asset Classes - Depreciation Areas
ADG1 Discount Groups Rows
ADM1 Administration Extension
ADM2 Administration Electronic Report
ADMC GL Account Determination - Criteria - History
ADNF DNF Code
ADO1 A/R Invoice (Rows) - History
ADO10 A/R Invoice - Row Structure - History
ADO11 A/R Inv (Drawn Dpm Det) - Hist
ADO12 A/R Invoice - Tax Extension - History
ADO13 A/R Invoice Rows - Distributed Expenses
ADO14 Invoice - Assembly - Rows - History
ADO15 A/R Inv (Drawn Dpm Applied) - Hist
ADO16 Draft - SnB properties
ADO17 A/R Invoice - Import Process - History
ADO18 A/R Invoice - Export Process - History
ADO19 Bin Allocation Data - History
ADO2 A/R Invoice - Freight - Rows
ADO20 Intrastat Expenses
ADO3 A/R Invoice - Freight - History
ADO4 Documents - Tax - History
ADO5 Withholding Tax - History
ADO6 Documents History - Installments
ADO7 Delivery Packages - History
ADO8 Items in Package - History
ADO9 A/R Invoice (Rows) - History
ADOC Invoice - History
ADPA Fixed Asset Depreciation Areas - History
ADS1 House Bank Accounts
ADT1 Depreciation Types - Rows - History
ADTP Fixed Assets Depreciation Types - History
AEC1 Parameters for Various Types of Electronic Communication
AEC2 Messages Processed via Electronic Communication
AEC3 Statuses and Logs for Actions in Electronic Communication
AECM Electronic Communication Types or Protocols
AEDG Discount Groups
AEXD Freight Setup
AFA1 Asset Document - Rows
AFA2 Asset Document - Area Journal Transactions
AFAD Asset Document - History
AFM1 Tax Formula Parameter Declaration
AFML Tax Formula Master Table
AFPR Posting Period-Log
AGAR G/L Account Advanced Rules - History
AHE1 Absence Information
AHE2 Education
AHE3 Employee Reviews
AHE4 Previous Employment
AHE6 Employee Roles
AHE7 Savings Payments
AHEM Employees
AIGW Item Group - Warehouse - History
AIN1 Inventory Counting - Rows
AIN2 Inventory Counting - UoM
AIN3 Inventory Count - SnB
AINC Inventory Stock Counting
AINS Customer Equipment Card - History
AIQI Inventory Initial Quantity
AIQR Inventory Stock Posting (Reconcile)
AIT1 Item - Prices - History
AIT11 Asset Item Period Control
AIT13 Asset Attributes
AIT2 Items - Multiple Preferred Vendors - History
AIT3 Items - Localization Fields - History
AIT5 Asset Item Projects - History
AIT6 Asset Item Distribution Rules
AIT7 Asset Item Depreciation Params - History
AIT8 Asset Item Balances - History
AIT9 Item - UoM Prices
AITB Item Groups - History
AITM Items - History
AITT Product Tree - History
AITW Items - Warehouse - History
AJD1 Journal Entry - History - Rows
AJD2 Withholding Tax - History
AJDT Journal Entry - History
AKL1 Pick List - Rows - History
AKL2 Pick List for SnB and Bin Details
ALR2 Dynamic message data row
ALR3 Dynamic message data cells
AMD1 Amout Differences Report Lines
AMDR Manual Distribution Rule
AMDR1 Manual Distribution Rule - Rows
AMGP Material Group
AMR1 Inventory Revaluation - History - Rows
AMR2 Inventory Revaluation FIFO Rows (Archive)
AMR3 Inventory Revaluation SNB
AMRV Inventory Revaluation - History
ANCM NCM Code
AOA1 Blanket Agreement - Rows
AOA2 Blanket Agreement - Details
AOA3 Item Details: Activity
AOA4 Blanket Agreement - Recurring Transactions
AOAT Blanket Agreement
AOC1 Distribution Rule - Rows
AOCR Distribution Rule
AOPR Sales Opportunity
APJ1 Project Plan Steps
APJ2 Project Plan Steps Time Record
APJT Project Plan
APKL Pick List - History
APLN Price Lists
APRC Cost Center
APRJ Project Codes
AQI1 Inventory Initial Qty Rows
AQI2 Inventory Count - SnB
AQR1 Inventory Stock Posting (Reconcile) Lines
AQR2 Inventory Counting - UoM
AQR3 Inventory Count - SnB
ARC1 Incoming Payment - Checks - History
ARC2 Incoming Payment - Invoices - History
ARC3 Credit Vouchers History
ARC4 Incoming Payment - Account List - History
ARC5 Reciept log vat adjustment-History
ARC6 Incoming Payments - WTax Rows - History
ARC7 Incoming Payments - Tax Amount per Document - History
ARC8 Incoming Payment - TDS Entries - History
ARCT Incoming Payment - History
ARI1 Add-On
ASC1 Service Call Solutions - History
ASC2 Service Call Inventory Expenses - History
ASC3 Service Call Travel/Labor Expenses - History
ASC4 Service Call Travel/Labor Expenses - History
ASC5 Service Call Activities - History
ASCL History
ASGP Service Group for Brazil
ASP1 Special Prices - Data Areas
ASP2 Special Prices - Quantity Areas
ASPP Special Prices
ASRN Serial Numbers Master Data
AST1 Sales Tax Codes - Rows
ASTC Sales Tax Codes
ASTT Sales Tax Authorities Type
ATC1 Attachments - Rows
ATHL Thresholds
ATSC CST Code for Nota Fiscal
ATT1 Bill of Materials - Component Items - History
ATX1 Tax Invoice - History - Rows
ATX2 Tax Invoice Operation Codes
ATXI Tax Invoice - History
AUG1 UoM Group Detail
AUGP UoM Group
AUOM UoM Master Data
AUSR Archive Users - History
AVT1 Tax Definition
AVTG Tax Definition
AWEX Workflow Engine Execution Entity
AWFQ SWFQ History Table
AWH1 Tax Definition
AWH2 WTax Definition - Rows2
AWH3 Value Range
AWHS Warehouses - History
AWHT Withholding Tax
AWL1 Potential Processor of Tasks
AWL2 Input data for tasks
AWL3 Task Notes
AWL4 Task Output Data
AWL5 Task Field Mapping Information
AWLS Workflow - Task Details
AWMG Workflow Manager
AWO1 Production Order (Rows) - History
AWO2 Production Order - Base
AWOR Production Order - History
AWTS Workflow Engine Task Table
BGT1 Budget - Rows
BGT2 Budget - Cost Accounting
BGT3 Budget - Cost Accounting Rows
BNK1 Bank Statement - Documents List
BNK2 Bank Statement - Recommendation List
BOC1 External Bank Operation Code - Rows
BOE1 Bill of Exchange for Payment - Rows
BOT1 Bill of Exchange Transactions
BOX1 Box Definition - Rows
BOX2 Box Definition - Accounts
BOX3 Box Definition - Choice
BOX4 Box Definition - Contra Accounts of Accounts
BPL1 Branch I.E. Numbers
BPL2 Branch Tributary Info.
BTC1 Internal Bank Operation Codes - Accounts
BTF1 Journal Voucher - Rows
BTF2 Journal Voucher Withholding Tax - History
CASE Internal Recon. Upgrade 2007A
CASE1 Internal Recon. Upgrade 2007A
CCAL Chinese Chart of Account Level Definition
CCFG Company Configuration
CCPD Period-End Closing
CCS1 Cycle Count Determination- Subtable
CDC1 Cash Discount - Rows
CDIC Dictionary
CFH1 Cash Flow Statement Report - History - Rows
CFUS Functionality Usage Statistics
CHD1 Checks for Payment Drafts - Rows
CHO1 Checks for Payment - Rows
CHO2 Checks for Payment - Print Status
CIF1 Country Specific Information
CIN1 Correction Invoice - Rows
CIN10 Correction Invoice - Row Structure
CIN12 Correction Invoice - Tax Extension
CIN13 Correction Invoice Rows - Distributed Expenses
CIN17 Correction Invoice - Bin Allocation Data
CIN18 Correction Invoice - Export Process
CIN19 Correction Invoice - Bin Allocation Data
CIN2 A/R Correction Invoice - Freight - Rows
CIN20 Intrastat Expenses
CIN3 A/R Correction Invoice - Freight
CIN4 Correction Invoice - Tax Amount per Document
CIN5 A\R Correction Invoice - Withholding Tax
CIN6 Correction Invoice - Installments
CIN7 Delivery Packages - Correction Invoice
CIN8 Items in Package - Correction Invoice
CIN9 Correction Invoice - Drawn Dpm
CPI1 A/P Correction Invoice - Rows
CPI10 A/P Correction Invoice - Row Structure
CPI12 A/P Correction Invoice - Tax Extension
CPI13 A/P Correction Invoice Rows - Distributed Expenses
CPI14 A/P Correction Invoice - Assembly - Rows
CPI15 A/P Corr Inv - Drawn Dpm Appld
CPI16 A/P Corr. Inv - SnB properties
CPI17 A/P Correction Invoice - Import Process
CPI18 A/P Correction Invoice - Export Process
CPI19 A/P Correction Invoice - Bin Allocation Data
CPI2 A/P Correction Invoice - Freight - Rows
CPI20 Intrastat Expenses
CPI3 A/P Correction Invoice - Freight
CPI4 A/P Correction Invoice - Tax Amount per Document
CPI5 Withholding Tax Data
CPI6 Documents History - Installments
CPI7 A/P Correction Invoice - Delivery Packages
CPI8 A/P Correction Invoice - Items in Package
CPI9 A/P Corr. Invoice - Drawn Dpm
CPL1 Quick Copy - Instance Log
CPN1 Campaign - BPs
CPN2 Campaign - Items
CPN3 Campaign - Partners
CPT1 Cockpit Subtable
CPV1 A/P Correction Invoice Reversal - Rows
CPV10 A/P CrIn Rev - Row Structure
CPV12 A/P Correction Invoice Reversal - Tax Extension
CPV13 A/P Correction Invoice Reversal Rows - Distributed Expenses
CPV14 A/P Correction Invoice Reversal - Assembly - Rows
CPV15 A/P CrIn Rev - Drawn Dpm Appld
CPV16 A/P Correction Invoice Reversal - SnB properties
CPV17 A/P Correction Invoice Reversal - Import Process
CPV18 A/P Correction Invoice Reversal - Export Process
CPV19 A/P Correction Invoice Reversal - Bin Allocation Data
CPV2 A/P Correction Invoice Reversal - Freight - Rows
CPV20 Intrastat Expenses
CPV3 A/P Correction Invoice Reversal - Freight
CPV4 A/P Correction Invoice Reversal - Tax Amt per Doc.
CPV5 A/P Correction Invoice Reversal - WTax
CPV6 A/P Correction Invoice Reversal - Installments
CPV7 A/P Corr Inv Rvsl - Deliv Pkgs
CPV8 A/P Correction Invoice Reversal - Items in Package
CPV9 A/P Corr Inv Rvrsl - Drawn Dpm
CRD1 Business Partners - Addresses
CRD2 Bussiness Partners - Payment Methods
CRD3 BP Control Account
CRD4 Allowed WTax Codes for BP
CRD5 BP Payment Dates
CRD6 BP's Payer Name
CRD7 Fiscal IDs for BP Master Data
CRD8 BP Branch Assignment
CRD9 OCRD Extension
CSI1 A/R Correction Invoice - Rows
CSI10 A/R Correction Invoice - Row Structure
CSI12 A/R Correction Invoice - Tax Extension
CSI13 A/R Correction Invoice Rows - Distributed Expenses
CSI14 A/R Correction Invoice - Assembly - Rows
CSI15 A/R Corr Inv - Drawn Dpm Appld
CSI16 A/R Corr. Inv. - SnB properties
CSI17 A/R Correction Invoice - Import Process
CSI18 A/R Correction Invoice - Export Process
CSI19 A/R Correction Invoice - Bin Allocation Data
CSI2 A/R Corr Inv - Freight - Rows
CSI20 Intrastat Expenses
CSI3 A/R Correction Invoice - Freight
CSI4 A/R Correction Invoice - Tax Amount Per Document
CSI5 A/R Correction Invoice - Withholding Tax
CSI6 A/R Corr. Inv. - Installments
CSI7 A/R Corr. Inv. Deliv. Pkgs
CSI8 A/R Corr. Inv. - Items in Pkg
CSI9 A/R Corr. Inv. - Drawn Dpm
CSN1 Certificate Series - Series
CSPI Solution Packager Information
CSTN Workstation ID
CSV1 A/R Correction Invoice Reversal - Rows
CSV10 A/R Correction Invoice Reversal - Row Structure
CSV12 A/R Correction Invoice Reversal - Tax Extension
CSV13 A/R Correction Invoice Reversal Rows - Distributed Expenses
CSV14 A/R Correction Invoice Reversal - Assembly - Rows
CSV15 A/R CrIn Rev - Drawn Dpm Appld
CSV16 A/R Correction Invoice Reversal - SnB properties
CSV17 A/R Correction Invoice Reversal - Bin Allocation Data
CSV18 A/R Correction Invoice Reversal - Export Process
CSV19 A/R Correction Invoice Reversal - Bin Allocation Data
CSV2 A/R Correction Invoice Reversal - Freight - Rows
CSV20 Intrastat Expenses
CSV3 A/R Correction Invoice Reversal - Freight
CSV4 A/R Correction Invoice Reversal - Tax Amount Per Document
CSV5 A/R Correction Invoice Reversal - WTax
CSV6 A/R Correction Invoice Reversal - Installments
CSV7 A/R Correction Invoice Reversal - Delivery Packages
CSV8 A/R Correction Invoice Reversal - Items in Package
CSV9 A/R CrIn Rev - Drawn Dpm
CTG1 Installment Layout
CTNS Transaction Notification Setting
CTR1 Service Contract - Items
CTR2 Service Contract - Recurring Transactions
CUL1 Customer Usage Statistics Log
CUMF Folder
CUMI My Menu Items
DAB1 Dashboard Queries
DADB Data Archive DSA Balance
DAR1 Data Archive - Transaction Log
DAR2 Data Archive - Transaction Log
DAR3 Data Archive - Handwritten Documents
DATB Data Archive Tax Balance
DBADM Read-Only DB User
DDT1 Withholding Tax Deduction Hierarchy - Rows
DGP1 Customer List
DGP2 Expanded Selection Criteria
DGP3 Expanded Consolidation Options
DGP4 Business Place List
DGP5 Sort By List
DLN1 Delivery - Rows
DLN10 Delivery - Row Structure
DLN12 Delivery - Tax Extension
DLN13 Delivery Rows - Distributed Expenses
DLN14 Delivery Notes - Assembly - Rows
DLN15 Delivery - Drawn Dpm Applied
DLN16 Delivery - SnB properties
DLN17 Delivery - Import Process
DLN18 Delivery - Export Process
DLN19 Delivery - Bin Allocation Data
DLN2 Delivery Notes - Freight - Rows
DLN20 Intrastat Expenses
DLN3 Delivery Notes - Freight
DLN4 Delivery - Tax Amount per Document
DLN5 Delivery - Withholding Tax
DLN6 Delivery - Installments
DLN7 Delivery Packages
DLN8 Items in Package - Delivery
DLN9 Delivery - Drawn Dpm
DMW1 Query List
DOC20 Intrastat Expenses
DPI1 A/R Down Payment - Rows
DPI10 A/R Down Payment - Row Structure
DPI11 A/R DP - Drawn Dpm Detail
DPI12 Down Payment In - Tax Extension
DPI13 A/R Down Payment Rows - Distributed Expenses
DPI14 A/R Down Payment - Assembly - Rows
DPI15 A/R DP - Drawn Dpm Applied
DPI16 A/R Down Payment - SnB properties
DPI17 A/R Down Payment - Import Process
DPI18 A/R Down Payment - Export Process
DPI19 A/R Down Payment - Bin Allocation Data
DPI2 A/R Down Payment - Freight - Rows
DPI20 Intrastat Expenses
DPI3 A/R Down Payment - Freight
DPI4 A/R Down Payment - Tax Amount per Document
DPI5 A/R Down Payment - Withholding Tax
DPI6 A/R Down Payment - Installments
DPI7 Delivery Packages - A/R Down Pymt
DPI8 Items in Package - A/R Down Pmt.
DPI9 Down Payment Incoming - Drawn Dpm
DPO1 A/P Down Payment - Rows
DPO10 A/P Down Payment - Row Structure
DPO12 Down Payment - Tax Extension
DPO13 A/P Down Payment Rows - Distributed Expenses
DPO14 A/P Down Payment - Assembly - Rows
DPO15 A/P DP - Drawn Dpm Applied
DPO16 A/P Down Payment - SnB properties
DPO17 A/P Down Payment - Import Process
DPO18 A/P Down Payment - Export Process
DPO19 A/P Down Payment - Bin Allocation Data
DPO2 A/P Down Payment - Freight - Rows
DPO20 Intrastat Expenses
DPO3 A/P Down Payment - Freight
DPO4 A/P Down Payment - Tax Amount per Document
DPO5 A/P Down Payment - Withholding Tax
DPO6 Down Payment Out - Installments
DPO7 Delivery Packages - A/P Down Pymt
DPO8 Items in Package - A/P Down Pmt.
DPO9 Down Payment Outgoing - Drawn Dpm
DPS1 Deposit - Rows
DRF1 Draft - Rows
DRF10 Draft - Row Structure
DRF12 Draft - Tax Extension
DRF13 Draft Rows - Distributed Expenses
DRF14 Draft - Assembly - Rows
DRF15 Draft - Drawn Dpm Applied
DRF16 Draft - SnB - Rows
DRF17 Draft - Import Process
DRF18 Draft - Export Process
DRF19 Draft - Bin Allocation Data
DRF2 Draft - Freight - Rows
DRF20 Intrastat Expenses
DRF3 Draft - Freight
DRF4 Draft Documents - Tax
DRF5 Draft Documents - Withholding Tax
DRF6 Document Drafts - Installments
DRF7 Delivery Packages - Drafts
DRF8 Items in Package - Draft
DRF9 Document Draft - Drawn Dpm
DRN1 Depreciation Run - Posting
DRN2 Depreciation Run - Posting - Asset
DSC1 House Bank Accounts
DTP1 Depreciation Types - Rows
DUT1 Dunning Term Array1
DWZ1 Dunning Wizard Array1 - BP Filter
DWZ2 Dunning Wizard Array 2-Invoice Filter
DWZ3 Dunning Wizard Array 3 - Recommended Service Invoice
ECM1 Parameters for Various Types of Electronic Communication
ECM2 Messages Processed via Electronic Communication
ECM3 Statuses and Logs for Actions in Electronic Communication
EDG1 Discount Groups Rows
EJB1 ERV-JAb Wizard Signing Persons
EJB2 Docs List for ERV-JAb Wizard
EJD1 ERV-JAb Signing Persons List
EOY1 End of Year UDOs
ERX1 Excise Registering Number-Rows
FAA1 Asset Attributes - Rows
FAC1 Fixed Asset Parameter Change - Rows
FAC2 Fixed Asset Parameter Change - Period Control Change
FAM1 Fixed Asset Data Migration - Rows
FAR1 Fixed Asset Revaluation - Rows
FCT1 Sales Forecast - Rows
FIX1 Fixed Asset Transaction - Rows
FLT1 856 Report - Selection Criteria
FML1 Tax Formula Parameter Declaration
FRC1 Extend Cat. f. Financial Rep.
FTR1 Transfer - Rows
FTR2 Transfer - Area Journal Transactions
FTR3 Transfer - Item Areas
GBI1 GBI Row 1 - Electronic Account Book
GBI10 GBI Row 10 - Enterprise's Cash Flow Statement
GBI11 GBI Row 11 - Devalue Provision of Enterprise Assets
GBI12 GBI Row 12 - Shareholder's Rights and Interests Changing Report
GBI13 GBI Row 13 - Enterprise's Profit Distribution Report
GBI14 GBI Row 14 - Small Enterprise's Cash Flow Statement
GBI15 GBI Row 15 - Enterprise's VAT Payable Detail Report
GBI16 GBI Row 16 - Employees
GBI2 GBI Row 2 - G/L Account Master Records
GBI3 GBI Row 3 - Departments
GBI4 GBI Row 4 - Business Partners
GBI5 GBI Row 5 - Projects
GBI6 GBI Row 6 - G/L Account Balance
GBI7 GBI Row 7 - Accounting Vouchers
GBI8 GBI Row 8 - Enterprise's Balance Sheet
GBI9 GBI Row 9 - Enterprise's Profit and Loss Statement
GFL1 Grid Filter Rules
GFL2 Grid Filter Name
GPA1 Gross Profit Adjustment - Log
GPA2 Gross Profit Adjustments - Parameters
GTI1 GTS Invoice Details
GTM1 GTS Mapping Object Details
HEM1 Absence Information
HEM2 Education
HEM3 Employee Reviews
HEM4 Previous Employment
HEM5 Employee Data Ownership Authorization
HEM6 Employee Roles
HEM7 Savings Payments
HET1 Employee Transfer Details
HLD1 Holiday Dates
HMM1 Child Table of OHMM
HMM2 Child Table of OHHM
HTM1 Team Members
IBT1 Batch Number Transactions
ICD1 Inventory Counting Draft - Rows
ICD2 Inventory Counting Draft - UoM
ICD3 Inventory Count Draft - SnB
IEI1 Incoming Excise Invoice - Rows
IEI10 Incoming Excise Invoice - Row Structure
IEI11 IEI - Drawn Dpm Detail
IEI12 Incoming Excise Invoice - Tax Extension
IEI13 Incoming Excise Invoice Rows - Distributed Expenses
IEI14 Incoming Excise Invoice - Assembly - Rows
IEI15 IEI - Drawn Dpm Applied
IEI16 Incoming Excise Invoice - SnB properties
IEI17 Incoming Excise Invoice - Import Process
IEI18 Incoming Excise Invoice - Export Process
IEI19 Incoming Excise Invoice - Bin Allocation Data
IEI2 Incoming Excise Invoice - Freight - History - Rows
IEI20 Intrastat Expenses
IEI3 IEI - Freight
IEI4 Incoming Excise Invoice - Tax Amount per Document
IEI5 Incoming Excise Invoice - Withholding Tax
IEI6 IEI - Installments
IEI7 Delivery Packages - Incoming Excise Invoice
IEI8 Incoming Excise Invoice - Items in Package
IEI9 IEI - Drawn Dpm
IGE1 Goods Issue - Rows
IGE10 Goods Issue - Row Structure
IGE12 Goods Issue - Tax Extension
IGE13 Goods Issue Rows - Distributed Expenses
IGE14 Goods Issue - Assembly - Rows
IGE15 Gds Issue - Drawn Dpm Applied
IGE16 Goods Issue - SnB properties
IGE17 Goods Issue - Import Process
IGE18 Goods Issue - Export Process
IGE19 Goods Issue - Bin Allocation Data
IGE2 Goods Issue - Freight - Rows
IGE20 Intrastat Expenses
IGE3 Goods Issue - Freight
IGE4 Goods Issue - Tax Amount per Document
IGE5 Goods Issue - Withholding Tax
IGE6 Goods Issue - Installments
IGE7 Delivery Packages - Goods Issue
IGE8 Items in Package - Goods Issue
IGE9 Goods Issue - Drawn Dpm
IGN1 Goods Receipt - Rows
IGN10 Goods Receipt - Row Structure
IGN12 Goods Receipt - Tax Extension
IGN13 Goods Receipt Rows - Distributed Expenses
IGN14 Goods Receipt - Assembly - Rows
IGN15 Gds Rcpt - Drawn Dpm Applied
IGN16 Goods Receipt - SnB properties
IGN17 Goods Receipt - Import Process
IGN18 Goods Receipt - Export Process
IGN19 Goods Receipt - Bin Allocation Data
IGN2 Goods Receipt - Freight - Rows
IGN20 Intrastat Expenses
IGN3 Goods Receipt - Freight
IGN4 Goods Receipt - Tax Amount per Document
IGN5 Goods Receipt - Withholding Tax
IGN6 Goods Receipt- Installments
IGN7 Goods Receipt - Delivery Packages
IGN8 Goods Receipt - Items in Package
IGN9 Goods Receipt - Drawn Dpm
ILM1 Srl & Batch Det of Inv Log Msg
ILM2 Inventory Account Substitute
IMT1 Acct data in selected template
IMT11 Calculated expression's constituent with sign for specifying account in specific template
INC1 Inventory Counting - Rows
INC2 Inventory Counting - UoM
INC3 Inventory Count - SnB
INV1 A/R Invoice - Rows
INV10 A/R Invoice - Row Structure
INV11 A/R Invoice - Drawn Dpm Detail
INV12 A/R Invoice - Tax Extension
INV13 A/R Invoice Rows - Distributed Freights
INV14 A/R Invoice - Assembly - Rows
INV15 A/R Inv. - Drawn Dpm Applied
INV16 A/R Invoice - SnB properties
INV17 A/R Invoice - Import Process
INV18 A/R Invoice - Export Process
INV19 A/R Invoice - Bin Allocation Data
INV2 A/R Invoice - Freight - Rows
INV20 Intrastat Expenses
INV3 A/R Invoice - Freight
INV4 A/R Invoice - Tax Amount per Document
INV5 A/R Invoice - Withholding Tax
INV6 A/R Invoice - Installments
INV7 A/R Invoice - Delivery Packages
INV8 A/R Invoice - Items in Package
INV9 A/R Invoice - Drawn Dpm
IOD1 Inventory Initial Qty Draft Rows
IOD2 Inventory Count Draft - SnB
IPD1 Inventory Stock Posting Draft (Reconcile) Lines
IPD2 Inventory Posting Draft - UoM
IPD3 Inventory Posting Draft - SnB
IPF1 Landed Costs - Rows
IPF2 Landed Costs - Costs
IPF3 Landed Costs - Customs Summary
IQI1 Inventory Initial Qty Rows
IQI2 Inventory Count - SnB
IQR1 Inventory Stock Posting (Reconcile) Lines
IQR2 Inventory Posting - UoM
IQR3 Inventory Posting - SnB
ISW1 Reported Business Partners
ISW2 Intrastat Reported Items
ISW3 Declaration Rows
ITL1 Srl & Batch Details in Transac
ITM1 Items - Prices
ITM10 OITM Extension
ITM11 Asset Item Period Control
ITM12 UoM in Item
ITM13 Asset Attributes
ITM2 Items - Multiple Preferred Vendors
ITM3 Items - Localization Fields
ITM4 Package in Items
ITM5 Asset Item Projects
ITM6 Asset Item Distribution Rules
ITM7 Asset Item Depreciation Params
ITM8 Asset Item Balances
ITM9 Item - UoM Prices
ITR1 Internal Reconciliation - Rows
ITT1 Bill of Materials - Component Items
ITW1 Item Count Alert
IVL1 IVL Layer Level
IVM1 Invoice Mapping Object Details
IVRU Inventory Valuation Utility
IWB1 Batch No. Quantities Backup
IWB2 Serial No. Quantities Backup
IWZ1 Accounts Revaluation History
IWZ2 Inflation Warehouse Filter
IWZ3 Items Last Revaluation Data
JDT1 Journal Entry - Rows
JDT2 Withholding Tax - History
JST1 TDS Adjustment - Rows
KPS1 KPI Set Array 1
LGL1 Legal Data - Rows
LLR1 Electronic Report Generation Result - Reports
MAP1 Input and Output of Mapping
MAP2 Mapping Input and Output Relation
MDC1 Master Data Cleanup - Log
MDC2 Master Data Cleanup - MD Log
MDP1 Manual Depreciation - Rows
MDP2 Manual Depreciation - Area Journal Transactions
MDP3 Manual Depreciation - Item Areas
MDR1 Manual Distribution Rule - Rows
MIN1 Monthly Invoice Report Document Information
MIN2 Item Imformation of MI
MIV1 A/P Monthly Invoice - Document
MIV2 A/P Monthly Invoice - Item
MLS1 Distribution Lists - Recipients
MLT1 Translations in user language
MRV1 Inventory Revaluation Information Array
MRV2 Inventory Revaluation FIFO Rows
MRV3 Inventory Revaluation SNB
MSN1 MRP Scenarios - Warehouses Array
MSN2 MRP Run Results
MSN3 MRP Pegging Information
MSN4 MRP Scenarios - Items Array
MSN5 MRP-Specific Document
NFN1 Not a Fiscal Sequence
NNM1 Documents Numbering - Series
NNM4 Electronic Series
NNM5 Document Numbering - Removed Serial Numbers
OACD Credit Memo
OACG Account Category
OACK Acknowledge Number
OACM Accumulation
OACP Periods Category
OACQ Capitalization
OACR Accrual Type
OACS Asset Classes
OACT G/L Accounts
OADF Address Formats
OADG Depreciation Groups
OADM Administration
OADT Fixed Assets Account Determination
OAGM Arguments for B1i
OAGP Agent Name
OAGS Asset Groups
OAIM Archive Inventory Message
OALC Loading Expenses
OALI Alternative Items 2
OAMD Amount Differences Report
OARG Customs Groups
OARI Add-On - Company Definitions
OASC Account Segmentation Categories
OASG Account Segmentation
OAT1 Blanket Agreement - Rows
OAT2 Blanket Agreement - Details
OAT3 Item Details: Activity
OAT4 Blanket Agreement - Recurring Transactions
OATC Attachments
OBAT Bin Location Attribute
OBBI Brazil Beverage Indexer
OBBQ Item - Serial/Batch - Bin Accumulator
OBCA Bank Charges Allocation Codes
OBCD Bar Code Master Data
OBCG Bank Charge for Bank Transfers
OBDC B1i DI Configuration
OBFC Bin Field Configuration
OBFI Brazil Fuel Indexer
OBGD Budget Cost Assess. Mthd
OBGS Budget Scenario
OBGT Budget
OBIN Bin Location
OBMI Brazilian Multi-Indexer
OBNH Bank Statement Header
OBNI Brazil Numeric Indexer
OBNK External Bank Statement Received
OBOC External Bank Operation Code Category
OBOD BIOD Master Data
OBOE Bill of Exchange for Payment
OBOS Box Set Definition
OBOT Bill Of Exchang Transaction
OBOX Box Definition
OBPL Business Place
OBPP BP Priorities
OBSI Brazil String Indexer
OBSL Warehouse Sublevel
OBST BoE Stamp Tax
OBTC Internal Bank Operation Codes
OBTD Journal Vouchers List
OBTF Journal Voucher Entry
OBTL Bin Transaction Log
OBTN Batch Numbers Master Data
OBTQ Batch No. Quantities
OBTW Batch Attributes in Location
OBVL Serial Numbers and Batch Valuation Log
OCBI Central Bank Ind.
OCCD Cargo Customs Declaration Numbers
OCCS Cycle Count Determination
OCCT Cost Center Type
OCDC Cash Discount
OCDP Closing Date Procedure
OCDT Credit Card Payment
OCFH Cash Flow Statement History
OCFP CFOP for Nota Fiscal
OCFT Cash Flow Transactions - Rows
OCFW Cash Flow Line Item
OCHD Checks for Payment Drafts
OCHF 312
OCHH Check Register
OCHO Checks for Payment
OCHP India Chapter ID
OCIF Configuration of Intrastat Fields
OCIG CIG Codes
OCIN A/R Correction Invoice
OCIP Configuration of Integration Packages
OCLA Activity Status
OCLG Activities
OCLO Meetings Location
OCLS Activity Subjects
OCLT Activity Types
OCMN Customized Menu
OCMT Competitors
OCNA CNAE Code
OCNT Counties
OCOG Commission Groups
OCPC Quick Copy Config.
OCPI A/P Correction Invoice
OCPL Quick Copy Log Manager
OCPN Campaign
OCPR Contact Persons
OCPT Cockpit Main Table
OCPV A/P Correction Invoice Reversal
OCQG Card Properties
OCR1 Distribution Rule - Rows
OCRB BP - Bank Account
OCRC Credit Cards
OCRD Business Partner
OCRG Card Groups
OCRH Credit Card Management
OCRN Currency Codes
OCRP Payment Methods
OCRT CRDB Tables Tree List
OCRV Credit Payments
OCRY Countries
OCSC Crystal Server Configuration
OCSI A/R Correction Invoice
OCSN Certificate Series
OCSQ Column Sequences
OCST States
OCSV A/R Correction Invoice Reversal
OCTG Payment Terms
OCTR Service Contracts
OCTT Contract Template
OCUC CUS Configuration
OCUL Customer Usage Statistics Log
OCUP CUP Codes
OCYC Cycle
ODAB Dashboard
ODAR Data Archiving
ODBN Bat. Nos - Draft - Master Data
ODBW Batch Draft Attribs in Locat.
ODCC Dashboard Cache Configuration
ODCI Intrastat Configuration
ODDG Withholding Tax Deduction Groups
ODDT Withholding Tax Deduction Hierarchy
ODGL Deduction Group List
ODGP Document Generation Parameter Sets
ODIM Cost Accounting Dimension
ODLL Bar Code Algorithm File
ODLN Delivery
ODMC GL Account Determination - Criteria
ODMW Data Migration
ODNF DNF Code
ODOR Doubtful Debts
ODOW Data Ownership - Objects
ODOX Data Ownership - Exceptions
ODPA Fixed Asset Depreciation Areas
ODPI A/R Down Payment
ODPO A/P Down Payment
ODPP Depreciation Type Pools
ODPS Deposit
ODPT Postdated Deposit
ODPV Fixed Assets Depreciation Value
ODRF Drafts
ODRN Depreciation Run
ODSC Bank Codes
ODSN SNs - Draft - Master Data
ODSW SN Draft Attribs in Location
ODTP Fixed Assets Depreciation Types
ODTY BoE Document Type
ODUN Dunning Letters
ODUT Dunning Terms
ODWZ Dunning Wizard
OECDW ECD Wizard
OECM Electronic Communication Types or Protocols
OEDG Discount Groups
OEI1 Outgoing Excise Invoice - Rows
OEI10 Outgoing Excise Invoice - Row Structure
OEI11 OEI - Drawn Dpm Detail
OEI12 Outgoing Excise Invoice - Tax Extension
OEI13 Outgoing Excise Invoice Rows - Distributed Expenses
OEI14 Outgoing Excise Invoice - Assembly - Rows
OEI15 OEI - Drawn Dpm Applied
OEI16 Outgoing Excise Invoice - SnB properties
OEI17 Outgoing Excise Invoice - Import Process
OEI18 Outgoing Excise Invoice - Export Process
OEI19 Outgoing Excise Invoice - Bin Allocation Data
OEI2 OEI - Freight Rows
OEI20 Intrastat Expenses
OEI3 OEI - Freight
OEI4 Outgoing Excise Invoice - Tax Amount per Document
OEI5 Outgoing Excise Invoice - Withholding Tax
OEI6 Outgoing Excise Invoice - Installments
OEI7 Delivery Packages - Outgoing Excise Invoice
OEI8 Outgoing ExHi,
You should post as "Write document" or "Write a blog post" option not as discussion.
Thanks & Regards,
Nagarajan -
hi frds
Give me table name and field name of OPEN PO QUANTITY ..
thanks
Pari Vendhan.RSee the sample code for the open PO's based on Vendor
and do accordingly
*& Report ZMM_PO_REPORT
REPORT ZMM_PO_REPORT message-Id yb
NO STANDARD PAGE HEADING
LINE-COUNT 60(1)
LINE-SIZE 230.
D A T A B A S E T A B L E S D E C L A R A T I O N
TABLES: lfa1, " Vendor Master
t161, " PO Doc Types
t024, " Purchase Groups
ekko. " PO Header
T Y P E S D E C L A R A T I O N S
Purchase Orders Main Structure
TYPES: BEGIN OF s_po,
ebeln TYPE ebeln, " PO No.
ebelp TYPE ebelp, " PO Item
bstyp TYPE bstyp, " PO Category
bukrs TYPE bukrs, " Company Code
bsart TYPE bbsrt, " PO Type
lifnr TYPE lifnr, " Vendor No
ekgrp TYPE bkgrp, " Purchase Group
waers TYPE waers, " Currency
bedat TYPE etbdt, " PO Date
txz01 TYPE txz01, " Material Text
werks TYPE ewerk, " Plant
lgort TYPE lgort_d, " Storage Location
matkl TYPE matkl, " Material Group
menge TYPE bamng, " PR Quantity
meins TYPE bamei, " UOM
bprme TYPE bbprm, " Price Unit
netpr TYPE netpr, " Net price
peinh TYPE peinh, " Price Unit UOM
pstyp TYPE pstyp, " Item Category
knttp TYPE knttp, " Account Assignment Category
END OF s_po.
Purchase Orders History Structure
TYPES: BEGIN OF s_account,
ebeln TYPE ebeln, " PO No.
ebelp TYPE ebelp, " PO Item
gjahr TYPE mjahr, " Fiscal Year
belnr TYPE mblnr, " PO Invoice No
menge TYPE menge_d, " PR Quantity
wrbtr TYPE wrbtr, " Price in Local Currency
dmbtr TYPE dmbtr, " Price in Foreign Currency
waers TYPE waers, " Currency
shkzg TYPE shkzg, " Dr/Cr Indicator
END OF s_account.
Purchase Orders History Structure(Item Sum)
TYPES: BEGIN OF s_inv_sum,
ebeln TYPE ebeln, " PO No.
ebelp TYPE ebelp, " PO Item
menge TYPE menge_d, " PR Quantity
wrbtr TYPE wrbtr, " Price in Foreign Currency
waers TYPE waers, " Currency
END OF s_inv_sum.
Purchase Orders Main Structure
TYPES: BEGIN OF s_rep,
lifnr TYPE lifnr, " Vendor No
ebeln TYPE ebeln, " PO No.
ebelp TYPE ebelp, " PO Item
bstyp TYPE bstyp, " PO Category
bsart TYPE bbsrt, " PO Type
ekgrp TYPE bkgrp, " Purchase Group
waers TYPE waers, " Currency
bedat TYPE etbdt, " PO Date
txz01 TYPE txz01, " Material Text
werks TYPE ewerk, " Plant
lgort TYPE lgort_d, " Storage Location
matkl TYPE matkl, " Material Group
menge TYPE bamng, " PR Quantity
meins TYPE bamei, " UOM
bprme TYPE bbprm, " Price Unit
netpr TYPE netpr, " Net price
peinh TYPE peinh, " Price Unit UOM
pstyp TYPE pstyp, " Item Category
knttp TYPE knttp, " Account Assignment Category
name1 TYPE name1, " Plant
orewr TYPE netpr, " To be Invoiced Price
curr TYPE waers, " Inv Doc Currency
END OF s_rep.
D A T A D E C L A R A T I O N S
DATA: gv_title1 TYPE sylisel, " Report title
gv_dial. " Color flag
C O N S T A N T S D E C L A R A T I O N S
CONSTANTS: c_x VALUE 'X', " Flag X
c_h VALUE 'H', " Debit
c_vgabe TYPE vgabe VALUE '2'. " Transaction Type
I N T E R N A L T A B L E S D E C L A R A T I O N S
DATA: i_po TYPE STANDARD TABLE OF s_po WITH HEADER LINE,
" Purchase Order
i_inv TYPE STANDARD TABLE OF s_inv_sum WITH HEADER LINE,
" PO Invoice Values
i_rep TYPE STANDARD TABLE OF s_rep WITH HEADER LINE,
" PO Invoice Values
i_ekbe TYPE STANDARD TABLE OF s_account WITH HEADER LINE.
" PO Invoice Values
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
s_ebeln FOR ekko-ebeln MATCHCODE OBJECT mekk,
s_bsart FOR t161-bsart,
s_ekgrp FOR t024-ekgrp,
s_bedat FOR ekko-bedat.
SELECTION-SCREEN END OF BLOCK b1.
I N I T I A L I Z A T I O N *
INITIALIZATION.
A T S E L E C T I O N - S C R E E N *
AT SELECTION-SCREEN.
Validate the screen fields
PERFORM validate_screen.
S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Fetch main data
PERFORM fetch_data.
T O P - O F - P A G E *
TOP-OF-PAGE.
Header of the List
PERFORM header.
E N D - O F - P A G E *
Footer
END-OF-PAGE.
ULINE.
E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
Display the Report Output data
PERFORM display_data.
At Line-Selection
AT LINE-SELECTION.
When double clicked on EBELN display the details of Purchase Doc
PERFORM line_sel.
*& Form validate_screen
Validation of Selection Screen fields
FORM validate_screen .
Validation of Vendor Number
CLEAR lfa1-lifnr.
IF NOT s_lifnr[] IS INITIAL.
SELECT lifnr UP TO 1 ROWS
INTO lfa1-lifnr
FROM lfa1
WHERE lifnr IN s_lifnr.
ENDSELECT.
IF sy-subrc 0.
MESSAGE e000 WITH 'Invalid Vendor'(002).
ENDIF.
ENDIF.
Validation of PO Number
CLEAR ekko-ebeln.
IF NOT s_ebeln[] IS INITIAL.
SELECT ebeln UP TO 1 ROWS
INTO ekko-ebeln
FROM ekko
WHERE ebeln IN s_ebeln.
ENDSELECT.
IF sy-subrc 0.
MESSAGE e000 WITH 'Invalid Document Number'(003).
ENDIF.
ENDIF.
Validation of PO Document Type
CLEAR t161-bsart.
IF NOT s_bsart[] IS INITIAL.
SELECT bsart UP TO 1 ROWS
INTO t161-bsart
FROM t161
WHERE bsart IN s_bsart.
ENDSELECT.
IF sy-subrc 0.
MESSAGE e000 WITH 'Invalid Purchase Document Type'(004).
ENDIF.
ENDIF.
Validation of Purchasing Group
CLEAR t024-ekgrp.
IF NOT s_ekgrp[] IS INITIAL.
SELECT ekgrp UP TO 1 ROWS
INTO t024-ekgrp
FROM t024
WHERE ekgrp IN s_ekgrp.
ENDSELECT.
IF sy-subrc 0.
MESSAGE e000 WITH 'Invalid Purchasing Group'(005).
ENDIF.
ENDIF.
ENDFORM. " validate_screen
*& Form fetch_data
Fetching the PO related data from Database Tables
FORM fetch_data .
CLEAR i_po.
REFRESH i_po.
SELECT a~ebeln " PO No.
b~ebelp " PO Item
a~bstyp " PO Category
a~bukrs " Company Code
a~bsart " PO Type
a~lifnr " Vendor No
a~ekgrp " Purchase Group
a~waers " Currency
a~bedat " PO Date
b~txz01 " Material Text
b~werks " Plant
b~lgort " Storage Location
b~matkl " Material Group
b~menge " PR Quantity
b~meins " UOM
b~bprme " Price Unit
b~netpr " Net price
b~peinh " Price Unit UOM
b~pstyp " Item Category
b~knttp " Account Assignment Category
INTO TABLE i_po
FROM ekko AS a JOIN ekpo AS b
ON a~ebeln = b~ebeln
WHERE a~ebeln IN s_ebeln AND
a~lifnr IN s_lifnr AND
a~ekgrp IN s_ekgrp AND
a~bsart IN s_bsart AND
a~bedat IN s_bedat.
SORT i_po BY ebeln ebelp.
break-point.
IF NOT i_po[] IS INITIAL.
Fetch the PO History/Invoice Details from EKBE Table
CLEAR i_ekbe.
REFRESH i_ekbe.
SELECT ebeln " PO No.
ebelp " PO Item
gjahr " Fiscal Year
belnr " PO Invoice No
menge " PR Quantity
wrbtr " Price in Local Currency
dmbtr " Price in Foreign Currency
waers " Currency
shkzg " Dr/Cr Indicator
INTO TABLE i_ekbe
FROM ekbe
FOR ALL ENTRIES IN i_po
WHERE ebeln = i_po-ebeln AND
ebelp = i_po-ebelp AND
vgabe = c_vgabe.
IF sy-subrc = 0.
SORT i_ekbe BY ebeln ebelp.
LOOP AT i_ekbe.
IF i_ekbe-shkzg = c_h.
i_ekbe-wrbtr = i_ekbe-wrbtr * -1.
ENDIF.
MODIFY i_ekbe.
ENDLOOP.
break-point.
Sum up the Item wise Invoice totals
LOOP AT i_ekbe.
AT END OF ebelp.
READ TABLE i_ekbe INDEX sy-tabix.
SUM.
MOVE-CORRESPONDING i_ekbe TO i_inv.
APPEND i_inv.
ENDAT.
CLEAR i_inv.
ENDLOOP.
SORT i_inv BY ebeln ebelp.
break-point.
ENDIF.
ENDIF.
Move the Vendor Name and Invoice Values to I_rep Internal Table
LOOP AT i_po.
MOVE-CORRESPONDING i_po TO i_rep.
CLEAR i_inv.
READ TABLE i_inv WITH KEY ebeln = i_po-ebeln
ebelp = i_po-ebelp.
IF sy-subrc = 0.
i_rep-orewr = ( i_po-menge - i_inv-menge ) * i_po-netpr.
i_rep-curr = i_inv-waers.
ELSE.
i_rep-orewr = i_po-menge * i_po-netpr.
i_rep-curr = i_po-waers.
ENDIF.
break-point.
Get the Vendor Name
CLEAR lfa1-name1.
SELECT SINGLE name1 FROM lfa1 INTO lfa1-name1
WHERE lifnr = i_po-lifnr.
IF sy-subrc = 0.
i_rep-name1 = lfa1-name1.
ENDIF.
APPEND i_rep.
CLEAR i_rep.
break-point.
ENDLOOP.
SORT i_rep BY lifnr ebeln ebelp.
DELETE i_rep WHERE orewr LE 0.
break-point.
ENDFORM. " fetch_data
*& Form display_data
Display the Report Output data
FORM display_data .
DATA: lv_flag, " New Flag
lv_rec TYPE i. " No of Records
CLEAR lv_rec.
IF i_rep[] IS INITIAL.
MESSAGE e000 WITH 'No Data found'(022).
ELSE.
LOOP AT i_rep.
Toggle Color
PERFORM toggle_color.
IF lv_flag space.
NEW-LINE.
ENDIF.
At New Purchase Document
AT NEW ebeln.
WRITE:/1 sy-vline, 2(10) i_rep-ebeln INTENSIFIED OFF.
lv_flag = c_x.
lv_rec = lv_rec + 1.
ENDAT.
WRITE: 1 sy-vline,
12 sy-vline,13(4) i_rep-bsart,
17 sy-vline,18(10) i_rep-lifnr,
28 sy-vline,29(35) i_rep-name1,
64 sy-vline,65(4) i_rep-ekgrp,
69 sy-vline,70(10) i_rep-bedat,
80 sy-vline,81(5) i_rep-ebelp,
86 sy-vline,87(40) i_rep-txz01,
127 sy-vline,128(9) i_rep-matkl,
137 sy-vline,138(1) i_rep-pstyp,
139 sy-vline,140(1) i_rep-knttp,
141 sy-vline,142(4) i_rep-werks,
146 sy-vline,147(4) i_rep-lgort,
151 sy-vline,152(13) i_rep-menge UNIT i_rep-meins,
165 sy-vline,166(3) i_rep-meins,
169 sy-vline,170(15) i_rep-netpr CURRENCY i_rep-waers,
185 sy-vline,186(4) i_rep-waers,
190 sy-vline,191(5) i_rep-peinh,
196 sy-vline,197(4) i_rep-bprme,
201 sy-vline,202(15) i_rep-orewr CURRENCY i_rep-curr,
217 sy-vline,218(4) i_rep-curr,
222 sy-vline,223(7) i_rep-bstyp centered,
230 sy-vline.
NEW-LINE.
hide: i_rep-ebeln.
ENDLOOP.
ULINE.
FORMAT COLOR OFF.
WRITE : /2 'Total Number of Purchasing Documents:'(025) COLOR 3,
lv_rec COLOR 3.
ENDIF.
ENDFORM. " display_data
*& Form header
Write the Report Header
FORM header .
FORMAT RESET.
header
WRITE:/1(230) 'LIST OF PURCHASE DOCUMENTS PER VENDOR'(006) CENTERED.
SKIP.
FORMAT COLOR COL_HEADING.
ULINE.
WRITE:/1 sy-vline,2(10) 'Pur.Doc.No'(006) CENTERED,
12 sy-vline,13(4) 'Type'(007),
17 sy-vline,18(10) 'Vendor'(008) CENTERED,
28 sy-vline,29(35) 'Name'(009) CENTERED,
64 sy-vline,65(4) 'PGrp'(010) CENTERED,
69 sy-vline,70(10) 'Doc.Date'(012) CENTERED,
80 sy-vline,81(5) 'Item'(011),
86 sy-vline,87(40) 'Material Short Text'(024) CENTERED,
127 sy-vline,128(9) 'Mat.Group'(013),
137 sy-vline,138(1) 'I',
139 sy-vline,140(1) 'A',
141 sy-vline,142(4) 'Plnt'(014),
146 sy-vline,147(4) 'SLoc'(015),
151 sy-vline,152(13) 'Quantity'(016) CENTERED,
165 sy-vline,166(3) 'UoM'(017),
169 sy-vline,170(15) 'Net Value'(018) CENTERED,
185 sy-vline,186(4) 'Curr'(019),
190 sy-vline,191(5) 'Per'(020),
196 sy-vline,197(4) 'Unit'(021),
201 sy-vline,202(15) 'To be Invoiced'(023) CENTERED,
217 sy-vline,218(4) 'Curr'(019),
222 sy-vline,223(7) 'Doc.Cat'(026),
230 sy-vline.
ULINE.
ENDFORM. " header
*& Form toggle_color
This routine alters the color of the records in the list FORM toggle_color.
IF gv_dial = space.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
gv_dial = c_x.
ELSE.
FORMAT COLOR 1 INTENSIFIED OFF.
CLEAR gv_dial.
ENDIF.
ENDFORM. " toggle_color
*& Form LINE_SEL
*When double clicked on EBELN field display the details of Purchase Doc
FORM line_sel.
CASE sy-lsind.
WHEN '1'.
DATA: lv_field(20),
lv_value(10),
lv_bstyp like i_rep-bstyp.
clear: lv_bstyp,lv_value, lv_field.
GET CURSOR FIELD lv_field VALUE lv_value.
IF lv_field = 'I_REP-EBELN'.
IF NOT lv_value IS INITIAL.
READ LINE sy-index FIELD VALUE i_rep-bstyp
INTO lv_bstyp.
READ CURRENT LINE FIELD VALUE i_rep-bstyp INTO lv_bstyp.
if lv_bstyp = 'F'.
SET PARAMETER ID 'BES' FIELD lv_value.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
elseif ( lv_bstyp = 'K' or lv_bstyp = 'L' ).
SET PARAMETER ID 'VRT' FIELD lv_value.
CALL TRANSACTION 'ME33' AND SKIP FIRST SCREEN.
elseif lv_bstyp = 'A'.
SET PARAMETER ID 'ANF' FIELD lv_value.
CALL TRANSACTION 'ME43' AND SKIP FIRST SCREEN.
endif.
ENDIF.
ENDIF.
ENDCASE.
ENDFORM. " line_sel{code]
<REMOVED BY MODERATOR>
kushagra
Edited by: Alvaro Tejada Galindo on Feb 18, 2008 2:03 PM -
How to find Table Name and Field Names given a Data Source
Hi,
I tried ROOSOURCE table in R/3 to find the Extract Structure and Extractor names for a specific data source, let us say 2LIS_02_ITM (PO Item Level).
I know the extract structure for this data source is MCO2M_0ITM
I am not able to find where this structure is extracting the data for every field.. I wanted to know the corresponding table name and the respective field names.. Both the existing and Appended fields..
Thanks,
NarenHi,
Check in in LBWE and Click on Maintenance and see the table names
EKKO
EKPA
EKPO
Tables are use for this DS
Eg:
MCEKKO BEDAT Document Date
MCEKKO BSART Document Type
MCEKKO BSTYP Doc. Category
MCEKKO BUDAT Accounting date
MCEKKO EBELN Purchasing Doc.
MCEKKO EKGRP Purch. Group
Note: here EKKO is table
https://wiki.sdn.sap.com/wiki/display/BI/BW%20SD%20MM%20FI%20DATASOURCES
thanks
Reddy
Edited by: Surendra Reddy on Mar 10, 2010 8:18 AM
Edited by: Surendra Reddy on Mar 10, 2010 8:19 AM -
Remote key mapping in Category table
Hi,
We are not able to populate the Remote key in the Category table.
In standard repository the Category table only has one field 'Category Name' which is defined as Display Field.
In order for us to map customer file records which has UNSPSC code with our Category definitions we have added a field 'UNSPSC ID' in the Category table.
As 'Category Name' is the field that should be displayed we need to use the Remote Key function in order to get a unique identifier in the Category table for automatic mapping of supplier records to the Categories in the Category table. However, we are not able to populate the Remote key field in the destination table Categories.
The Category table has 'Key mapping' set to yes and in the Import manager we clone the field 'UNSPSC ID' and map the clone to destination field 'Remote Key'. However, 'Remote Key' does not come up as unique Matching field and performing the Import we can see that the Remote key is blank for all records in the category table.
Does anyone out there know what needs to be done in order to populate the 'Remote Key' in the Category table?
Please note that we are able to map and populate the Remote key field in other tables such as Product Group, Supplier etc but not in the Category table. Is there some special considerations as this is a taxonomy table?
Regards
JanDear Poster,
As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
Best Regards,
SDN SRM Moderation Team -
What are the table names for CRM and APO?
hi friends,
what are the table names for CRM and APO?
Regards
suneel.hi Suneel,
check in crm forum
Re: SAP-CRM Tables
BUT051 BP Relationship: Contact Person Relationship
Similar to BUT050 , additionally contains Contact Persons Address data
BUT0BK Business Partner: Bank Data & Details
BP Number, Bank Key, Bank Country Key, Bank Account Number
BNKA Bank Master Data
BUT100 BP: Roles
ADR2 Telephone Numbers (Business Address Services)
ADR6 SMTP Numbers (Business Address Services)
Contains Email Id of the BP.
ADRC Addresses (Business Address Services)
BPs Complete Address Details- City, Country, Post Code, District, Street, Title No Etc
TSAD3T Table containing the Title text against a Title No.
COMM_PRODUCT Master Table for Product
CRMM_BUAG Master table for Business Agreement
CRMM_BUAG_H Header Data for Business Agreement such as Tax Category, Tax Characteristic, Form key, Business Agreement Class. Data in this table correspond to ISU CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMC_PROC_TYPE Master table Business Transaction Type
CRMC_PARTNER_FCT Definition of Partner Functions
SCPRIOT Priorities for Activities with priority text.
CRMC_PROC_TYPE_T Text for a transaction type
CRMC_ACT_OBJ_T Objective Number and Text for Activities
TJ30T All the status code and text
CRMC_PR_ASSIGN : Transaction Type and its Transaction Type Object.
IBIB : Installed Base/Ibase
IBIN : Installed Base Components
COMM_PRODUCT : Products
CRMC_T077D : customer account groups
CRMD_ORDERADM_H (for header) CRMD_ORDERADM_I (Item data)
CRMD_ORDERADM_H Business Transactions CRM
CRMD_ACTIVITY_H Activity
CRMD_OPPORT_H Opportunity
BUTOO : Customer details
BUT001 BP: General data II
BUT100 BP: Roles
BUT150 BP relationship: Attribute table (test
different
BUT_HIER_TREE Business Partner Group Hierarchy
CDBC_T_PRODUCTID Mapping: Product Id
CDBD_ORGMAN Business transaction - organizational unit -
set
COMC_PRODUCT General Product Settings
COMC_R3_FIELDS Assignment of R/3 material master fields to
CFOP
COMM_CATEGORY Category
COMM_CFGMAT Basic Data for Materials
COMM_HIERARCHY Category Hierarchy
COMP_TYPES Hierarchy Tool: Comparison Type Check
Table
CRMC_CPRICPROC Customer Pricing Procedures
SMOKVBEZ15 Assignment employees to positions
CRMMLSGUID: GUID entry (should match GUID in CRMPRLS)
CRMM_BUT_CUSTNO : Also GUID table (GUID here should match GUID in R/3 table CRMKUNNR)
SMOFSUBTAB : Mapping & Parameters
SMOFDSTAT : Download Monitor (R4AM1)
SMOFFILTAB : Filters (Should match filters in R3AC1 & R/3 Table CRMFILTAB)
SMOFOBJECT Definition of Objects for Download
SMOFOBJPAR Parent Objects of an Object in Table
SMOFPARSFA Middleware Parameter
SMOFQFIND Queue Finder Table for MW-Queue finder
SMOFTABLES Definition of Tables for Download -
How to get the column name and table name from xml file
I have one XML file, I generated xsd file from that xml file but the problem is i dont know table name and column name. So my question is how can I retrieve the data from that xml file?
Here's an example using binary XML storage (instead of Object-Relational storage as described in the article).
begin
dbms_xmlschema.registerSchema(
schemaURL => 'my_schema.xsd'
, schemaDoc => xmltype(bfilename('TEST_DIR','my_schema.xsd'), nls_charset_id('AL32UTF8'))
, local => true
, genTypes => false
, genTables => true
, enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS
, options => dbms_xmlschema.REGISTER_BINARYXML
end;
genTables => true : means that a default schema-based XMLType table will be created during registration.
enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS : indicates that a repository resource conforming to the schema will be automatically stored in the default table.
If the schema is not annotated, the name of the default table is system-generated but derived from the root element name :
SQL> select table_name
2 from user_xml_tables
3 where xmlschema = 'my_schema.xsd'
4 and element_name = 'employee';
TABLE_NAME
employee1121_TAB
(warning : the name is case-sensitive)
To annotate the schema and control the naming, modify the content to :
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
<xs:element name="employee" xdb:defaultTable="EMPLOYEE_XML">
<xs:complexType>
Next step : create a resource, or just directly insert an XML document into the table.
Example of creating a resource :
declare
res boolean;
doc xmltype := xmltype(
'<employee>
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>'
begin
res := dbms_xdb.CreateResource(
abspath => '/public/test.xml'
, data => doc
, schemaurl => 'my_schema.xsd'
, elem => 'employee'
end;
The resource has to be schema-based so that the default storage mechanism is triggered.
It could also be achieved if the document possesses an xsi:noNamespaceSchemaLocation attribute :
SQL> declare
2
3 res boolean;
4 doc xmltype := xmltype(
5 '<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:noNamespaceSchemaLocation="my_schema.xsd">
7 <details>
8 <emp_id>1</emp_id>
9 <emp_name>SMITH</emp_name>
10 <emp_age>40</emp_age>
11 <emp_dept>10</emp_dept>
12 </details>
13 </employee>'
14 );
15
16 begin
17 res := dbms_xdb.CreateResource(
18 abspath => '/public/test.xml'
19 , data => doc
20 );
21 end;
22 /
PL/SQL procedure successfully completed
SQL> set long 5000
SQL> select * from "employee1121_TAB";
SYS_NC_ROWINFO$
<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>
Then use XMLTABLE to shred the XML into relational format :
SQL> select x.*
2 from "employee1121_TAB" t
3 , xmltable('/employee/details'
4 passing t.object_value
5 columns emp_id integer path 'emp_id'
6 , emp_name varchar2(30) path 'emp_name'
7 ) x
8 ;
EMP_ID EMP_NAME
1 SMITH -
Table name for material master change
What is the table name for material master change, so that I can get the old values and new values at plant level.
More specific:
I want to check the old values for Re order point and Safety stock in MRP1 and MRP2 fields in material master for many materials. Please help.Use CDPOS and CDHDR table to get the values which were changed.
CDPOS>use fields Change doc. object give in as MATERIAL and in the Table name>MARC -
Hello,
I can't find the right syntax to do what I need, if it's possible :
Context :
I work actualy on a migration from MS Access applications to Oracle (datas only). So I copied all MS Access Tables into Oracle and created manualy all the relationnal constraints like primary and foreign keys ('cause constraints are not included in 'Copy to Oracle').
I Have often to refresh my datas, because the MS access applications are still in use. Therefore I wrote PL/SQL scripts. They do the folowing, using dynamic SQL with 'Execute Immediate' statement :
Script 1
- disable all user's constraints
- disable all user's triggers
- truncate all user's tables
(Here, I have to do a manual copy of all MS Access tables to Oracle, checking the Append check-box, because the BRIDGE statement doesn't support 'Execute Immediate', and wait...)
Script 2
- enable all user's constraints
- enable all user's triggers
Could someone let me know how Il could do the same as :
For t in (select table_name from user_tables) loop
-- Copy the datas from an Access table into the same Oracle table
execute immediate ('BRIDGE ' || t.table_name || ' AS MyAccessConnName(select * from ' || t.table_name || ') APPEND') ;
-- News flash ...
dbms_output.put_line('Table ' || t.table_name || ' filled') ;
end loop;
-------------------------------------------------------------------------------------------------------------------------- ==> 00900. 00000 - "invalid SQL statement"
If a dynamic table name substitution is applicable in the Bridge statement from a query, I take it with joice!
Thank you for helping me...
DanielHi Daniel,
The BRIDGE statement is just an extra command I implemented in the SQL Developer worksheet script runner.
It gets interpreted by SQL Developer and it dynamically creates (CREATE TABLE , INSERT INTO , SELECT ... ) statements and runs them against the connections specified.
It was developed to improve certain migration features of SQL Developer. We haven't really spent any time developing it into a customer friendly statement to be used in custom scripts.
Hence the lack of doc. But it is there and if you can make it work for yourself all the better.
When I say "One way of doing what you want". I mean I haven't thought about your particular problem exhaustively and I wouldn't want you to take my solution as gospel :)
If you are happy running a script in SQL Developer, but would rather not run 2 scripts , or cut and paste results around, you could SPOOL the results and execute them.
--call your other scripts to disable constraints during the data move
set echo off;
set feedback off;
set linesize 1000;
set pagesize 0;
set headsep off;
set termout off;
set verify off;
set heading off;
SET PAGES 0;
SET HEAD OFF;
spool c:\mydynamicscript.sql
select 'BRIDGE ' || table_name || ' AS MyAccessConnName(select * from ' || table_name||');' from user_tables ;
spool off
@c:\mydynamicscript.sql
--call another script to enable your constraints again
Regards,
Dermot.
SQL Developer Team. -
Dynamic table name in native SQL
Hi,
How can i use dynamic table name in native SQL?
My req is to select data from a external database table , but the table name will be only poulated during runtime.
How can i acheive this?
Regards,
Arun.It should work OK - see demo below.
Jonathan
report zsdn_jc_adbc_test.
start-of-selection.
perform demo_lookup.
form demo_lookup.
data:
l_error_msg type string,
ls_t001 type t001, "Company
ls_t003 type t003. "Doc types
perform dynamic_lookup
using
'T001'
changing
ls_t001
l_error_msg.
write: / l_error_msg.
perform dynamic_lookup
using
'T003'
changing
ls_t003
l_error_msg.
write: / l_error_msg.
endform.
form dynamic_lookup
using
i_tabname type tabname
changing
os_data type any
o_error_msg type string.
* Use ADBC to select data
data:
l_mandt_ref type ref to data,
l_result_ref type ref to data,
l_mandt type symandt,
l_tabname type tabname,
l_sql_statement type string,
lo_cx_root type ref to cx_root,
lo_cx_sql type ref to cx_sql_exception,
lo_connection type ref to cl_sql_connection,
lo_statement type ref to cl_sql_statement,
lo_result_set type ref to cl_sql_result_set.
clear: os_data, o_error_msg.
get reference of l_mandt into l_mandt_ref.
get reference of os_data into l_result_ref.
l_mandt = '222'. "i.e. select from client 222
l_tabname = i_tabname.
try.
lo_connection = cl_sql_connection=>get_connection( ).
lo_statement = lo_connection->create_statement( ).
* Set criteria for select:
lo_statement->set_param( l_mandt_ref ).
concatenate
'select * from' l_tabname
'where mandt = ?'
into l_sql_statement separated by space.
* Execute
call method lo_statement->execute_query
exporting
statement = l_sql_statement
hold_cursor = space
receiving
result_set = lo_result_set.
* Get the data from the resultset.
lo_result_set->set_param_struct( l_result_ref ).
while lo_result_set->next( ) > 0.
write: / os_data.
endwhile.
* Tidy up:
lo_result_set->close( ).
lo_connection->close( ).
catch cx_sql_exception into lo_cx_sql.
o_error_msg = lo_cx_sql->get_text( ).
catch cx_root into lo_cx_root.
o_error_msg = lo_cx_root->get_text( ).
endtry.
endform. -
Petstore install problem on Derby and Mysql (Linux) - Upper case table name
Hi
I seem to have a problem which may also be at the heart of many threads here - the tables are created in lower case yet referenced in UPPER CASE.
If the DB is case sensitive, the tables arent found.
does anyone have an UPPER CASED VERSION OF THE SETUP SCRIPT ????
1) setup/sql/javadb/petstore.sql contains all table and field names in lower case
in Netbeans look under ServerResources/sql
i.e.
create table tag(
tagid INTEGER NOT NULL,
tag VARCHAR(30) NOT NULL,
refcount INTEGER NOT NULL,
primary key (tagid),
unique(tag)
2) the petstore app tries to access using CAPITALISED NAMES
i.e.
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.apache.derby.client.am.SqlException: Schema 'PETSTORE' does not existError Code: -1
Call:SELECT TAGID, REFCOUNT, TAG FROM TAG ORDER BY REFCOUNT DESC, TAG ASC
Query:ReportQuery(com.sun.javaee.blueprints.petstore.model.Tag)
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
3) In mysql, the table names are .......
mysql> describe tag;
--------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
--------------------------------------------------+
| tagid | int(11) | NO | PRI | | |
| tag | varchar(30) | NO | UNI | | |
| refcount | int(11) | NO | | | |
--------------------------------------------------+
3 rows in set (0.02 sec)
I HATE DBAs THAT ONLY KNOW HOW TO SHOUT :-)
chrisHere is a replacement of the offender - have fun
create table CATEGORY(
CATEGORYID VARCHAR(10) NOT NULL,
NAME VARCHAR(25) NOT NULL,
DESCRIPTION VARCHAR(255) NOT NULL,
IMAGEURL VARCHAR(55),
primary key (CATEGORYID)
CREATE TABLE PRODUCT (
PRODUCTID VARCHAR(10) NOT NULL,
CATEGORYID VARCHAR(10) NOT NULL,
NAME VARCHAR(25) NOT NULL,
DESCRIPTION VARCHAR(255) NOT NULL,
IMAGEURL VARCHAR(55),
primary key (PRODUCTID),
foreign key (CATEGORYID) references CATEGORY(CATEGORYID)
CREATE TABLE ADDRESS (
ADDRESSID VARCHAR(10) NOT NULL,
STREET1 VARCHAR(55) NOT NULL,
STREET2 VARCHAR(55),
CITY VARCHAR(55) NOT NULL,
STATE VARCHAR(25) NOT NULL,
ZIP VARCHAR(5) NOT NULL,
LATITUDE DECIMAL(14,10) NOT NULL,
LONGITUDE DECIMAL(14,10) NOT NULL,
primary key (ADDRESSID)
CREATE TABLE SELLERCONTACTINFO (
CONTACTINFOID VARCHAR(10) NOT NULL,
LASTNAME VARCHAR(24) NOT NULL,
FIRSTNAME VARCHAR(24) NOT NULL,
EMAIL VARCHAR(24) NOT NULL,
primary key (CONTACTINFOID)
CREATE TABLE ITEM (
ITEMID VARCHAR(10) NOT NULL,
PRODUCTID VARCHAR(10) NOT NULL,
NAME VARCHAR(30) NOT NULL,
DESCRIPTION VARCHAR(500) NOT NULL,
IMAGEURL VARCHAR(55),
IMAGETHUMBURL VARCHAR(55),
PRICE DECIMAL(14,2) NOT NULL,
ADDRESS_ADDRESSID VARCHAR(10) NOT NULL,
CONTACTINFO_CONTACTINFOID VARCHAR(10) NOT NULL,
TOTALSCORE INTEGER NOT NULL,
NUMBEROFVOTES INTEGER NOT NULL,
DISABLED INTEGER NOT NULL,
primary key (ITEMID),
foreign key (ADDRESS_ADDRESSID) references ADDRESS(ADDRESSID),
foreign key (PRODUCTID) references PRODUCT(PRODUCTID),
foreign key (CONTACTINFO_CONTACTINFOID) references SELLERCONTACTINFO(CONTACTINFOID)
CREATE TABLE ID_GEN (
GEN_KEY VARCHAR(20) NOT NULL,
GEN_VALUE INTEGER NOT NULL,
primary key (GEN_KEY)
CREATE TABLE ZIPLOCATION (
ZIPCODE INTEGER NOT NULL,
CITY VARCHAR(30) NOT NULL,
STATE VARCHAR(2) NOT NULL,
primary key (ZIPCODE)
create table TAG(
TAGID INTEGER NOT NULL,
TAG VARCHAR(30) NOT NULL,
REFCOUNT INTEGER NOT NULL,
primary key (TAGID),
unique(TAG)
create table TAG_ITEM(
TAGID INTEGER NOT NULL,
ITEMID VARCHAR(10) NOT NULL,
unique(TAGid, ITEMID),
foreign key (ITEMID) references ITEM(ITEMID),
foreign key (TAGID) references TAG(TAGID)
INSERT INTO CATEGORY VALUES('CATS', 'Cats', 'Loving and finicky friends', 'cats_icon.gif');
INSERT INTO CATEGORY VALUES('DOGS', 'Dogs', 'Loving and furry friends', 'dogs_icon.gif');
INSERT INTO CATEGORY VALUES('BIRDS', 'Birds', 'Loving and feathery friends', 'birds_icon.gif');
INSERT INTO CATEGORY VALUES('REPTILES', 'Reptiles', 'Loving and scaly friends', 'reptiles_icon.gif');
INSERT INTO CATEGORY VALUES('FISH', 'Fish', 'Loving aquatic friends', 'fish_icon.gif');
INSERT INTO PRODUCT VALUES('feline01', 'CATS', 'Hairy Cat', 'Great for reducing mouse populations', 'cat1.gif');
INSERT INTO PRODUCT VALUES('feline02', 'CATS', 'Groomed Cat', 'Friendly house cat keeps you away from the vacuum', 'cat2.gif');
INSERT INTO PRODUCT VALUES('canine01', 'DOGS', 'Medium Dogs', 'Friendly dog from England', 'dog1.gif');
INSERT INTO PRODUCT VALUES('canine02', 'DOGS', 'Small Dogs', 'Great companion dog to sit on your lap','dog2.gif');
INSERT INTO PRODUCT VALUES('avian01', 'BIRDS', 'Parrot', 'Friend for a lifetime.', 'bird1.gif');
INSERT INTO PRODUCT VALUES('avian02', 'BIRDS', 'Exotic', 'Impress your friends with your colorful friend.','bird2.gif');
INSERT INTO PRODUCT VALUES('fish01', 'FISH', 'Small Fish', 'Fits nicely in a small aquarium.','fish2.gif');
INSERT INTO PRODUCT VALUES('fish02', 'FISH', 'Large Fish', 'Need a large aquarium.','fish3.gif');
INSERT INTO PRODUCT VALUES('reptile01', 'REPTILES', 'Slithering Reptiles', 'Slides across the floor.','lizard1.gif');
INSERT INTO PRODUCT VALUES('reptile02', 'REPTILES', 'Crawling Reptiles', 'Uses legs to move fast.','lizard2.gif');
INSERT INTO ADDRESS VALUES('1', 'W el Camino Real & Castro St', '', 'Mountain View','CA','94040',37.38574,-122.083973);
INSERT INTO ADDRESS VALUES('2', 'Shell Blvd & Beach Park Blvd', '', 'Foster CITY','CA','94404',37.546935,-122.263978);
INSERT INTO ADDRESS VALUES('3', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('4', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
INSERT INTO ADDRESS VALUES('5', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('6', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
INSERT INTO ADDRESS VALUES('7', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('8', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('9', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('10', 'W el Camino Real & Hollenbeck Ave', '', 'Sunnyvale','CA','94087',37.369941,-122.041271);
INSERT INTO ADDRESS VALUES('11', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
INSERT INTO ADDRESS VALUES('12', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
INSERT INTO ADDRESS VALUES('13', 'Valencia St & 16th St', '', 'San Francisco','CA','94103',37.764985,-122.421886);
INSERT INTO ADDRESS VALUES('14', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
INSERT INTO ADDRESS VALUES('15', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('16', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('17', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('18', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('19', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
INSERT INTO ADDRESS VALUES('20', '24th St & Dolores St', '', 'San Francisco','CA','94114',37.75183,-122.424982);
INSERT INTO ADDRESS VALUES('21', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
INSERT INTO ADDRESS VALUES('22', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
INSERT INTO ADDRESS VALUES('23', '25th St & Dolores St', '', 'San Francisco','CA','94114',37.75013,-122.424782);
INSERT INTO ADDRESS VALUES('24', 'Ellis St & National Ave', '', 'Mountain view','CA','94043',37.40094,-122.052272);
INSERT INTO ADDRESS VALUES('25', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('26', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('27', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('28', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('29', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('30', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('31', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('32', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('33', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('34', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('35', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('36', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('37', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('38', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('39', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('40', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('41', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('42', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('43', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('44', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('45', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('46', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('47', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('48', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('49', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('50', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('51', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('52', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('53', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('54', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('55', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('56', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('57', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('58', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('59', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('60', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('61', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('62', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('63', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('64', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('65', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('66', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('67', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('68', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('69', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('70', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('71', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('72', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('73', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('74', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('75', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('76', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('77', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('78', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('79', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('80', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('81', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
INSERT INTO ADDRESS VALUES('82', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('83', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('84', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('85', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('86', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('87', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('88', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('89', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('90', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
INSERT INTO ADDRESS VALUES('91', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('92', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('93', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('94', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('95', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('96', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('97', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('98', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('99', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('100', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('101', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('102', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO SELLERCONTACTINFO VALUES('1', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('2', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('3', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('4', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('5', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('6', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('7', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('8', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('9', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('10', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('11', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('12', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('13', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('14', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('15', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('16', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('17', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('18', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('19', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('20', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('21', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('22', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('23', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('24', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('25', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('26', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('27', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('28', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('29', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('30', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('31', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('32', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('33', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('34', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('35', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('36', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('37', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('38', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('39', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('40', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('41', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('42', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('43', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('44', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('45', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('46', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('47', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('48', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('49', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('50', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('51', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('52', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('53', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('54', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('55', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('56', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('57', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('58', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('59', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('60', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('61', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('62', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('63', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('64', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('65', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('66', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('67', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('68', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('69', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('70', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('71', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('72', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('73', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('74', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('75', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('76', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('77', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('78', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('79', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('80', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('81', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('82', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('83', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('84', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('85', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('86', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('87', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('88', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('89', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('90', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('91', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('92', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('93', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('94', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('95', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('96', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('97', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('98', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('99', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('100', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('101', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('102', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO ITEM VALUES('1', 'feline01', 'Friendly Cat', 'This black and white colored cat is super friendly. Anyone passing by your front yard will find him puring at their feet and trying to make a new friend. His NAME is Anthony, but I call him Ant as a nickNAME since he loves to eat ants and other insects.', 'images/anthony.jpg','images/anthony-s.jpg', 307.10,'1','1', 15, 3, 0);
INSERT INTO ITEM VALUES('2', 'feline01', 'Fluffy Cat', 'A great pet for a hair stylist! Have fun combing Bailey''s silver mane. Maybe trim his whiskers? He is very patient and loves to be pampered.', 'images/bailey.jpg','images/bailey-s.jpg', 307,'2','2', 15, 5, 0);
INSERT INTO ITEM VALUES('3', 'feline02', 'Sneaky Cat', 'My cat is so sneaky. He is so curious that he just has to poke his nose into everything going on in the house. Everytime I turn around, BAM, he is in the room peaking at what I am doing. Nothing escapes his keen eye. He should be a spy in the CIA!', 'images/bob.jpg','images/bob-s.jpg', 307.20,'3','3', 15, 7, 0);
INSERT INTO ITEM VALUES('4', 'feline02', 'Lazy Cat', 'A great pet to lounge on the sofa with. If you want a friend to watch TV with, this is the cat for you. Plus, she wont even ask for the remote! Really, could you ask for a better friend to lounge with?', 'images/chantelle.jpg','images/chantelle-s.jpg', 307.30,'4','4', 15, 5, 0);
INSERT INTO ITEM VALUES('5', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/charlie.jpg','images/charlie-s.jpg', 307,'5','5', 15, 5, 0);
INSERT INTO ITEM VALUES('6', 'feline02', 'Young Female cat', 'A great young pet to chase around. Loves to play with a ball of string. Bring some instant energy into your home.', 'images/elkie.jpg','images/elkie-s.jpg', 307.40,'6','6', 15, 5, 0);
INSERT INTO ITEM VALUES('7', 'feline01', 'Playful Female Cat', 'A needy pet. This cat refuses to grow up. Do you like playful spirits? I need lots of attention. Please do not leave me alone, not even for a minute.', 'images/faith.jpg','images/faith-s.jpg', 307,'7','7', 15, 5, 0);
INSERT INTO ITEM VALUES('8', 'feline01', 'White Fluffy Cat', 'This fluffy white cat looks like a snowball. Plus, she likes playing outside in the snow and it looks really cool to see this snowball cat run around on the ski slopes. I hope you have white carpet as this cat sheds lots of hair.', 'images/gaetano.jpg','images/gaetano-s.jpg', 307.50,'8','8', 15, 15, 0);
INSERT INTO ITEM VALUES('9', 'feline02', 'Tiger Stripe Cat', 'This little tiger thinks it has big teeth. A great wild pet for an adventurous person. May eat your other pets so be careful- just kidding. This little tiger is affectionate.', 'images/harmony.jpg','images/harmony-s.jpg', 307,'9','9', 15, 3, 0);
INSERT INTO ITEM VALUES('10', 'feline02', 'Alley Cat', 'Meow Meow in the back alley cat fights! This cat keeps the racoons away, but still has class.', 'images/katzen.jpg','images/katzen-s.jpg', 307.60,'10','10', 15, 5, 0);
INSERT INTO ITEM VALUES('11', 'feline02', 'Speedy Cat', 'Fastest and coolest cat in town. If you always wanted to own a cheetah, this cat is even faster and better looking. No dog could ever catch this bolt of lightening.', 'images/mario.jpg','images/mario-s.jpg', 307,'11','11', 15, 10, 0);
INSERT INTO ITEM VALUES('12', 'feline01', 'Stylish Cat', 'A high maintenance cat for an owner with time. This cat needs pampering: comb it hair, brush its teeth, wash its fur, paint its claws. For all you debutantes, let the world know you have arrived in style with this snooty cat in your purse!', 'images/mimi.jpg','images/mimi-s.jpg', 307.70,'12','12', 15, 4, 0);
INSERT INTO ITEM VALUES('13', 'feline01', 'Smelly Cat', 'A great pet with its own song to sing with your fiends. "Smelly cat, Smelly cat ..." Need an excuse for that funky odor in your house? Smelly cat is the answer.', 'images/monique.jpg','images/monique-s.jpg', 307.80,'13','13', 15, 8, 0);
INSERT INTO ITEM VALUES('14', 'feline01', 'Saber Cat', 'A great watch pet. Want to keep your roommates from stealing the beer from your refrigerator? This big-toothed crazy cat is better than a watchdog. Just place him on top of the refrigerator and watch him pounce when so-called friends try to sneak a beer. This cat is great fun at parties.', 'images/olie.jpg','images/olie-s.jpg', 307.90,'14','14', 15, 3, 0);
INSERT INTO ITEM VALUES('15', 'feline01', 'Sophisticated Cat', 'This cat is from Paris. It has a very distinguished history and is looking for a castle to play in. This sophisticated cat has class and taste. No chasing on string, no catnip habits. Only the habits of royalty in this cats blood.', 'images/paris.jpg','images/paris-s.jpg', 307,'15','15', 15, 4, 0);
INSERT INTO ITEM VALUES('16', 'feline01', 'Princess cat', 'Just beauty and elegance. She will charm you from the moment she enters the room.', 'images/princess.jpg','images/princess-s.jpg', 307,'16','16', 15, 5, 0);
INSERT INTO ITEM VALUES('17', 'feline02', 'Lazy cat', 'Wow! This cat is cool. It has a beautiful tan coat. I wish I could get a sun tan of that color.', 'images/simba.jpg','images/simba-s.jpg', 307,'17','17', 15, 3, 0);
INSERT INTO ITEM VALUES('18', 'feline02', 'Scapper male cat', 'A scappy cat that likes to cause trouble. If you are looking for a challenge to your cat training skills, this scapper is the test!', 'images/thaicat.jpg','images/thaicat-s.jpg', 307,'18','18', 15, 5, 0);
INSERT INTO ITEM VALUES('19', 'feline01', 'Lazy cat', 'Buy me please. I love to sleep.', 'images/cat1.gif','images/cat1.gif', 307,'19','19', 15, 6, 0);
INSERT INTO ITEM VALUES('20', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/cat2.gif','images/cat2.gif', 200,'20','20', 15, 3, 0);
INSERT INTO ITEM VALUES('21', 'feline01', 'Young Cat', 'A great young pet to chase around. Loves to play with a ball of string.', 'images/cat3.gif','images/cat3.gif', 350,'21','21', 15, 3, 0);
INSERT INTO ITEM VALUES('22', 'feline01', 'Scrappy Cat', 'A real trouble-maker in the neighborhood. Looking for some T.L. -
Table name issue accessing OATS schema using OBIEE
We are attempting to integrate OATS 12.1 with OBIEE 11g for reporting purposes and encounter the following error when using the BI Administration tool to update a row count of a physical table or query using the Analysis tool against our target OATS schema. For example:
There was an error while updating row count for
"OTM.atg.com".."OTM"."View_Tests":
[nQSError: 17011] SQL statement execution failed.
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942:
table or view does not exist
at OCI call OCIStmtExecute: select count(*) from
OTM.View_Tests
I tried this out with other tables such as "TO_TestCase"
The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table was created, which I understands enforces the preservation of letter case-- i.e. "Mixed_Case" names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected table columns, but the querying for row count and data fails.
One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
I also found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
# Case sensitivity should be set to match the remote
# target database.
CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
Are there other ways to get OBIEE to recognize mixed-case table names?
Thanks!Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
So if a script is, for example, to create a schema, it should look something as follows:
-- usage: create-schema.sql <schema_name>
set verify off
set define on
create user &1 identified by .. default tablespace .. quota ... ;
grant ... to &1;
--eof
If script 1 wants to call it direct then:
-- script 1
@create-schema SCOTT
If script 2 want to call it using an existing variable:
-- script 2
@create-schema &SCHEMA
Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots. -
Parse SQL: How to extract column names, table names from a SQL query
Hi all,
I have a requirement wherein a SQL query will be given in a text file.
The text file has to be read (probably using text_io package), the SQL query needs to be parsed and the column names, table names and where clauses have to be extracted and inserted into separate tables.
Is there a way to do it using PL/SQL ?
Is there a PL/SQL script available to parse and extract column names, table names etc ?
Pls help.
Regards,
SamI think I jumped to conclusion too early saying it is completely possible and straight forward. But after reading through your post for one more time I realised you are not interested only in the column_names, also the table_names and the predicates .
>
SQL query needs to be parsed and the column names
>
The above is possible and straight forward using the dbms_sql package.
I am pasting the same information as I did in the other forum.
Check this link and search for Example 8 and .
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#sthref6136
Also check the working example from asktom
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1035431863958
>
table names and where clauses have to be extracted
>
Now this is the tricky bit. You can extract the list of tables by getting the sql_id from v$sql and joining it with v$sql_plan. But sometimes you may not get all the results because the optimizer may choose to refine your query (check this link)
http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
and you can get the predicate information from the same table v$sql_plan but I will leave that area for you to do some R&D.
Regards
Raj
Edited by: R.Subramanian on Dec 10, 2008 3:14 AM -
SYS.SYSNTJ6LP..... table names in Oracle 10g R2 database
Can anyone inform me as to what / where the following tables came from - and also why a developer would us == in a table name?
SYS.SYSNTJ6LPx94kVxXgRAAAAAAAAA==
SYS.SYSNTJ6LPx94mVxXgRAAAAAAAAA==
SYS.SYSNTJ6LPx94oVxXgRAAAAAAAAA==
Thank you in advance,Recycle Bin:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2383
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2388
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2392
Message was edited by:
Kamal Kishore
Maybe you are looking for
-
Paid to allow edit text in PDF, and not working
I wanted to 'edit' text in PDF and followed the instructions, it told be to subscribe and pay to do this. I did subscribe and pay, but the functionality is still not working, keeps directing me to subscribe and pay.
-
Hello, I've been working on some Java as part of an engineering project, however my skills with Java aren't great, and my skills with GUI and Networking (which this involves) were only as a user before starting this. A problem that I haven't been abl
-
I cannot get any support, links and instructions take me in an endless circle to nowhere
-
Premiere Pro CC 2014 keeps crashing
I got the monthly subscription just yesterday to avail the software that I need for my school. It turns out that Premiere Pro keeps crashing. Like I haven't clicked on anything yet it automatically just shuts down itself. What do I do now? I don't wa
-
Data Loss With Inactivity On Phone
When users are using a phone to fill out the form, if there is a moment of inactivity and the phone goes to sleep, the data from the phone is lost, when the phone wakes up. Then the user has to start over again. Is there a way to fix this? Thanks for