ALV - Count and Sub Count
Hello,
I have an ALV Report.Could any one tell me the code for Count and Sub Count.
Example is belwo.
Number Name Type
1 af A
2 werg A
3 weg A
Subcount =3
4 t2423 B
5 24t2 B
Subcount =2
6 24t2 C
7 2442422 C
8 fdghs C
9 sghs C
Subcount =4
10 rghqwegtwq D
Subcount =1
Total = 10
- Varun
Basic questions are not allowed. Please put some effort from your side, before turning to the forums for help. Use the existing tools (F1 Help, ABAPDOCU, Google, SAP Help, etc) first to resolve your issue. Thread locked
Edited by: kishan P on Aug 24, 2010 9:43 AM
Hello,
I have an ALV Report.Could any one tell me the code for Count and Sub Count.
Example is belwo.
Number Name Type
1 af A
2 werg A
3 weg A
Subcount =3
4 t2423 B
5 24t2 B
Subcount =2
6 24t2 C
7 2442422 C
8 fdghs C
9 sghs C
Subcount =4
10 rghqwegtwq D
Subcount =1
Total = 10
- Varun
Basic questions are not allowed. Please put some effort from your side, before turning to the forums for help. Use the existing tools (F1 Help, ABAPDOCU, Google, SAP Help, etc) first to resolve your issue. Thread locked
Edited by: kishan P on Aug 24, 2010 9:43 AM
Similar Messages
-
List of tables count and Views count in schema wise
Hi All,
I want to get all tables count and views count in Schema wise, What is the query for that?
Thanks in Advance.SELECT COUNT(*) FROM sys.tables t join sys.schemas s
on s.schema_id=t.schema_id
SELECT COUNT(*) FROM sys.views t join sys.schemas s
on s.schema_id=t.schema_id
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to dynamically set Min count and Max Count values in Adobe Print Form?
How to set the Min Count and Max Count values dynamically in a Print Form?
The values when set should over ride the values set in Binding Tab.
This is all needed to print multiple Material Number labels on a single page - and the number of labels to be printed needs to be under user control - something like an Avery Address labels
Please advise.
Thanks,Here is a work around that works for me and may not be an intelligent solution .
I kept the Min Count to 1 on the subform binding properties.
Per the number of labels required, I appended the same item to the internal table so many times and passed it to the label.
it works fine for my requirement.
However - leaving out the post for a while to see if this can be done at the form level via scripting.
Thanks, -
How to find the max session count and process count for a database
Hi All,
How to find the maximum session count and process count reached for a database over a period of 15 days?
DB version:11.2.0.2
OS:AIXThanks for the link.
The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
col metric_unit for a30
set pagesize 100
Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
from dba_hist_sysmetric_summary
where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1; -
SCOM-Difference between Problem Count and Event Count in Application Failure Analysis Report
Dear All,
Could someone explain me clearly , the difference between Problem Count and
Event Count in Application Failure Analysis Report. Please help me in understanding What is meant be problem and event in the report .
Thanks in Advance.
Regards,
Rajesh Kumar CHello Rajesh,
The "problem" is the logically grouped set of the exception events which have the identical hash calculated over several fields as "Stack", "Source", "Failed Function" and so on... So, even if exceptions are different
in the other properties but hash matches over the considered properties - then all those exceptions go into the same "problem group".
So, event is an instance of the problem. One event contributes to one problem but one problem might have a huge event count if you have a repeating issue.
The logic is similar for the performance analysis report, only fields that go into the "problem" hash are different. e.g. "Stack" is not used in hash for perf events...
Dmitry Matveev -
How to reduce logical count and scan count for a select query
hi,
I have two tables one is master and other is history. i need to combine this two tables into one temporary table.
I am using the below query to create temp table.
Select * into temporders
from
(select * from orders
union
select * from ordershistory) b
where updateon= (select max(updateon)from (select updateon,name,units,subunits from orders
union
select updateon,name,units,subunits from ordershistory) a
where updateon <='11/08/2008 11:18 AM' and a.name=b.name and a.units=b.units and a.subunits=b.subunits group by name,units,subunits)
order by report,subunitsorder
the statistics for this query:
SQL Server parse and compile time:
CPU time = 47 ms, elapsed time = 62 ms.
Table 'Worktable'. Scan count 556, logical reads 1569, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'ORDERSHISTORY'. Scan count 116, logical reads 339, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'ORDERS'. Scan count 116, logical reads 285, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
SQL Server Execution Times:
CPU time = 32 ms, elapsed time = 63 ms.
(115 row(s) affected)
you see logical reads and scan count for worktable(temporary) is quite high.
So anyone can give a solution for reduce the scan count and logical reads.
NOTE: name,units, subunits,updateon columns have primarykeySQL ServerAm i reading it properly? :(
This is Oracle Forum And not the SQL Server.
Regards.
Satyaki De. -
Getting Sum, Count and Distinct Count of a file
Hi all this is a UNIX question.
I have a large flat file with millions of records.
col1|col2|col3
1|a|b
2|c|d
3|e|f
3|g|h
footer****
I am supposed to calculate the sum of col1 =9, count of col1 =4, and distinct count of col1 =c3
I would like it if you avoid external commands like AWK. Also, can we do the same by creating a function?
Please bear in mind that the file is huge
Thanks in advanceThis sounds like homework for a shell class, but here goes. Save into a file, maybe "doit". Run it like this:
$ ./doit < data
<snip>
#!/bin/sh
got0=0
got1=0
got2=0
got3=0
got4=0
got5=0
got6=0
got7=0
got8=0
got9=0
sum=0
cnt=0
IFS='|'
while read c1 c2 c3 junk; do
# Sum and count
echo "c1=${c1}"
case "${c1}" in
[0-9] )
sum=$(expr ${sum} + ${c1})
cnt=$(expr ${cnt} + 1)
esac
# Distinct
case "${c1}" in
0 ) got0=1;;
1 ) got1=1;;
2 ) got2=1;;
3 ) got3=1;;
4 ) got4=1;;
5 ) got5=1;;
6 ) got6=1;;
7 ) got7=1;;
8 ) got8=1;;
9 ) got9=1;;
esac
done
echo "cnt=${cnt}"
echo "sum=${sum}"
echo "distinct="$(expr $got0 + $got1 + $got2 + $got3 + $got4 + $got5 + $got6 + $got7 + $got8 + $got9)
<snip> -
Maximum record counts and property counts
Hello,
I am looking for the document/link that mentions maximum record counts and maximum property counts for each record.
let say there are 1.5million records and each record has 2000 properties. Not sure if it can be handled nicely.
Mdex version is 6.2.1 at this point. but can upgrade if higher version can handle more.
Thanks,Jeremy is pretty much correct. There are no limitations except by performance.
Start with the Performance Tuning Guide - here is a link to the 6.4.1 document:
http://docs.oracle.com/cd/E41223_01/Mdex.641/pdf/PerfTuningGuide.pdf
For your questions, start with Chapter 5 and read how properties/dimensions affect performance and this will help drive how you architect your queries and pipeline configuration/index setup to be most efficient. -
Word counts and character counts
Hi,
I'm using Pages '06. I would like to be able to count the number of words and characters in a paragraph in Pages. I know that if i go to the Document Inspector and click info, it gives me word and character counts for the entire document. Is there a way to do this for individual paragraphs?
Many thanks.
Joe.After you install WordService (see link in Dennis' post), you can access several new services in the Pages menu. You may have to restart Pages &/or your Mac.
WordService & CalcService add their functions to any OS X program that has been programed to utilize Services. I've been using them since shortly after I got iWork '05. -
Xlate count and connection count
Can a firewall show more XLATE created than CONNECTIONS?
Is that theoretically possible to have more XLATEs than the total number of connections?. the reason I am asking, that assuming a Cisco 5510 has have maximum 130,000 total connections, however xlate limit on an ASA is considered as UNLIMITED.
I am designing a large network having multiple CIsco ASAs deployed as multi context mode to cater various networks inside the organization. I want to create proper resources per class. So far Xlate count vs. connection count is not very clear.. I tried putting a very large value for xlate and the firewall accepted it, and still showed the total percentage as 0%
Xlates default all CA unlimited
123 2 C 2147483647 4294967294 0.00%
All Contexts: 3 4294967294 0.00%
Whereas connection count is shown as
Conns default all CA unlimited
123 2 C 65000 130000 100.00%
All Contexts: 3 130000 100.00%
Any help is highly appreciated.
Thank you,
FNKHi
as far as i remember xlate is nat (regardless if it is static or not)
and on the IOS systems it is the same, static entries are in the table.
connections are actual session in the packetfilter/firewall sessions this is a differnet operation.
Patrick -
Phone usage counter and carriers counter don't match?
I have been pretty consistant about reseting my usage counter on my iphone on my billing day. And yesterday i got a notice saying i was at 65%. I checked my phone and only showed ~37mb of in and out usage but when i logged into att it says i'm at 160mb. For the most part the usage looks right but there are 3 occasions where its in the 65mb, 40mb and 25mb. Way above my usual 1-4mb usage per session. Customer service only had "well then upgrade your data plan" to say but i don't want to do that till i know whats wrong.
Is there anyone that can explain why they are so different and any way to get att to remove those 3 oddballs cause its seriously like day 4 of my billing cycle.
iphone 4
gsm 5.0.1
icloud over cellular syncing is off.Think i figured it out. It appears to be a bug with icloud as the phone was not connected to wifi but the laptop it plugged into was. For some reason it then sync'd with icloud anyhow racking up my data. Just annoyed that this transfer was somehow not put into the counter.
-
Invalid volume file count and directory count
My wife's macbook pro started shutting down by itself randomly, so i performed Disk Utility Verify Disk and found these errors:
Invalid volume file count
(It should be 800651 instead of 800653)
Invalid volume directory count
(It should be 191005 instead of 191003)
The volume Macintosh HD needs to be repaired.
Error: Filesystem verify or repair failed.
As i do not have the Mac OS Leopard disks physically with me, I target-disk started her mac on my mac, and use my mac to run Disk Utility on her hard-disk, and repaired the disk without problems.
However, this is the 3rd or 4th time this has happened. After the 1st time, i figured something is causing it, so i checked this forum, and found that for some, the Blackberry Messenger app causes programs, so i promptly uninstalled it fully (including associated system files) and this problem didnt come back for a while.
Or could this be a sign the hard disk is physically failing soon? It is out of warranty now. We have regular TimeMachine backups. We are actually kinda waiting out until the new line of macbook pro's come out.. (hopefully in June at WWDC)
Any suggestions as to how else to address this? Thanks!
Laptop stats: MacBook Pro 15"
2.4 GHZ Intel Core 2 Duo
2 GB RAM
HDD: 250GB
Graphics: NVDIA GeForce 9400M VRAM 256MB
OS: Mac OS LeopardWell, the disk errors are due to corruption caused by the random power downs, so focus on getting that issue solved first. What's the stats on the battery?
-
Inventory count and re-count data
hi friends,
need some info ..
Is it possible to view changes of inventory documents e.g. if a count was changed for an item on the inventory document. Used MI12 to display changes but did not get a result.
Any transaction / table to view this info.
regards,
chaitanyaHi
Kindly check the tables
cdpos and cdhdr
Note:
The system only creates change documents when:
o the creation of change documents is allowed for all plants in
Customizing for Inventory Management in the step Define Default
Values for Physical Inventory Document
o a user changes a physical inventory document (MI02)
o a user changes a physical inventory count (MI05)
REgards
Damu -
What happened to page count, word count and the toolbar at the top?
Is there any way to edit the toolbar so that when I want to switch fonts I don't have to keep opening the toolbar on the side? (Is there anyway I can get the toolbar from the previous version back?)
Also, is there a way for the page count and word count to show up and stay there for future documents? I had the word count appear and tried to save that as a template but when trying to open up new documents I have to go back and make it so the word count shows up again.What Peter said.
Is there any way to edit the toolbar so that when I want to switch fonts I don't have to keep opening the toolbar on the side?
Yes. Menu > View > Customize Toolbar... drag/drop the Fonts icon adjacent to the Comments icon on the Toolbar. The Fonts icon now becomes a toggle to show/hide the Fonts toolbox, which you could also produce with a command+T.
(Is there anyway I can get the toolbar from the previous version back?
No.
Also, is there a way for the page count and word count to show up and stay there for future documents
No. Available via Menu > View > Show Word Count. This produces a floating box at the bottom of your document. When you roll over it with your mouse, you have a selection of words, characters, and paragraphs. The word count excludes spaces. -
Report.Services 2008 - get page-count or row-count in the c#-code
hello
is it possible to get from the ReportViewer-control / ServerReport the page-count or row-count after the
reportViewerCheck.ServerReport.Refresh();
statement ??
many thanks in advance for any clue & regards
MichaelHi Michael,
Yes, you can get them. For row count, you can add a parameter to store the row count of your dataset in your report.
Here are the steps:
1. Add 2 datasets in your report, one for report use and the other on is to row count use. For instance:
DataSet1: SELECT HumanResources.vEmployee.* FROM HumanResources.vEmployee
DataSet2: SELECT COUNT(*) FROM HumanResources.vEmployee
2. Add a parameter, set the parameter’s default value set to Get Values from a query and select DataSet2.
Then, in your ASP.NET web application code you can use the following function to get the row count of the report:
private int GetReportRowCount(ReportViewer report)
return Convert.ToInt32(report.ServerReport.GetParameters()[0].Values[0].ToString());
For page count, you can refer to the following code:
private int GetReportPageCount(ReportViewer report)
return report.ServerReport.GetTotalPages();
You may not get the correct row count and page count in after executing Refresh () method, that’s because when you run this method, it will start another thread to refresh the report and the code below Refresh () method will not wait refreshing complete but run it. For instance, you may get the page count as o if you run the following code in the Button event:
// Click this Button to refresh the ReportViewer1
protected void btnGetPageCount_Click(object sender, EventArgs e)
// Refresh the ReportViewer1
this.ReportViewer1.ServerReport.Refresh();
// Get ReportViewer1's page count and display in the txtPageCount TextBox
this.txtPageCount.Text = this.ReportViewer1.ServerReport.GetTotalPages().ToString();
You can run the refresh in separate events and get page count in another event, such as below code:
// Click this Button to refresh the ReportViewer1
protected void btnGetPageCount_Click(object sender, EventArgs e)
// Refresh the ReportViewer1
this.ReportViewer1.ServerReport.Refresh();
// Display the txtPageCount's text to ReportViewer's page count
protected void btnGetPageCount2_Click(object sender, EventArgs e)
// Get ReportViewer1's page count and display in the txtPageCount TextBox
this.txtPageCount.Text = this.ReportViewer1.ServerReport.GetTotalPages().ToString();
Hope this helps! I would suggest you post a new thread in Visual Studio Report Controls forum if you need more help about using ReportViewer in ASP.NET web application.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Maybe you are looking for
-
PP - Explosão de BOM Phantom em Ordem Planejada
Olá pessoal! Tenho um cenário onde dentro do meu Produto Acabado, tenho vários componentes organizados em Grupo de Alternates, e para cada grupo, defino um componente como Principal ( 100% de utilização ) e os outros como Opcionais ( 0% de utilizaçã
-
Printer will only print letter size
I just installed the printer (Officejet PRO K8600). No matter what I do it only will print in letter size. This is even if I set up the printer in the program (ACAD LT or ADOBE PRO) as tabloid.
-
My iMac (2011) wont shut down properly!!
I have contacted apple's phone support 3 times but it still won't shut down properly. 1. they asked me to do a pram reset 2. they asked me to go into the safe boot mode (and it does shut down properly) 3. they asked me to clear my cache (it shuts dow
-
Account group function assignment
hi I am using ecc6.0. not been able to assign functions to account group. please tell me where i might be wrong. i am trying to assing partner function sp to my account group and the error is choose the key from the allowed namespace
-
Unable to create collaboration in BID Invitation
Hi, We are running on SRM 5.0(SP6) using the C-folder Add-on component (CPRXRPM-4.0(sp1)). While creating collboration in BID invitation,when we click on the CREATE button,we get the foll dump: The following error text was processed in the system MRD