All Custom tables (with no. of records) under a package
Hi All,
I am trying to get all the custom tables or Ztables under a custom package along with number of records in each custom table.
I have checked the View INFO_TABL and got all the custom tables under a custom package but did not get number of records for each custom table.
Is there any other View, Table, Function Module etc., form where I can get the above data. Report is not a option.
Regs
Dep
You may have a look into the program RSTABLESIZE & also the fm DB_STATISTICS_DATA_READ
Good discussions are available here Most efficient method of finding COUNT of records in client-independent tab & dbtable count
Similar Messages
-
Maintenance View for custom table with foreign key relationship
Hi Folks,
I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
Regards,
santoshHi,
You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
Regards,
Ankur Parab -
Report all z tables with all z program containing these z tables
Hi Everyone,
I want to write a report to extract all z table with all z program contained in these z tables
ex: The z table zxxxx exist in program zxx1 , zxx2 and zxx3.
Table Program
zxxxxx zxx1
zxx2
zxx2
If you have any idea , wich table we can find information
Thanks in advance for your time
SoufieneThank you very much , but where i can find the descritption for the table .
EX :
TABLE DESCRIPTION PROGRAM
ZCHANGEMPL SAP TO Kronos interface tables ZXXXXXXX
Thanks a lot
Soufiene -
How to get the table with no. of records after filter in webdynpro
Dear Gurus,
How to get the table with no. of records after filter in webdynpro?
Thanks in advance.
SankarHello Sankar,
Please explain your requirement clearly so that we can help you easily.
To get the table records from your context node use method get_static_attributes_table()
data lo_nd_mynode type ref to if_wd_context_node.
data lt_atrributes_table type wd_this->elements_mynode.
lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ).
lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ).
Note: You should have already defined your context node as a Dictionary Structure.
BR,
RAM -
Updating custom table with PU12
Hi Experts,
I need to update the custom table with PU12. Please let me know if this is possible with PU12.
I have used the PU12 only to retrieve the data from database and have sent the data to application server.
Thanks
RashmiHi
Can you please let me know how to update the custom table with PU12.
Can you please let me know the User exit you have used.
Thanks in advance.
Regards,
Kiran. -
How to fetch what are all the tables used in this TR no and Package name of
Hi Friends,
I have input of Transport Request no (E070-TRKORR).
How to fetch what are all the tables used in this TR no and Package name of this Table.HI,
FYI
SELECT E071OBJECT_NAME, E070MDEVCLASS
FROM E071, E070M
WHERE TRKORR = YOU REQUEST NO. -
Custom table with all feature....help!
Hi all,
I am interested in defining my own custom table that will itself take care of
1. Cell validation
2. Key navigation
3. Look and feel
Ideal cutom table will take the 3 inputs,
1. No. of columns
2. Each column type expression(as it may dynamically change even specific to a row..)
3. Each column editable expression( as it may dynamically change even specifi to a row...)
Obviously the table should take care of renderer,editor,listeners, valuechange notification etc.
Basically i need guidelines how to proceed about it.Have you read below document?
If not yet, it will be good document for you.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html -
[Solved]Problem in showing ADF tables with 50,000 Records and more in TP4
Hi,
When I tried to view readonly ADF table in TP4, it loaded perfectly, but when i tried to run the vertical scrollbar to bottom record, it showed Fetching Data .... for few minutes and finally it showed a message. java.lang.OutOfMemoryError: Java heap space.
When I tried to view normal ADF table in TP4, it loaded perfectly, but when i selected one row a popup Error message came and reported all the columns in the table with java.lang.NullPointerException.
Similar functionality works beautifully in JDeveloper 10g version. Seems to be a serious problem in handling cached rows.
Regards,
Santhosh
I am also getting a warning in OC4J console as given below:
WARNING: Application loader current-workspace-app.web.SRApplication-ViewController-webapp:0.0.0 may not use /D:/Appl/jdevstudio1111/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\Appl\jdevstudio1111\j2ee\home\oc4j.jar)
Message was edited by:
Santhosh1234
Message was edited by:
Santhosh1234Hi!
You have two ways:
1. build your own table CollectionModel that will use TopLink paged data source access (see Pedja's thread here Paging of large data sets - SOLUTION
2. use new Paged EJB finders that started to appear with TP4 when you use wizard to generate SessionBeans (named something like "query<Entity>FindAllByRange") . I posted already question about this new paged finders here How to use new "query<Entity>FindAllByRange" EJB finders? but no answers from devs yet :)
Personally, I opt for no. 2 (paged finders) as it looks more platform-supported that writing custom CollectionModels for each finder... But until devs enlighten us with details how the paged finders are to be used (the af:table is not [yet?] supportive for drag-and-drop of paged finders), we are stuck with 1. option.
Regards,
Pavle -
Internal Table with 22 Million Records
Hello,
I am faced with the problem of working with an internal table which has 22 million records and it keeps growing. The following code has been written in an APD. I have tried every possible way to optimize the coding using Sorted/Hashed Tables but it ends in a dump as a result of insufficient memory.
Any tips on how I can optimize my coding? I have attached the Short-Dump.
Thanks,
SD
DATA: ls_source TYPE y_source_fields,
ls_target TYPE y_target_fields.
DATA: it_source_tmp TYPE yt_source_fields,
et_target_tmp TYPE yt_target_fields.
TYPES: BEGIN OF IT_TAB1,
BPARTNER TYPE /BI0/OIBPARTNER,
DATEBIRTH TYPE /BI0/OIDATEBIRTH,
ALTER TYPE /GKV/BW01_ALTER,
ALTERSGRUPPE TYPE /GKV/BW01_ALTERGR,
END OF IT_TAB1.
DATA: IT_XX_TAB1 TYPE SORTED TABLE OF IT_TAB1
WITH NON-UNIQUE KEY BPARTNER,
WA_XX_TAB1 TYPE IT_TAB1.
it_source_tmp[] = it_source[].
SORT it_source_tmp BY /B99/S_BWPKKD ASCENDING.
DELETE ADJACENT DUPLICATES FROM it_source_tmp
COMPARING /B99/S_BWPKKD.
SELECT BPARTNER
DATEBIRTH
FROM /B99/ABW00GO0600
INTO TABLE IT_XX_TAB1
FOR ALL ENTRIES IN it_source_tmp
WHERE BPARTNER = it_source_tmp-/B99/S_BWPKKD.
LOOP AT it_source INTO ls_source.
READ TABLE IT_XX_TAB1
INTO WA_XX_TAB1
WITH TABLE KEY BPARTNER = ls_source-/B99/S_BWPKKD.
IF sy-subrc = 0.
ls_target-DATEBIRTH = WA_XX_TAB1-DATEBIRTH.
ENDIF.
MOVE-CORRESPONDING ls_source TO ls_target.
APPEND ls_target TO et_target.
CLEAR ls_target.
ENDLOOP.Hi SD,
Please put the select querry in below condition marked in bold.
IF it_source_tmp[] IS NOT INTIAL.
SELECT BPARTNER
DATEBIRTH
FROM /B99/ABW00GO0600
INTO TABLE IT_XX_TAB1
FOR ALL ENTRIES IN it_source_tmp
WHERE BPARTNER = it_source_tmp-/B99/S_BWPKKD.
ENDIF.
This will solve your performance issue. Here when internal table it_source_tmp have no records, that time it was fetchin all the records from the database.Now after this conditio it will not select anyrecords if the table contains no records.
Regards,
Pravin -
How to find all Custom tables (transp) that have a custom transaction code?
My client has asked us to provide a list of all Z (custom) tables and the associated transaction codes for maintaining them.
I know I can manually do this with a Z* search in se11 and then do a where used on each table to find out if a view (transaction code) exists for the table - BUT THIS WOULD TAKE HOURS IF NOT DAYS TO DO AND BE LIABLE FOR HUMAN ERROR.
Does anyone know the way we could code a search for this information (ABAP) and know what tables to use?
Thanks.
ScottHi
You can search in table TSTCP for custom tables that have a maintainance view and a transaction associated, which is a call to SM30. To do this, just select the table with TCODE starting with 'Z' and PARAM starting with '/*SM30'.
But you can also have some Z tables updated by an module pool program. This is more complex to find, because you don't know if you simply have the field used in the screen for some other use in a transaction, or if it is in that screen just to update the table. In this case, you need to analyze each screen.But I hope the first tip help you to solve your problem. -
Updating table with 13 milllion records
Hi
I need to update a table a with 14 million records from table b, i need to do the complete update in 4 hours time, the problem here is to update 4 million records itself it is taking 6 hours
Detailed design
Table b is the staging table which has 14 million records in it.
Table a is the table which needs to be updated with the table b data
I am taking the data in table b into a cursor and updating it row by row into table a, the columns on which i am joining table b and table a are indexed
is there any other better design where in i can complete the task in under 4 hours
thnks for ur answers in advanceupdate
select
a.column2 a_column2,
a.column3 a_column3,
a.column4 a_column4,
b.column2 b_column2,
b.column3 b_column3,
b.column4 b_column4
from
table_a a, table_b b
where
a.column1 = b.column1
set
a_column2 = b_column2,
a_column3 = b_column3,
a_column4 = b_column4;Or
update table_a a set (column2, column3, column4) =
select b.column2, b.column3, b.column4
from table_b b
where b.column1 = a.column1
where exists
select null from table_b b
where b.column1 = a.column1
Doh! Too Late. :) Me too!
Message was edited by:
3360 -
Transporting custom table with entries
Hi,
I need to convert one custom table to client specific, I deleted entries in table and added MANDT field in development server. In Production already entries are there in the table, can i transport the table from development now? will it affect the entries? or if i enter all the entries in development and transport, will the table get all the entries with MANDT field?Hi,
Please enter all entries in dev(take ALL form Prod), then trasnport new version of table to Q->P.
By doing so, your existing data in P will be retained and u'll have client spec. table in P.
Regards
Bin
Edited by: Bindu Bala on Dec 19, 2008 1:24 PM -
Union on tables with parent-child records and Sorting
Hi,
I have an application that has an existing query which returns org units (parent and child) from organization table with a sort on createddate + org_id combination
WITH Org_TREE AS (
SELECT *, null as 'IS_DELETED', convert (varchar(4000), convert(varchar(30),CREATED_DT,126) + Org_Id) theorderby
FROM Organization WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.*, null as 'IS_DELETED', convert (varchar(4000), a2.theorderby + convert(varchar(30),a1.CREATED_DT,126) + a1.Org_Id)
FROM Organization a1 INNER JOIN Org_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
SELECT * FROM Org_TREE order by theorderby
I have created a new log table for organization 'Organization_Log' with exact columns as Organization table with an additional 'IS_DELETED' bool column.
Questions:
I need to modiy the query,
1. To display the parent and child records both from the organization table and organization_log table.
2. the sort on the result should be based on 'Organization Name' column asc. First with parent org and the child org underneath it. For eg.
aaa
==>fff
==>ggg
bbb
==> aaa
==> hhh
Any help on how the query should be constructed?
Thanks
gkol@Visakh16,
I am getting...
All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.
The problem is that you will have different number of columns in both log and Organization and Organizationlog tables. UNION/UNION ALL expect the same number of columns.
Try the below:
WITH Org_Log_TREE AS (
SELECT Organization_name,Org_id,Parent_Org_id, IS_DELETED, CAST(Organization_Name AS varchar(max)) AS theorderby,1 AS level
FROM Organization_Log WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.Organization_name,a1.Org_id,a1.Parent_Org_id, a1.IS_DELETED, CAST(a2.theorderby +'/' + CAST(a1.Organization_Name AS varchar(1000)) AS varchar(max)),a2.Level + 1
FROM Organization_Log a1 INNER JOIN Org_Log_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
) ,Org_TREE AS (
SELECT Organization_name,Org_id,Parent_Org_id, NULL AS IS_DELETED, CAST(Organization_Name AS varchar(max)) AS theorderby,1 AS level
FROM Organization WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.Organization_name,a1.Org_id,a1.Parent_Org_id,NULL AS IS_DELETED, CAST(a2.theorderby +'/' + CAST(a1.Organization_Name AS varchar(1000)) AS varchar(max)),a2.Level + 1
FROM Organization a1 INNER JOIN Org_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
SELECT * FROM Org_Log_TREE
UNION ALL
SELECT * FROM Org_TREE
ORDER BY LEFT(theorderby,CHARINDEX('/',theorderby + '/')-1),Level -
Performance for join 9 custom table with native SQL ?
Hi Expert,
I need your opinion regarding performance to join 9 tables with native sql. Recently i have to tunning some customize extraction cost report. This report extract about 10 million cost of material everyday.
The current program actually, try to populate the condition data and insert into customize table and join all the table to get data using native sql.
SELECT /*+ ordered use_hash(mst,pg,rg,ps,rs,dpg,drg,dps,drs) */
mst.werks, ....................................
FROM
sapsr3.zab_info mst,
sapsr3.zab_pc pg,
sapsr3.zab_rc rg,
sapsr3.zab_pc ps,
sapsr3.zab_rc rs,
sapsr3.zab_g_pc dpg,
sapsr3.zab_g_rc drg,
sapsr3.zab_s_pc dps,
sapsr3.zab_s_rc drs
WHERE mst.zseq_no = :p_rep_run_id
AND mst.werks = :p_werks
AND mst.mandt = rg.mandt(+)
AND mst.ekorg = rg.ekorg(+)
AND mst.lifnr = rg.lifnr(+)
AND mst.matnr = rg.matnr(+)
............................................... unitl all table (9 tables)
AND ps.mandt = dps.mandt(+)
AND ps.knumh = dps.knumh(+)
AND ps.zseq_no = dps.zseq_no(+)
AND COALESCE (dps.kbetr, drs.kbetr, dpg.kbetr, drg.kbetr) <> 0
It seems the query ask for database to using hashed table. would that be it will burden the database ? and impacted to others sap process ?
Please advise
Thank You and Best Regardsyou can only argue coming from measurements and that is not the case.
Coming from the code, I see only that you do not understand it at all, so better leave it as it is. It is not a hash table, but a hash join on these table. -
Creating an Excel file from table with 40,000 records
I need help with creating an Excel file for client that has a
table of 40,000 records. I have code that generates the Excel and
has worked well in the past but with this much data it is timing
out.
I've already informed the client that Excel has limit of
66000 records. So it might be better to export to CSV as the data
in this table is going to keep growing.
If you have time to work with me on this , contact me a
alexagui [at] gmail [dot] com
and I can send you more details so you can put together an
accurate quote.
Thanks,
Alexasdren_one wrote:
> I need help with creating an Excel file for client that
has a table of 40,000
> records. I have code that generates the Excel and has
worked well in the past
> but with this much data it is timing out.
>
> I've already informed the client that Excel has limit of
66000 records. So it
> might be better to export to CSV as the data in this
table is going to keep
> growing.
>
> If you have time to work with me on this , contact me a
alexagui [at] gmail
> [dot] com
> and I can send you more details so you can put together
an accurate quote.
For so many records my guess is that the concatenation times
the most
time so you'll need to use StringBuffer to build the string.
Google for
coldfusion and stringBuffer:
http://www.stillnetstudios.com/2007/03/07/java-strings-in-coldfusion/
Mack
Maybe you are looking for
-
How to clear app cache on itouch (3.1.3 iOS)
can someone help with directions on how to clear app cache in 3.1.3? btw...i don't want to reset since it will result in lost apps that no longer offer versions for 3.1.3
-
Using Variable Bit Rate Encoding (VBR) and playback issues
I have been using VBR when making mp3 for download to "Soundclick.com" in the past, resently, I started to hear complaints from listeners, that my mp3 were garbled, although it is not consistent so, it is true, and I came to believe it was because of
-
How can I fix a dead Firefox?
Since my last Firefox update I have not been able to run Firefox. In fact, I can't do anything with it! Can't uninstall, reinstall, nothing. When I try to open Firefox I just get an error sound. I've read through lots if solutions & none work. I can'
-
Why don't Thumbnails appear on my folder even after enabling the icon preview?
-
How to upgrade the OS on WCS(Linux)?
I want to upgrade my WCS to RedHat Linux 5.0. I have burned the iso image to a cd, rebooted the WCS and find nothing happening. Prior to rebooting, I start a SSH connection to the appliance so I figured that I would see it come up and the upgrade s