Assigning table name explicitly
is it possible to get the table name from the user instead of hard-coding it in the pl/sql block itself?
will it cause any dependency problems? if yes, then how should i proceed?
thanks in advance
karthik.J
Let's introduce a bit simpler method for what you are trying to achieve. There are kind of built-in functions you may use. Consider:
SQL> SET serverout on
SQL> DECLARE
l_bool BOOLEAN;
irows INTEGER := 1;
buffer LONG;
BEGIN
OWA.cgi_var_name (1) := 1;
OWA.cgi_var_val (1) := 1;
OWA.init_cgi_env (1, OWA.cgi_var_name, OWA.cgi_var_val);
HTP.adddefaulthtmlhdr (FALSE);
l_bool :=
OWA_UTIL.tableprint (ctable => 'emp',
cattributes => '',
ntable_type => OWA_UTIL.pre_table,
ccolumns => '*',
cclauses => '',
ccol_aliases => '',
nrow_min => 0,
nrow_max => 500
WHILE (irows != 0)
LOOP
buffer := HTP.get_line (irows);
/* do whatever you like with the contents of the buffer */
/* You may write to a file or simply print it out */
DBMS_OUTPUT.put_line (buffer);
END LOOP;
END;
<PRE>
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
</PRE>
PL/SQL procedure successfully completed.
Similar Messages
-
How to assign table name for select query in loop.
Hi friends my requirement is count the no of records of all the database table which comes into an internal table ."Check the below coding". Iam fetching the tables from dd03l table into an internal table .plz give me a sujjesion how to assign a table name in select query in a loop.
SELECT tabname FROM dd09l
INTO TABLE i_dd09l
WHERE protokoll = 'X'.
IF sy-subrc = 0.
SORT i_dd09l BY tabname.
ENDIF.
LOOP AT i_dd09l.
SELECT COUNT(*) INTO val FROM i_dd09l-tabname.
IF sy-subrc = 0.
i_dd09l-count = val.
ENDIF.
MODIFY i_dd09l INDEX sy-index.
CLEAR val.
ENDLOOP.
error : 'I_DD09L-TABNAME' is not defined in the abap dictionary as a table.data: dy_table type ref to data,
dy_line type ref to data,
xfc type lvc_s_fcat,
ifc type lvc_t_fcat,
dy_field type ref to data.
LOOP AT i_dd09l.
perform get_structure using i_dd09l-tabname .
CREATE DATA dy_table TYPE TABLE OF (_dd09l-tab_name).
UNASSIGN <dyn_table>.
ASSIGN dy_table->* TO <dyn_table>.
SELECT COUNT(*) INTO val FROM <dyn_table>.
IF sy-subrc = 0.
i_dd09l-count = val.
ENDIF.
MODIFY i_dd09l INDEX sy-index.
CLEAR val.
ENDLOOP.
form get_structure using p_table.
data : idetails type abap_compdescr_tab,
xdetails type abap_compdescr.
data : ref_table_des type ref to cl_abap_structdescr.
Get the structure of the table.
ref_table_des ?=
cl_abap_typedescr=>describe_by_name( p_table ).
idetails = ref_table_des->components.
loop at idetails into xdetails.
clear xfc.
xfc-fieldname = xdetails-name .
xfc-datatype = xdetails-type_kind.
xfc-inttype = xdetails-type_kind.
xfc-intlen = xdetails-length.
xfc-decimals = xdetails-decimals.
append xfc to ifc.
endloop.
endform. "get_structure
Try like this hope it will work.
Regards,
madan. -
Dynamically assigning table name in select statement
how can i assign the table name dynamically in Select statement?
i tried following code
create or replace procedure proc1
as
x varchar2(100);
y varchar2(10);
begin
x='UNIT_MASTER';
execute immediate 'select unit_code into y from x where
rownum=1';
dbms_output.put_line(y);
end;
the procedure is created but when i execute the procedure the
error is shown in the execute immediate statementDo the following :
Create or replace procedure pro1 as
x varchar2(100);
y varchar2(10);
begin
x := 'UNIT_MASTER';
EXECUTE IMMEDIATE 'select unit_code from '||x||' where rownum
= 1' INTO y;
dbms_output.put_line(y); -
Problem in the output when the table name is explicitly assigned.
hi
Am using a procedure to copy the information's in a table to a flat file. my aim is to achieve this copy function by assigning the table name from user explicitly.
this is the program:
create or replace procedure jk(table_name in varchar2) is
sel_table varchar2(30);
l_bool BOOLEAN;
irows INTEGER := 1;
buffer LONG;
f utl_file.file_type;
BEGIN
sel_table:='select * from '||table_name;
f := utl_file.fopen('SAMPLE','tablename.txt','W');
OWA.cgi_var_name (1) := 1;
OWA.cgi_var_val (1) := 1;
OWA.init_cgi_env (1, OWA.cgi_var_name, OWA.cgi_var_val);
HTP.adddefaulthtmlhdr (FALSE);
l_bool :=
OWA_UTIL.tableprint (ctable => sel_table,
cattributes => '',
ntable_type => OWA_UTIL.pre_table,
ccolumns => '*',
cclauses => '',
ccol_aliases => '',
nrow_min => 0,
nrow_max => 500
WHILE (irows != 0)
LOOP
buffer := HTP.get_line (irows);
utl_file.put_line(f,buffer);
/* do whatever you like with the contents of the buffer */
/* You may write to a file or simply print it out */
DBMS_OUTPUT.put_line (buffer);
END LOOP;
END;
the error during execution:
SQL> @for.sql
Procedure created.
SQL> exec jk('CUST');
BEGIN jk('CUST'); END;
ERROR at line 1:
ORA-00931: missing identifier
ORA-06512: at "SYS.DBMS_UTILITY", line 125
ORA-06512: at line 2
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1120
ORA-06512: at "SYS.DBMS_SQL", line 323
ORA-06512: at "SYS.OWA_UTIL", line 595
ORA-06512: at "SYS.OWA_UTIL", line 689
ORA-06512: at "SYS.OWA_UTIL", line 1222
ORA-06512: at "XMLUSER.JK", line 14
ORA-06512: at line 1
thanks in advance
karthik.JYou better don't supply the whole select statement to OWA_UTIL.tableprint but only the table name!
-
Table name for plant assign to costcenter
Dear Experts ,
Please tell me table name " plant assigned to cost center " display the list
Thanks
BhaskarDear,
Use table CSKS.
Regards,
Chintan Joshi -
Table name for serial number assigned to delivery
Hi,
How can I find the table having serial number assigned in a Inbound Delivery(VL31N).
I need SAP Table having details of serial number assigned to a Inbound delivery
regards
bobbyHi Meet,
I don't want to configure any thing, I am making a report in that I need to show the serial numbers assigned to an Inbound delivery Item Qty. , therefore I need the table name from which I can pick the serial number assigned to delivery.
like
Inbound Deliver Numbers Matnr Qty Serial No.
10000018 PENCIL 2 1234466788
10000018 PENCIL 2 1234466989
thanks
bobby -
Need table name for Output Types and Account Assignment Types
Hi
pl let me know the table name for
1. Account Assignment Type
2. Output Types (All)
I need to download some company code specific data for both
Pl confirm
Warm Regards
VikcyHi Thanks for reply
You mean to say that Account Assignment Types = Account Assignment Category ????
Secondly In Table NAST, i can not see field "Output Type"
Pl confirm once which field give me company code specific "Output Type" data
Regards
Vicky -
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 -
How to pass the table name dynamically in xml parsing
Hi All,
I have created one procedure for parsing xml file which is working perfectly.
FORALL i IN t_tab.first .. t_tab.last
INSERT INTO Test_AP VALUES t_tab(i);Now I want to put the table name dynamically+. For that I have added one query and modify above code as follow:-
I have already declare dml_str varchar2(800) in declaration part.
Query is as follows:-
select table_name into tab_name from VERSION_DETAILS where SUBVERSION_NO=abc; -- here abc is variable name which contains values.
FORALL i IN t_tab.first .. t_tab.last
dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
EXECUTE IMMEDIATE dml_str USING t_tab(i);But it's not working. How I will resolve this or through which way I achieved the intended results. Anyone can guide me on this matter.
Thanks in advance for your help...Hi,
But it's not working.Don't you think it would help to give the error message?
Put the assignment before FORALL.
FORALL only accepts one subsequent DML statement (static or dynamic SQL) :
dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
FORALL i IN t_tab.first .. t_tab.last
EXECUTE IMMEDIATE dml_str USING t_tab(i); -
Bex Query: Too many table names in the query The maximum allowable is 256
Hi Experts,
I need your help, Im working on a Query using a multiprovider of 2 datastores, I need to work with cells to assign specific acconts values to specific rows and columns, so I was creating a Structure with elements from a Hierarchy, but I get this error when I'm half way of the structure:
"Too many table names in the query. The maximum allowable is 256.Incorrect syntax near ')'.Incorrect syntax near 'O1'."
Any idea what is happening? is ti possible to fix it? do I need to ask for a modification of my Infoproviders? Some one told me is possible to combine 2 querys, is it true?
Thanks a lot for your time and pacience.Hi,
The maximum allowable limit is 256 holds true. It is the max no. of characteristics and key figures that can be used in the column side. While creating a structure, you create key figures (restricted or calculated) and formulas etc.. The objects that you use to create these should not be more than 256.
http://help.sap.com/saphelp_nw70/helpdata/EN/4d/e2bebb41da1d42917100471b364efa/frameset.htm
Not sure if combination of 2 query's is possible. You can use RRI. Or have a woorkbook with 2 queries.
Hope it helps. -
How to find table name(s) in a dynamic query
In one of our (9iAS PORTAL)applications, any user can able to run their query statment and get output. All queries will be executed as dynamic SQL thru' a common shema/user who has 'SELECT' privilege on all tables but all users don't have this privilege on all tables. Now, before executing any query I need to find out what are the table name(s) used in this query to check the privilege for the respective user. How do I extract all table names being used in a dynamic query?.
Thanks
-KrishnamurthyI guess that his users log in to application first, then application uses one account to log in to database, so application are not direct database user since all users share the same account to database. If so, when a user lgins in, you may write it down from application to a database audit table, and you need to write down the dynamic query to the database audit table too, then you may query that audit table to find out. up to here, it looks that your application has to do more to assign what role to a user running the application, since database does not know what user is assessing it.
-
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 get the table name and bind columns names in an INSERT statement ?
I have an INSERT statement with input parameters (for example
INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
without parsing the statement which is the name of table to
insert to and the corresponding columns.
This is needed to generate the SELECT FOR UPDATE statement to
refetch a BLOB before actually writing to it. The code does not
know in advance the schema (generic code).
Thanks in advance,
Joseph CanedoOnce you have prepared your statement, you can execute the
statement with the OCI_DESCRIBE_ONLY mode before binding any
columns. Then you can use OCIParamGet to find out about each
column (column index is 1-based). You should get OCI_NO_DATA or
ORA-24334 if there are no more columns in the statement. Note
that the parameter descriptor from OCIParamGet is
allocated/freed internally by OCI; you do not need to manage it
explicitly. The parameter descriptor is passed to OCIAttrGet in
order to obtain for instance the maximum size of data in the
column OCI_ATTR_DATA_SIZE. You can also get the column name in
this way, although I do not remember the #define off the top of
my head. Getting the table name appears to be much more
difficult; I have never had to do that yet. Good luck. -Ralph -
I'm trying to install VMM 2012 SP1 on a Windows Server 2012 machine and it fails with this error,
the scenario is as follows,
Old database (from 2012 RTM) exists on remote SQL 2012 SP1 server
Server was 2008 R2 SP1 so I decided to make a fresh installation of 2012 with the same name
installed ADK
specific error: 01:42:13:VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.VirtualManager.Setup.Exceptions.BackEndErrorException, Exception.Message: Unable to assign the name NO_PARAM to this host because this name is already in
use.
please helpI had a similar problem today when upgrading from SCVMM 2012 RTM to SCVMM 2012 SP1 RTM. To re-create the issue you describe originally you can actually just uninstall SCVMM 2012 SP1 RTM with "retain data" option and re-install the software on the same
computer (with the same name of course), attaching it to the retained DB. If you change the SCVMM server name I believe it will make some things go wrong after your install, like missing VM template passwords for example as the data gets encrypted in
the DB. Maybe it didn't but I didn't risk it. I definitely know if you change service accounts on a scenario like this you will be without the encrypted DB data which isn't much fun. To avoid changing the computer name, if you look in the setup log
files in %systemdrive%\ProgramData\VMMLogs\, specifically the SetupWizard.log file. You will see details on it failing because the same computer name is in the DB table "dbo.tbl_ADHC_AgentServer" and until it is removed from that table I wasn't able to get
the install to complete at all. The error in my logs looked something like this "InnerException.Type: System.Data.SqlClient.SqlException, InnerException.Message: Violation of UNIQUE KEY constraint 'unique_ADHC_AgentServer_ComputerName'. Cannot insert duplicate
key in object 'dbo.tbl_ADHC_AgentServer'. The duplicate key value is (computername.is.writtenhere). The statement has been terminated." In the row data in the DB it also seems to suggest that the computer name had "Virtual Machine Manager Library Files" on
it which is strange since I always remove the local SCVMM server as a library server after I install it and use an off box library server. -
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
Maybe you are looking for
-
HT204088 How can I send the recovery email to reset my security questions?
My question is the header above this statement.
-
Is there any template framework to generate flex pages at runtime?
Earlier I have worked on Apache Velocity project. With a single velocity template I was able to render 800+ different jsp pages at runtime. Is there any framework/functionality similar to Velocity or Freemarker framework, in flex?
-
Using Applets in Lotus Notes R5
I was wondering whether anyone has successfully used Java applets in Notes Client applications (not web applications). Specifically, what JDK version can I assume to work. I would think JDK 1.1.6 from the documentation of the R5 Domino Server, but I
-
CS3 - Keywords and Description Error
I have tried to update our Keywords, and get the following error: If I click OK twice, it goes away, and I am able to type new keywords in. However after entering new keywords and clicking OK on that screen, I get another error: "You cannot perform
-
DMG's not auto mounting after download
I've recently switched to using Safari as my main browser, and I'm having trouble with DMG's not mounting after I successfully download them. I do have the option enabled 'Open "safe" files after downloading' turned on, and some files auto-open after