MIRO Reversal Ref - Table Name
Hi All,
I had reversed one miro document and I want that system should not pick reversal documents in my report. Can anyone tell me in which table does it maintain the Reversal Reference of MIRO.
Full points will be alloted if problem solved.
Regards,
Ankur
Hi,
How you have reversed MIRO document?
You have to use T Code: MIR8.
All the documents will be stored in BKPF and BSEG. from these tables you can filter Reversed documents.
Thanks
Chandra
Edited by: BCSJVS ChnadraBS on Oct 21, 2009 6:02 PM
Similar Messages
-
How to populate table name dynamically to a ref cursor
Hi,
I came accross with a requirement that in ref cursor how can i pass the table name
for ex
open ref_cur for select * from emp;Like that i've some 100 tables , instead of typing each and every time the table name
that should be dynamically changed
Like below
open ref_cur for select * from &tbl_nm;How can i do that??
Thank youI assume you are using SQL*Plus:
SQL> variable ref_cur refcursor;
SQL> begin
2 open :ref_cur for select * from &tbl_nm;
3 end;
4 /
Enter value for tbl_nm: emp
old 2: open :ref_cur for select * from &tbl_nm;
new 2: open :ref_cur for select * from emp;
PL/SQL procedure successfully completed.
SQL> print ref_cur
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 12/17/1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 02/20/1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 02/22/1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 04/02/1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 09/28/1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 05/01/1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 06/09/1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 04/19/1987 00:00:00 3000 20
7839 KING PRESIDENT 11/17/1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 09/08/1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 05/23/1987 00:00:00 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 12/03/1981 00:00:00 950 30
7902 FORD ANALYST 7566 12/03/1981 00:00:00 3000 20
7934 MILLER CLERK 7782 01/23/1982 00:00:00 1300 10
14 rows selected.
SQL> begin
2 open :ref_cur for select * from &tbl_nm;
3 end;
4 /
Enter value for tbl_nm: dept
old 2: open :ref_cur for select * from &tbl_nm;
new 2: open :ref_cur for select * from dept;
PL/SQL procedure successfully completed.
SQL> print ref_cur
DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
SQL> SY. -
From which table i can get Customer No, Cust Ref, Contact name
Hi CRM Experts,
I want some fields ie (Customer Number, Customer Reference, Contact Name, Account Manager) from which table i can get this fields according to the Object_id.
Provide any Tables names or Functional ModuleHello Santu,
To get this info in the Sales order, following steps ways you can go:
1. Get Sales Order header GUID from table CRMD_ORDERADM_H, as you have OBJECT_ID.
2. Get the Sales order details by passing Header GUID to FM CRM_ORDER_READ and the exporting parameter table ET_PARTNER will give the parnter details of the Sales order. Read this ET_PARTNER table with partner function 0000001 i.e. sold to party which is customer number and check the ET_SALES Table where in PO_NUMBER_SOLD field will be refering to customer ref may be item level or header level depends on business,
3. regarding the Contact name..check what is business requirement whether end customer contact or contact person of the customer.
Hope it will help,
Regards,
Arjun
<b>Reward points if it helps,</b> -
Table name for Invoice created with PO ref
hi,
I required Table name for Invoice created with PO ref.
Regards,
AliHI,
Check the table RSEG: Document Item: Incoming Invoice
Look for the fields BELNR and EBELN
Regards
KK -
JDBC Schema and Table Names Reversed
Hi,
We're currently evaluating CR4E but are unable to successfully run/preview any reports.
We have successfully created a JDBC connection using the generic JDBC driver. We are connecting to an Ingres database. The connection is successful and we can browse databases/schemas/tables with no problem. The problem is with the SQL that the reporting engine is generating.
A simple example:
SELECT "currency"."description" FROM "currency"."john" "currency"
In this statement, "currency" is actually the table and "john" is the schema name.
The query should read:
SELECT "currency"."description" FROM "john"."currency" "currency"
Help would be appreciated as we're completely stuck.
Many thanks,
Darran SmithHi Tej,
Thanks for clarifying the issue on the JRC.
Executing:
SELECT "price_type"."currency", "price_type"."description" FROM "price_type"."john" "price_type"
against the DB results in "Table 'john' does not exist or is not owned by you" as expected.
Executing
SELECT "price_type"."currency", "price_type"."description" FROM "john"."price_type" "price_type"
against the DB works just fine.
I amended my code to simply call:
CRJavaHelper.changeDataSource(reportClientDocument, userName, password, connectString, driverName, JNDIName);
and changed the CRJavaHelper.java file around line 145 that originally reads:
newTable.setQualifiedName (origTable.getAlias ());
I tried setting the qualified name to various different things:
"price_type"
"john.price_type"
"otherSchema.price_type"
None of these worked, but they did produce different things in the JDBC trace log. I've uploaded the JDBC log file to showing what happens with either "price_type" or "john.price_type":
[http://www.romofabrics.com/iijdbc.txt|http://www.romofabrics.com/iijdbc.txt]
As you can see, everything looks OK (including the schema and table name) until the very final select statement is created.
When you say that generic JDBC is supported, is that what I'm effectively using?
Cheers,
Darran -
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 -
Tables name for Customer Payment Report
hiiiiiiiiii
can anyone tell us the tables name for the report customer payment receive..?
Thanks & Regards
Rekha sharmaHi Rekha
when you pass following entry
Bank dr
to Customer
All header data like co code currecy ref , period etc goes to BKPF,
line item - Bank Dr ( its a GL entry ) goes to BSIS
line item- Customer Cr ( its a AR entry ) goes to BSID or BSAD depends it is cleared or still open
Also both the line items goes to BSEG
Hope this helps.
Regds
Rajiv -
How-To Find the R/3 Table Name for a BW Data Source
Hi there,
Please advice how can I find the respective table name in R/3 for a particular BW DataSource ?
P/S : I would like a technical how-to instead of referring the table names at HELP.SAP.COM
For instance, for my Standard Business Content Info Cube 0CCA_C03(CO-OM-CCA: Statistical Key Figures) which extracts from BW Data Source: 0CO_OM_CCA_4
My question is, how can I find out which specific tables in SAP R/3 is this Data Source pulling the data from ?Hi Dinesh,
Data Source: 0CO_OM_CCA_4
1) In my R/3, I ran SE16 : Table -> ROOSOURCE
2) OLTPSOURCE -> 0CO_OM_CCA_4
3) EXMETHOD = F1
(Hence, I assume the Extraction Method is a Function Module)
4) So, Function Module = BWOM_RS_GET_CTRSTA
5) Run SE37 in R/3
How do I find out the specific tables in this Function Module ?
Would you please list them for me, so I can further refer to the individual tables ? -
Help passing table name as parameter to a procedure
Hello,
i'm trying to write a procedure that takes a table name as input and uses a cursor to select a column,count(1) from the passed table to the cursor. The procedure i've come up with is as follows,
CREATE OR REPLACE
PROCEDURE excur(
p_tbl user_tables.table_name%type )
AS
type rc is ref cursor;
c rc;
res BOOLEAN;
BEGIN
open c for 'SELECT columnA,COUNT(1) FROM'|| p_tbl||';';
close c;
END excur;When i try to execute it, an error pops up informing that a table cannot be used in this context. As in i cannot pass a table name as an argument to a procedure. Kindly guide as to how to solve this situation.vishm8 wrote:
Hello,
i'm trying to write a procedure that takes a table name as input and uses a cursor to select a column,count(1) from the passed table to the cursor. The procedure i've come up with is as follows,
CREATE OR REPLACE
PROCEDURE excur(
p_tbl user_tables.table_name%type )
AS
type rc is ref cursor;
c rc;
res BOOLEAN;
BEGIN
open c for 'SELECT columnA,COUNT(1) FROM'|| p_tbl||';';
close c;
END excur;When i try to execute it, an error pops up informing that a table cannot be used in this context. As in i cannot pass a table name as an argument to a procedure. Kindly guide as to how to solve this situation.Generally speaking, Dynamic code is a bad idea for a staggering number of reasons.
That aside, what do you want to return? You're selecting a column and applying an aggregate function (count) but you're not grouping, that doesn't usually work out too well.
TUBBY_TUBBZ?select owner, count(*) from all_objects;
select owner, count(*) from all_objects
ERROR at line 1:
ORA-00937: not a single-group group functionWhy do you perceive the need to be able to take in ANY table name, can't you design an application where table names are known at compile time and not run time? -
How to display a table name in the report
Hi,
I have a requirment about the display of pivot table. When we drag a column to see its result, we always see his column name, now what I want to show are both table name and column name..
like:
District_D
Region District
China Beijing
India Chennai
Regards,
Anne
Edited by: anne on Oct 25, 2011 2:39 AMHi Anne,
If you want to implement Dpka's solution (hardcoding table and column values in column heading and add line break in between), you will need to add the below entry in instanceconfig.xml file. Refer http://gerardnico.com/wiki/dat/obiee/hardenxss
<HardenXSS>false</HardenXSS>
This will enable the HTML elements to be treated as HTML and not plain text. After adding the above entry in the xml, restart your presentation services and test your solution.
Thanks -
Using a Variable for Table Name with a cursor
Hello All
Is it possible to use a Parameter passed to a procedure as the table name
in a cursor selection statment. I thought the below would work but I get
a error. Does anyone have any ideas?? The Error is listed below to.
Here's the code I just complied
CREATE OR REPLACE PROCEDURE Dup_Add(NEWQATABLE IN VARCHAR2) IS
CURSOR c1 IS SELECT MUNI,PROV FROM NEWQATABLE GROUP BY MUNI, PROV;
c1rec c1%ROWTYPE;
BEGIN
OPEN c1;
LOOP
FETCH c1 INTO c1rec;
EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(c1rec.MUNI);
END LOOP;
CLOSE c1;
END;
Here is the errors
LINE/COL ERROR
3/8 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
3/15 PL/SQL: SQL Statement ignored
3/38 PLS-00201: identifier 'NEWQATABLE' must be declared
5/7 PL/SQL: Item ignored
10/3 PL/SQL: SQL Statement ignored
10/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
12/3 PL/SQL: Statement ignored
12/24 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
LINE/COL ERROR
Thanks
PeterIf you are going to have a table name or a column name as a parameter, then you have to open the cursor dynamically. The following example uses Native Dynamic SQL (NDS) to open a ref cursor dynamically. I also eliminated the group by clause, since it is intended for use with aggregate functions and you weren't using an aggregate function. Also notice that there are some other differences in terms of defining variables and fetching and so forth.
SQL> CREATE TABLE test_table
2 AS
3 SELECT deptno AS muni,
4 dname AS prov
5 FROM dept
6 /
Table created.
SQL> CREATE OR REPLACE PROCEDURE Dup_Add
2 (newqatable IN VARCHAR2)
3 IS
4 TYPE cursor_type IS REF CURSOR;
5 c1 cursor_type;
6 c1muni NUMBER;
7 c1prov VARCHAR2 (20);
8 BEGIN
9 OPEN c1 FOR 'SELECT muni, prov FROM ' || newqatable;
10 LOOP
11 FETCH c1 INTO c1muni, c1prov;
12 EXIT WHEN c1%NOTFOUND;
13 DBMS_OUTPUT.PUT_LINE (c1muni || ' ' || c1prov);
14 END LOOP;
15 CLOSE c1;
16 END;
17 /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> SET SERVEROUTPUT ON
SQL> EXECUTE dup_add ('test_table')
10 ACCOUNTING
20 RESEARCH
30 SALES
40 OPERATIONS
PL/SQL procedure successfully completed. -
Dynamic Select query is failing with error "Invalid Table Name"
OPEN rc FOR 'SELECT count(*) from :s' USING tab_name;
fetch rc into rec_count;
CLOSE rc;
my requirement is to build dynamic select query to retrieve the total count of rows in each table ( variable tab_name contains the table_name )
But I am getting stuck by this errror, not sure if there is any alternative !
ORA-00903: invalid table name
ORA-06512: at line 43OPEN rc FOR 'SELECT count(*) from '||tab_name;
fetch rc into rec_count;
CLOSE rc;
-- This will work
1. Create a sql statement.
2. Open ref cursor for that statement. -
Field symbols as Table name and in where condition in a select statement
Hello All,
I have a scenario where I need to get user input on table name and old field value and new field value. Then based on user input, I need to select the record from the database. The column name for all the tables in question is different in the database, however there data type is the same and have same values.
I am not able to use a field symbol for comparing the old field value to fetch the relevant record in my where clause.
I cannnot loop through the entire table as it has 10 millilon records, please advice on how to add the where clause as field symbol as the table name is also dynamically assigned.
Here is my code:
DATA: TAB LIKE SY-TNAME,
TAB_COMP1 LIKE X031L-FIELDNAME,
TAB_COMP2 LIKE X031L-FIELDNAME,
NO_OF_FLD TYPE N.
DATA: BEGIN OF BUFFER,
ALIGNMENT TYPE F,
C(8000) TYPE C,
END OF BUFFER.
FIELD-SYMBOLS: <WA> TYPE ANY,
<COMP1> TYPE ANY,
<COMP2> TYPE ANY.
GET TABLE NAME GIVEN BY USER IN LOCAL VARIABLE
TAB = TAB_NAME.
CREATE FIELD NAME BASED ON THE TABLE NAME ENTERED.
CASE TAB_NAME.
WHEN 'OIUH_RV_GL'.
KEY FIELD
TAB_COMP1 = 'GL_GL_SYS_NO'.
NO_OF_FLD = 1.
WHEN 'OIUH_RV_OPSL'.
KEY FIELD
TAB_COMP1 = 'OPSL_GL_SYS_NO'.
NO_OF_FLD = 1.
WHEN 'OIUH_RV_OTAX'.
NOT THE ONLY KEY FIELD
TAB_COMP1 = 'OTAX_GL_SYS_NO'.
TAB_COMP2 = 'OTAX_TAX_POS_NO'.
NO_OF_FLD = 2.
WHEN 'OIUH_RV_GTAX'.
NOT THE ONLY KEY FIELD
TAB_COMP1 = 'GTAX_GL_SYS_NO'.
TAB_COMP2 = 'GTAX_TAX_POS_NO'.
NO_OF_FLD = 2.
WHEN OTHERS.
EXIT.
ENDCASE.
SET FIELD SYMBOL WITH APPROPRIATE TYPE TO BUFFER AREA.
ASSIGN BUFFER TO <WA> CASTING TYPE (TAB).
How to add where clause and remove the if condition in the select -- endselect
SELECT * FROM (TAB) INTO <WA>.
ASSIGN COMPONENT TAB_COMP1 OF STRUCTURE <WA> TO <COMP1>.
IF NO_OF_FLD = 2.
ASSIGN COMPONENT TAB_COMP2 OF STRUCTURE <WA> TO <COMP2>.
ENDIF.
IF <COMP1> = OLD_SYS_NO.
code for updating table would come here
WRITE: 'MATCH FOUND'.
EXIT.
ENDIF.
ENDSELECT.
Please advice. Thanks much.
Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:33 PM
Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:34 PM
Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:35 PM1. Create single column table for holding field name depending on the table entered.
2. Take input from user: for e.g. table_name
3. Using case load single column table with required fields
for e.g.
CASE TAB_NAME.
WHEN 'OIUH_RV_GL'.
Append 'GL_GL_SYS_NO' to KEY_FIELD --> KEY_FIELD is the single line internal table as mentioned in step 1.
WHEN 'OIUH_RV_OPSL'.
Append 'OPSL_GL_SYS_NO'.
WHEN 'OIUH_RV_OTAX'.
Append 'OTAX_GL_SYS_NO' to KEY_FIELD.
APPEND 'OTAX_TAX_POS_NO' to KEY_FIELD.
WHEN 'OIUH_RV_GTAX'.
Append 'GTAX_GL_SYS_NO' to KEY_FIELD.
APPEND 'OTAX_TAX_POS_NO' to KEY_FIELD.
WHEN OTHERS.
EXIT.
ENDCASE.
Now depending on the table name you have required column ready
4. Create dynamic internal table using following sudo code
Fill the fieldcatlog using the single column field table and DD03L table, See what all columns from DD03L you want to fill in field catlog table
loop at internal table with all the fields.
move it to field catalog.
append field catalog.
endloop.
5. Pass this field catalog table to static method create_dynamic_table method
DATA table TYPE REF TO DATA. --> data object for holding handle to dynamic internal table.
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = fieldcatalog_tab
importing
ep_table = table.
6. Now assign table reference to field symbol of type table.
ASSIGN table->* to <field-tab>.
7. Also create work area <field-wa> using refrence of table.
create data object wa LIKE LINE OF <field-tab>.
ASSIGN wa->* to <field-wa>.
8. Also define field symbol for field name.
for e.g. <field_name>
4. Dynamic internal table is ready
5. Now execute the select statement as follows:
SELECT (KEY_FIELD)
INTO <ITAB> --> created dynamically above
FROM (TABLE_NAME)
WHERE (WHERE). --> WHERE is single line internal table having line type of CHAR72. So for every old value there will be one line
Where condition is same as like we give in static way only difference in this case it will stored in internal table line wise.
In this case you need to append all your where condition line by line in to WHERE.
5. To fill this dynamic internal table using ASSIGN COMPONENT <Comp_number> OF STRUCTURE <field-wa> TO <field-name>
So in this case if first field of structure STRUCT1 is user_id then sudo-code will be
loop at internal table containing list of fields into field_wa --> single column field table
ASSIGN COMPONENT field_wa OF STRUCTURE <field-wa> TO <field>. "Here field_wa is wa area for single column internal table holding all the fieldnames.
Now <field-name> points to user_id field. Move some value into it as nornally we do with variables.
Move <your_new_value> to <field-name>. --> Assign new value
or
<field-name> = <your_new_value>.
Endloop.
6. After completing all the fields one row will be ready in <field_wa>.
APPEND <field_wa> to <field_tab>.
Hope this helps you.
Thanks,
Augustin. -
Table name required to find tax value in each PO items
Hi Guys,
Need table name where the Tax percentage or amount is maintained for each po line items.
I tried in KOMG but it a structure and i cannot able to fetch the values.
Let me know if more details are required for better requirement identification
Regards
palanihi
TAX TABLES
for excise check table J_1IEXCHDR for header
J_1IEXCDTL for item excise
The Table name used to find the Tax Values are
KOMV: Pricing Communications-Condition Record
KONV: Conditions (Transaction Data)
From the above tables you can refer the fields below.
KAWRT
KBETR
Fetch the corresponding records based on the field
KNTYP
regards
kunal -
Table name and field name for accounting and material document in MM
Hi
Table name and field name for accounting and material document in MM
how can we diffreentiate the accounting document in MIGO and MIRO ?Hi,
For Goods reciept documents you can search from the tables MKPF-Header: Material Document and MSEG-Document Segment: Material,
and for Invoice documents you can search in tables BKPF-Accounting Document Header and BSEG-Accounting Document Segment.
For differentiating the Accounting documents in MIRO and MIGO based on posting key and document types for GRN -document key is -WE and for MIRO document is -RE.......
Hope this may help you.....................
Maybe you are looking for
-
Windows 8.1 won't load on my i mac
Hi all i need to run a electrical test cert program on my Mac that requires windows, i have just purchased a new copy of windows 8.1 but my superdrive does not seem to recognise either the 32 or 64bit CD disk via bootcamp, i also purchased a program
-
i recently been noticing problems with some ordering of my albums in my itunes window i display my albums by "albums by year" but some albums are placed later when they have an earlier album date i've tried changing the tags, changing the date etc bu
-
If the make this idea i would like to apple remember me !! and at lease receive something back!
-
hi, i just bought a samsung 2263 external monitor for my macbook pro 2.53 Ghz. but i found that i need to set the resolution to 1680*1050 but i cant find it in the list of possible resolution on the mbp. is there any way of doing this? do i have to u
-
Solaris 8 & Dell PowerEdge 6300
This message goes to Sun Microsystem. I work for a Small School District which is 98% Windows NT. For more than a year I've been looking for ways to introduce a UNIX/LINUX Solution into our network. Finally, the best opportunity arrives: We need to s