"Row modification counter" in T-code db02
Hi experts,
In Transaction code DB02, when you enter the name of a table in Detailed analysis, you can see some indicators like Reserved (KB), Data size (KB), Total rows, Row modification counter...
Do you know what does the indicator "Row modification counter" means ?
I delete some old requests from a big Infocube, and during the deletions I check these indicators corresponding to the fact table. The Row modification counter increase a lot before coming down to 0.
I thought that the utility of this indicator was to count the number of rows in status M of a masterdata...
Could you give me more information about this indicator please ?
Thanks,
Tempka
What is your support pack version?
for sap nw 7.0 sp stack 13, apply corrections of these notes
0001076507
0001081265
0001088211
0001100026
0001110280
:for sap nw 7.0 sp stack 12, also examine and apply these notes
1042725, 1046668, 1052909, 1076147, 1084949
Similar Messages
-
SAP transaction code DB02 is showing one week old records
Hi,
In our landscape SAP transaction code DB02 is showing one week old records.
We want the same records to get displayed in DB02 as the current date.
Please help us to achieve the same.
Regards,
AshutoshHi,
check whether background job SAP_COLLECTOR_FOR_PERFMONITOR running successfully or not.
check Note 966309 - Contents of table TCOLL in SAP_BASIS 700
Please u need further any doubt Note 1002840 solved the problem
Regards,
K.Ramamoorthy -
How to return rows where count = 0
Hi, I have the below query that returns the quarters along with the number of issues:
select MQTR as Quarter, count(MQTR)
from tbl1, tbl2
where Fdate=Cdate
and cycle_missed = 'Yes'
group by MQTR
order by 1
output:
2006-Q2 1
2006-Q3 1
2007-Q2 2
I know that 2007-Q1 has 0 issues but I can't get the query to return the row with count 0. So my question is how I can get this output:
2006-Q2 1
2006-Q3 1
2007-Q1 0
2007-Q2 2SQL> create table tbl1
2 as
3 select date '2006-04-10' cdate, '2006-Q3' mqtr from dual union all
4 select date '2006-08-11', '2006-Q4' from dual union all
5 select date '2006-10-12', '2007-Q1' from dual union all
6 select date '2007-02-13', '2007-Q2' from dual
7 /
Tabel is aangemaakt.
SQL> create table tbl2
2 as
3 select date '2006-04-10' run_date, 'Yes' interventions from dual union all
4 select date '2006-04-15', 'Yes' from dual union all
5 select date '2006-08-19', 'No' from dual union all
6 select date '2006-10-20', 'Yes' from dual union all
7 select date '2006-12-20', 'No' from dual union all
8 select date '2007-02-20', 'No' from dual
9 /
Tabel is aangemaakt.
SQL> select tbl1.mqtr
2 , count(tbl2.run_date) "Count"
3 from tbl1
4 , tbl2
5 where tbl1.mqtr = to_char(add_months(tbl2.run_date (+),3),'yyyy-"Q"q')
6 and tbl2.interventions (+) = 'Yes'
7 group by mqtr
8 order by mqtr
9 /
MQTR Count
2006-Q3 2
2006-Q4 0
2007-Q1 1
2007-Q2 0
4 rijen zijn geselecteerd.Regards,
Rob. -
Does anyone know a way to count the lines code in a package
excluding comments? The following are commenting styles:
* comment1
-- comment 2
/* comment 3 */
comment 4CREATE OR REPLACE PROCEDURE count_code(p VARCHAR2) Is
CURSOR c1 IS SELECT * FROM user_source WHERE name=UPPER(P);
l_count number :=0;
l_tot_count number:=0;
comment_flag boolean:=false;
BEGIN
for crec in c1 loop
l_tot_count := l_tot_count+1;
IF substr(trim(crec.text),1,2) not IN ('--','/*') and not
comment_flag THEN
l_count := l_count+1;
ELSIF substr(trim(crec.text),1,2)='/*' THEN
comment_flag := true;
end if;
IF comment_flag and instr(trim(crec.text),'*/')>0 THEN
comment_flag:=false;
end if;
END LOOP;
dbms_output.enable(100000);
dbms_output.put_line('Object
Name : '||p);
dbms_output.put_line('Total number of lines
Code : '||l_tot_count);
dbms_output.put_line('Total number of lines Code with out
comments : '||l_count);
END;
Suresh Vemulapalli -
How to Extend the count of item code in IC_ITEM_MST table
Hi Friends.
Recently we used 10 count of IC_ITEM_MST table . But we want to extend the count 15. How to define pls help me.
Regards
Babu.JDuplicate post -- How to Extend the count of item code in IC_ITEM_MST table
-
Row/column counter for tables
Hello,
I know this is very basic, but so far examples I dug up don't really anything remotely to what I want.
I have 3 databases. Well they are defined as "connections" in SQLDeveloper I hope that's the same I am still not used to Oracle abstractions.
Each has several tables. All I want is loop through each of the 3 DBs and log row count and table count.
Say DB1:
Rows: Columns:
Table1: x y
Table2: x y
I don't really care what's inside them. I found one example that did it but it listed some system tables that aren't part of my db. Changing "owner" didn't really help.
From the value of the variable "Owner" means a database, is that correct?
Oh and I also don't care if the code is "inefficient", tables aren't that big.
Thanks in advance.
Edited by: 940349 on Jun 14, 2012 6:22 AMnot sure what you are planning to achieve, but you can use below query to get owner of table, table name , column name, number of tables by owner and number of column in a table (belonging to owner). This will require access to dba_tab_columns.
select owner,table_name,count(*) over(partition by owner) count_table,column_name,count(*) over(partition by owner,table_name) count_column from dba_tab_columns; -
Hello.
I would like to add a new row to an ALV GRID CONTROL in which one of the fields is a counter. Which methods, codes have I to change/write?
For example:
ALV
COUNTER FLIGHT DESTINATION
1 1234 CDG
2 3443 SVQ
On adding a new row :
COUNTER FLIGHT DESTINATION
1 1234 CDG
2 3443 SVQ
3
Thanks in advance!!!There are two options.
1. Use the data_changed event to put in the values.
- Enable edit mode for the grid, so the row create/insert/copy icons appear on the toolbar.
- Create an event handler for the DATA_CHANGED event
- In this method, use attribute table er_data_changed->MT_INSERTED_ROWS to check for new rows, and then er_data_changed->modify_cell to put in the line number.
The problem is that if your counter field is set as non-editable, then you cannot put a value in...
2. implement your own add function.
- Add a button to the toolbar (implement methiod for event handle_toolbar)
- Create an event handler for event handle_user_command.
- In the handler method, add a row to the outtab table used by the grid (with the correct line number).
- CALL METHOD gr_grid->refresh_table_display to update the display with the additional line.
Regards
Michael -
Count of total number of rows, distinct count of column
Hi ,
I am looking for a procedure that will insert following data into columns :
Table_name Column_name COUNT(*) , count(DISTINCT COL_NAME)
EX: Employee emp_name 5000 4500
Employee emp_location 5000 10
I want this for the whole schema.
I have a procedure which give me count(*) , but i am not able to write a procedure for count(DISTINCT COL_NAME)
If some one can help me, that would be the really helpful
ThanksSOmething like this could also work ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.50
satyaki>
satyaki>
satyaki>SELECT table_name,
2 column_name,
3 DBMS_XMLGEN.getxmltype ('SELECT Count(*) c FROM ' || table_name).EXTRACT ('//text()').getnumberval() tot_rows,
4 DBMS_XMLGEN.getxmltype ('SELECT Count( distinct '||column_name||') d FROM ' || table_name).EXTRACT ('//text()').getnumberval() unique_rows
5 FROM all_tab_columns
6 WHERE owner = 'SCOTT'
7 AND table_name in ('DEPT','SAL_GRADE','GRADE');
TABLE_NAME COLUMN_NAME TOT_ROWS UNIQUE_ROWS
DEPT DEPTNO 4 4
DEPT DNAME 4 4
DEPT LOC 4 3
GRADE SUBJECT 2 2
GRADE UPN 2 2
GRADE L_EVEL 2 2
GRADE GRADE 2 2
GRADE TID 2 2
GRADE ACADEMICYEAR 2 1
SAL_GRADE MAX_SAL 6 6
SAL_GRADE MIN_SAL 6 6
TABLE_NAME COLUMN_NAME TOT_ROWS UNIQUE_ROWS
SAL_GRADE GRADE 6 6
12 rows selected.
Elapsed: 00:00:01.06
satyaki>
satyaki>
satyaki>You may have to work a little - if you want to use this for all the case.
Regards.
Satyaki De.
Added column name
Off course credit goes to Michael. ;)
Edited by: Satyaki_De on Jan 27, 2009 12:19 AM -
Count lines of code present in methods of a class
Hi Friends,
Can anyone suggest how to count lines of abap code in methods of a class?I have used the function module 'SEO_CLASS_GET_INCLUDE_SOURCE' but this function module doesnt counts the code for methods of a class.
Kindly help.
Regards
STHi siji,
once try the below info.
data: itab type table of string.
data: w_lines type i.
read report <reportname> into itab.
describe table itab lines w_lines.
write: / 'Report lines:', w_lines.
It is however important to find the exact report name.
For standard ABAP reports it is easy, it is the name of the report itself.
For classes and function modules this is somewhat different.
Correct report name for function modules can be found as follows :
Use table TFDIR, field FUNCNAME is your function module.
PNMAME contains the main program name of the function group, not of the function module.
Function module report can be created as follows PNAME+3 concatenated with 'U' and field INCLUDE.
Example for the function module RFC_PING this will be
'LSRFC' + 'U' + 07 = report name LSRFCU07
Also take a look at the function module FUNCTION_INCLUDE_CONCATENATE
Hint: lines( ) is a built-in (system class) static function returning the number of lines in a given internal table. You will like it much better than old-fashioned DESCRIBE TABLE statement where you make us of a count variable an need one more statement for the summing up.
Note: If you dont want to count blank line and comments, try this code
delete itab where table_line is initial or table_line(1) = '*'.
add lines( itab ) to total_linecount.
Regards,
Ravi -
Count lines of code in WDA component
Is there a way to count the lines of own code (or otherwise measure the "size") in a WDA component on a 7.01 system? Please don't make me go through every single method one by one
If you load the Web Dynpro Component in SE80 and then choose Web Dynpro Component->Check->Generation Limits, this will give you the load size in bytes of the WD Component. It also has some breakdown liek the number of variables declared. However nothing that gives you the exact lines of code.
The source code of all WD methods is stored in table WDY_CTLR_COMPO, so I supposed if if you really needed to you could write a small program to count the number of lines of code or the number of characters. -
Aggregate rows with count and add fraction of whole result set sum
Here's the explaination by example
# Source table
ID | TYPE
1 | A
2 | A
3 | B
4 | C
5 | C
6 | A
7 | C
8 | A
Now, I'm aggregating and counting:
TYPE | count(*)
A | 4
B | 1
C | 3
I need to assign to row also an information about the fraction of overall sum of rows, so simply divide each count by 8 (in that case), so the result is:
TYPE | frac
A | 0.5
B | 0.125
C | 0.375
Is it possible to do this in NOT nested query, using some Oracle function?
Edited by: Wojtus-J on Feb 18, 2011 5:47 AMWhy can you not use a subquery?
SQL> with test_data as
2 (
3 select 'A' x from dual union all
4 select 'A' x from dual union all
5 select 'B' x from dual union all
6 select 'C' x from dual union all
7 select 'C' x from dual union all
8 select 'A' x from dual union all
9 select 'C' x from dual union all
10 select 'A' x from dual
11 )
12 select
13 x,
14 ratio_to_report(count(*)) over (partition by null)
15 from
16 test_data
17 group by
18 x;
X RATIO_TO_REPORT(COUNT(*))OVER(PARTITIONBYNULL)
A .5
B .125
C .375
SQL> -
ADG summary row children count
Hi all
Can anyone please tell me the best way to include a count of direct children in a grouping collection summary row? My data has two grouping fields and I can use a summaryfield to get a count of ALL children from depths 2 and 3 but I only want the direct children from the next level down.
Hope that makes sense.
Thanks
DustinManaged to find a resolution to this myself. Although not in the summary row itself, I was able to use this in my group item renderer...
{this.parentDocument.myAdvancedDataGrid.hierarchicalCollectionView.getChildren(data).lengt h} -
How to get value in previous column and another row from Matrix with Custom Code?
I want to calculate the value of tb_Open and tb_Close. I try to use custom code for calculate them. tb_close is correct but tb_Open is not correct that show value = 0 .
This is example report:
* I have 2 Dataset , Dataset1 is all data for show in my report. Dataset2 is only first Open for first month
* First value of Open is item field in Dataset2 and this value only for first month (january). But for other month Open value get from Close in previous month.
Detail for Red number:
1. tb_Open -> tb_Close in previous month but first month from item field in Dataset2
expression =FormatNumber(Code.GetOpening(Fields!month.Value,First(Fields!open.Value, "Dataset2")))
2. tb_TOTAL1 group on item_part = 1
expression =FormatNumber(Sum(CDbl(Fields!budget.Value)))
3. tb_TOTAL2 group on item_part = 3 or item_part = 4
expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) + ReportItems!tb_TOTAL1.Value )
4. tb_TOTAL3 group on item_part = 2
expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) - ReportItems!tb_TOTAL2 .Value)
5. tb_Close -> calculate from tb_TOTAL3 - tb_Open
expression =FormatNumber(Code.GetClosing(ReportItems!tb_TOTAL3.Value,ReportItems!tb_Open.Value))
My custom code:
Dim Shared prev_close As Double
Dim Shared now_close As Double
Dim Shared now_open As Double
Public Function GetClosing(TOTAL3 as Double,NowOpening as Double)
now_close = TOTAL3 + NowOpening
prev_close = now_close
Return now_close
End Function
Public Function GetOpening(Month as String,NowOpen as Double)
If Month = "1" Then
now_open = NowOpen
Else
now_open = prev_close
End If
Return now_open
End Function
Thanks alot for your help!
Regards
Panda ALooks okay to me.
Perhaps the variables should be declared as public (?) -
Cycle count Process - T code MI04
Hi all,
I am having a doubt in cycle count process.
I have created some CC document using MI01. When I go to MI04 to enter actual count; I could see that some of the line itmes are non editable. One observation is that; column ZC (Zero count) against non editable material is set as clicked.
what does it mean to have ZC (Zero count)indicator clicked.
also even there are some material in same documents for which available quantity in SAP is zero; still they are editable and ZC indicator is not marked.
kindly guide.
regards,
ParshuramSomeone must have entered the ZC.
Quantity field cannot contain 0. SAP does not consider it as an entry. Hence if you find that there is no stock for an item, you select ZC (to signify 0 stock) since you cannot enter 0 in quantity.
Hope this answers,
Lakshman -
RFASLM00 .... modification to make company code field mandatory
Hi Gurus ,
I want to know , how to make the company code & document number field in the selection screen of RFASLM00 as mandatory .
I tried to search the decleration of these select options in the program , but not able to figure it out . I think its through dynamic slection . Please help me .
Thanks in advance .
SudDIPLAY PROGRAM IN SE38
click GOTO frommenu and select attributes
double click LDB in attributes
click the click the SELECTION button
you can get the bukrs,document selection fields
AT SELECTION-SCREEN ON BR_BUKRS-LOW.
IF BR_BUKRS-LOW IS INITIAL.
MESSAGE 'MANDATORY' TYPE 'E'.
ENDIF.
AT SELECTION-SCREEN ON BR_BUKRS-HIGH.
IF BR_BUKRS-HIGH IS INITIAL.
MESSAGE 'MANDATORY' TYPE 'E'.
ENDIF.
AT SELECTION-SCREEN ON BR_BR_BELNR-LOW.
IF BR_BELNR-LOW IS INITIAL.
MESSAGE 'MANDATORY' TYPE 'E'.
ENDIF.
AT SELECTION-SCREEN ON BR_BR_BELNR-HIGH.
IF BR_BELNR-HIGH IS INITIAL.
MESSAGE 'MANDATORY' TYPE 'E'.
ENDIF.
Maybe you are looking for
-
How do I import my iTunes Library from my old Mac computer to my laptop?
How do I import my iTunes Library from my old (2006) Mac computer to my MacBook Air (OS 10.9.1)?
-
Document for Out of Place Upgrade of ebs database
Hi, Can someone point out to me a document which gives steps for out of place upgrade of ebs 12.1.3 database from 11.1.0 to 11.2.0.3 ? I tried it myself and it went well but I am still not sure whether something is still missing because there are sti
-
When I connect up my Casio EX-S600 camera to my computer, Adobe Photoshop Album Starter Edition 3.2 automatically launches the photo downloader. However, the screen shows the words "Loading Device List" but does nothing and freezes. I have to go into
-
All CC programs wont even attempt to open - Yosemite 10.10.2
Had a critical failure on my mac. Long story short, Apple repaired it, I got it back and when I installed CC and then install ANY of the apps. When I go to open them, the icon flashes, and the dock expands to open it and then it disappears and nothin
-
IMac 21,5" as an External monitor
Hi everybody! Can I use a iMac 21,5" as an external monitor for my MacBook Air via Thunderbolt? I've been told that that is possible only with the bigger iMac 27"! Thankyou! gaspero