Want to know the table names as well as number of rows
hi...every one.....i want to explain more in detail to previous thread i have posted.
actually i need to display all the table names and number of rows for each, in a schema(like AP,HR,....)
it's must that i should do it by using a stored procedure.
so the best way for this would be by using cursor and loop.
so please help me in solving this question.
i need to display all the table names and number of rows for each, in a schema(like AP,HR,....)
it's must that i should do it by using a stored procedure.Homework ?
Anyway, try this
SQL> create or replace procedure count_rows
2 is
3 nrows number;
4 str varchar2(100);
5 begin
6 for T in (select table_name from user_tables
7 order by table_name)
8 loop
9 str := 'select count(*) from '||T.table_name;
10 execute immediate str into nrows;
11 dbms_output.put_line(T.table_name||' '||nrows);
12 end loop;
13* end;
SQL> /Don't forget to "set serveroutput on" when you execute it.
Similar Messages
-
I want to know the table name and field name of this description
i want to know the table name and field names of this description
supplieriddomainHi SV,
Try this:
1) Go to SE15 (Repository info system)
2) Expand ABAP Dictionary
3) Expand Fields
4) Click on Table Fields
5) Enter the field name you want to search in field name or use wild cards with keywords in short decription field (like supplier ) and Execute.
OR
If it's a screen field, do a F1 on the field and click on Technical information on the help window popped up from Menu..this will tell you the field name along with structure or table name.
Hope this helps you.
Regards,
Vivek -
I want to know the table name and field names of this descriptions
i want to know the table name and field names of this descriptions
FPAApprover.UniqueName,FPAApprover.PasswordAdapterHi Ramana,
Go to the system table DD03T , use the table contents..
In the field ' DDTEXT ' , give your keywords...
for ex : say Unique name... as UniqueName* in field DDTEXT
Execute.. u will find the entries....
May be ur problem will be solved...
Thank u...
Reward if useful and close the thread..
Rajiv -
Hi experts,
I want to find information which is stored in the particular transaction (find the table name)
tcode is COR3 in that enter process order and enter after that go to adminstrative data in that created user.
I want find user information will be stored in which table . pls help me in thisHi,
There are both technical and functional ways of knowing the Table Names:
1. You can ask your functional consultant to give you the basic or the main table name. From there you can use a where used list to get the list of all the tables that are connected to this table by the foreign key relationship.
2. You can get to know the name of the package from the package hierarchy. You can also use se84 to find the objects from the repository information browser.
3. You can use the ST05 transaction to run and SQL trace to find all the tables that where accessed during the TCODE execution. But here you need to be precise as it will show you all the names of all the database tables accessed.
Hope this will help you.
Thanks,
Samantak. -
Want to know the tables of a particualr transaction code
Hi,
whatz the technique of knowing the tables of a particular transaction code.
I have got a tcode - va01.
Want to know the tables of this transaction code.
How...?Hi,
If you want know about transaction code table details
1. Enter Tcode 'ST05' (SQL Trace on), You can find how many tables are involved in the tcode
2. Goto SE93, enter VA01 and find the program name, Go to object browse (se80) and enter program name and find out how many tables are invloved (Another way go to search- Give search term 'Tables' -> there u can find the tables involved.
Regards
Bhupal Reddy -
I like to know the table name where all the Interface name ( Data Type and
Dear Friends,
I like to know the table name where all the Interface name ( Data Type and Message Type in IR ) is stored.
Thanks.Hi,
Please find the repository APIs in the SE24 class builder that can be used for accessing repository objects from the ABAP stack of SAP XI. Check CL_SRAPI* in the SE24 transactions for digging further.
location of interface objects
CL_SRAPI_DATA_TYPE---data type
CL_SRAPI_DATA_TYPE_ENH---data type enhancement
CL_SRAPI_FAULT_MESSAEG_TYPE--fault message type
CL_SRAPI_MESSAGE_TYPE--message type
CL_SRAPI_INTEGRATION_SCENARIO--integration scenario
have a look at the table SXMSPMAST, SXMSCLUP & SXMSCLUR
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4fbe7b8e-0a01-0010-b69b-b7e717378f22#search=%22SXMSPMAST%20%2B%20XI%22
That document has references to lot of tables maybe it can be of use to u.
Look at the below thread for SXMB_MONI tables and Function module:
In Which Database Table the Messages are Stored in XI
Message Monitoring --> corresponding tables?
Edited by: Dharamveer Gaur on Oct 8, 2008 10:40 AM -
How to know the table name of an InfoCub if we know cube technical name?
How to know the table name of an ODS if we know the ODS technical name?
Thanks
Message was edited by: Kevin Smithhi kevin
if the ODS is a standard ODS then you check the following way in SE16
(for custom ODS objects)
/BIC/A<ODS technical name>00 (Active Data Table)
/BIC/A<ODS technical name>40 (Activation Queue)
/BIC/B<10 digit number> (Change Log Table)
(for SAP defined ODS Objects)
/BI0/A<ODS technical name>00 (Active Data Table)
/BI0/A<ODS technical name>40 (Activation Queue)
/BI0/B<10 digit number> (Change Log Table)
and for Transactional ODS Object you will have only the active data Table. So you need to check with /BIC/A<ODS technical name>00 for the custom ODS objects and /BI0/A<ODS technical name>00 for SAP defined ODS objects.
hope this helps.
regards
vijaykumar -
To know the table names that contains changed and old PO values.
Dear All,
Please let me on the table names that contains changed PO value and old PO value details for which I'll be grateful.
Regards,
S.SureshHello,
Check the table CDHDR and CDPOS.
Cheers,
Vasanth
Edited by: Vasanth M on Feb 18, 2008 12:08 PM -
I have a value 'JPM'.wants to know the table containing this value.
My application is throwing error becouse of one of the value (JPM) .
Can i know which table has this value.
I cannot use USER_TABB_COLUMNS since i dont know the COLUMN_TYPE.
i dont know wat kind of field is this.
the schema is not big and it contains approx. 500 objects.
Kindly suggest.Mysterious. This is why I dislike dynamic SQL: you can't tell whether it's really going to work until you run it. All I can suggest is some debugging. I don't really like to encourgae the use of the Devil's Debugger, but you can change the inner loop to show which column it's about to execute and hence try to figure out what goes wrong when it fails....
SQL> DECLARE
2 n NUMBER;
3 BEGIN
4 FOR r IN ( SELECT owner, table_name, column_name
5 FROM all_tab_columns
6 WHERE data_type IN ('CHAR', 'VARCHAR2')
7 AND owner = 'A'
8 AND data_length >=3 )
9 LOOP
10 dbms_output.put_line(r.owner||'.'||r.table_name||'.'||r.column_name);
11 EXECUTE IMMEDIATE
12 'select count(*) from '||r.owner||'.'||r.table_name||
13 ' where '||r.column_name||' = ''JPM''' INTO n;
14 IF n != 0 THEN
15 dbms_output.put_line('FOUND='||r.owner||'.'||r.table_name||'.'||r.column_name);
16 END IF;
17 END LOOP;
18 END;
19 /
A.DEPTREE.TYPE
A.DEPTREE.SCHEMA
A.DEPTREE.NAME
A.IDEPTREE.DEPENDENCIES
A.T1.COL2
A.TEO.WHATEVER
A.TT1.COL1
PL/SQL procedure successfully completed.
SQL> Cheers, APC -
How to know the table names n field names 2
hi,
with the use of the below fileds
Vendor number, material number, PO number, Purchasing group/Buyer, PO creation date, PO delivery date, PO created by
I should get the out put with the fields....
PO, PO date, PO group/buyer, purchasing org, vendor, PO line, order quantity, Unit, Material, Description, ST LOC SHELF BIN, ST LOCBULK BIN, QTY TO BE RECV, QTY RECEVED.
Can anyone let me know the corresponding fields and tables based upon the input fields
SRIHi,
1. press F1 functional key on the field you required
2. Click on the technical information button which will be beside the book button
3. Then Double click on the field name
4. IF the display one is a structure then double click on the data type
5. Now you are in Domain of the field name.. keep a cursor on the domain
and choose the where used list (with arrows)
6. As MIGO transaction is related to the GOODS receipt..
check one among the following tables:
1. MKPF,
2. MSEG,
3. EKBE
4. MVER
5. SO31
6 SO13
7. SO 11.
Award points if it is helpful
Br,
Laxmi -
How to know the table names n field names
hello Experts,
can anyone let me the corresponding field names and table names plz....
Vendor number, material number, PO number, Purchasing group/Buyer, PO creation date, PO delivery date, PO created by...
Please can one shed some light on it...
SRIhi
material number - matnr - mara
vendor number - lifnr - ekko
PO number- vbeln - ekko
Purchasing
> group/Buyer - ekgrp - ekko
PO creation date - aedat -ekko
PO created by - ernam - ekko
we get details regarding the details of vendors or customers in the header data table
and regarding the item in item data tables...here ekko is the header table for purchase order details.....
hope this helps
> hello Experts,
>
> can anyone let me the corresponding field names and
> table names plz....
>
> Vendor number, material number, PO number, Purchasing
> group/Buyer, PO creation date, PO delivery date, PO
> created by...
>
> Please can one shed some light on it...
>
> SRI -
Does illustrator CS5 list the images used in a particular document.
By this I mean does it tell you the name of the actual images.But if the file has been embedded, the file name is lost.
-
I want to know the tables in FI for my report requirement
I have a requirement to develop a report which contains selection-screen as
Company code ---
G/L Account o 305400
o 305500
Period --- to ---
305400 is stock-excess
305500 is stock-shortage
if user enters company code,selects first radiobutton and enters period as 11 to 12 it should display all the Reference documents with date,reference document(4900066123), material, plant, qty, value(6999.33)
please go through FS10N
my requirement is same like this tcode
but my report should display all the reference documents((4900066123)) with amounts in single screen not the total amount for G/L account(305400)
can any one tell me from which tables i have to pull the data
the tables which have relation between g/l account and reference document and period
thanks & regards
Pradeep Reddy.MHi,
U can find all d details regarding FI tables & their relations here....
http://www.sapgenie.com/abap/tables_fi.htm
You can find the details about the FI module here
http://www.sap-img.com/sap-fi.htm
Thanks,
Sankar M -
Want To Know The Name OF Company Table
In Administration -> Choose Company, It gives me the list of all Company Name,Database Name,Version etc .
I Want to know the Table Name which has all information about company name and all.
RegardsThe db version is stored in table CINF (Version). Others information gave you members already. If you want have list of all dbs on the server like in login screen, you should use select from information schemas as
select * from information_schema.tables where table_name = 'CINF'
and youll receive all databases, where the CINF table is, then create tmp table (dbname, company, version fields) and in cursor go through all results from select * from information_schema.tables where table_name = 'CINF'
make insert into this tmp table. At the end make select from this tmp table. -
How To Know The Column Name Of The Internal Table
HI ,
i have an internal table .
f1 f2 f 3 f4 f5
matnr mbrsh mtart meins minbe
i want to know the column name which depending on the value i.e . if it is matnr then f1 , if mbrsh it is f2 ..so on
Thanks.Hi ,
thanks for your replies . i am elaborating my query .
I have an internal table with 80 fields i.e.f1,f2,f3......f80 . In the first index i will be having the fieldnames
i.e.matnr , mbrsh , meins , mtart ..... . From second index onwards i will be having the corresponding data for the field name. i need to display a particular field in a table control . Here i will be knowing the fieldname. If i can get to know the column name i.e whether f1 or f2 or ... .i Can populate the data into the table control.
Wht i have done is taken a field symbol and used the following code.
read table i_upload index 1 assigning <lv_upload>.
here i will get the initial first record i.e
F1 MATNR
F2 MBRSH
F3 MTART
F4 WERKS
F5 LGORT
F6 VKORG
F7 VTWEG
F8 MAKTX
F9 MEINS
F10 MATKL
F11 BISMT
F12 BRGEW
F13 GEWEI
F14 NTGEW
F15 GROES
F16 KLART
F17 CLASS
F18 SPART
F19 VRKME
F20 UMREN
now i want to the field name .
Hope it is clear this time .
Thanks.
Maybe you are looking for
-
Can't get photo's from iphone to iphoto 09
I did a clean install of osx and did not back up my photos dumb I know, now I have 73 photos on my iphone but iphoto 09 only imported the camera roll album of 11 photos the other photo albums don't import and if I sync under photos tab in itunes it s
-
Apleworks scrolling problem on MacBook Pro
On my new MacBook Pro 17", I noticed that track pad two finger scrolling is very jumpy in AppleWorks documents, particularly in tryin to scroll back up through a document. You have to use a different kind of motion, sweeping very swiftly up and lifti
-
Hi, I am very new to SAP - XI. I want to work with idocs. So please help me how to develop a scenario which is having sender as file adapter and receiver as idoc adapter or vice versa. thank you.
-
Procedure to generate Salary slip in ECC 6.0
Hi All How do we generate a Salary slip in ECC 6.0? what are the steps one needs to follow? Thanks in advance. Regards Mohammed Edited by: Mohammed1 on Nov 27, 2011 3:53 PM
-
I needed to restore my iphone 5. I lost my pictures and music from itunes. I gave them a different email from my original email. If i restore again under my original email, can I retrieve my music and photos?