Total number of test
Hi Guys,
Is there a way to get the total number of test in a given sequence file?
thanks,
Steve
Hi,
In the Post Message window, you should see a control to allow you to attach a file.
Regards
Ray Farmer
Message Edited by Ray Farmer on 01-28-2008 06:54 AM
Regards
Ray Farmer
Attachments:
attachment.PNG 7 KB
Similar Messages
-
How to get total number of nodes in a JTree?
Hi,
I am trying to get total number of nodes in a JTree, and cannot find a way to do it.
The current getRowCount() method returns the number of rows that are currently being displayed.
Is there a way to do this or I am missing something?
thanks,How many nodes does this tree have?
import java.awt.EventQueue;
import javax.swing.*;
import javax.swing.event.TreeModelListener;
import javax.swing.tree.*;
public class BigTree {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
TreeModel model = new TreeModel() {
private String node = "Node!";
@Override
public void valueForPathChanged(TreePath path,
Object newValue) {
// not mutable
@Override
public void removeTreeModelListener(TreeModelListener l) {
// not mutable
@Override
public boolean isLeaf(Object node) {
return false;
@Override
public Object getRoot() {
return node;
@Override
public int getIndexOfChild(Object parent, Object child) {
return child == node ? 0 : -1;
@Override
public int getChildCount(Object parent) {
return 1;
@Override
public Object getChild(Object parent, int index) {
return node;
@Override
public void addTreeModelListener(TreeModelListener l) {
// not mutable
JFrame frame = new JFrame("Test");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.getContentPane().add(new JScrollPane(new JTree(model)));
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}But for bounded tree model using DefaultMutableTreeNode look at bread/depth/preorder enumeration methods to walk the entire tree. Or look at the source code for those and adapt them to work with the TreeModel interface. -
Dear friends,
I provide full details here ,my database table structure ,data and stored procedure and my problem ,
please review it and provide the solution or any idea to solve my problem.
I am working on a project in which members are added in a tree pattern, and get the payment accordingly.
below is my table structure ,data and stored procedure
CREATE TABLE Associate_Income
ID varchar(30) NOT NULL,
ParentID varchar(30) NULL,
IsLeft tinyint NULL,
IsRight tinyint NULL,
joingdate datetime NOT NULL
go
INSERT Associate_Income
(ID, ParentID, IsLeft, IsRight, joingdate)
SELECT 'Ramesh123', NULL, NULL, NULL '2014-01-03 16:31:15.000' UNION ALL
SELECT 'Sonu', 'Ramesh123', 1, NULL, '2014-01-03 16:45:21.000' UNION ALL
SELECT 'Pawan kumar', 'Ramesh123', NULL, 1, '2014-01-04 16:50:23.000' UNION ALL
SELECT 'Ravi123', 'Sonu', 1, NULL, '2014-01-04 17:03:22.000' UNION ALL
SELECT 'Vineet123', 'Sonu', NULL, 1, '2014-01-04 17:26:01.000' UNION ALL
SELECT 'dev123', 'Ravi123', 1, NULL, '2014-01-05 19:35:16.000' UNION ALL
SELECT 'Mukesh123', 'Ravi123', NULL, 1, '2014-01-05 19:40:41.000' UNION ALL
SELECT 'poonam123', 'Vineet123', 1, NULL, '2014-01-05 19:49:49.000' UNION ALL
SELECT 'monu', 'Pawan kumar', 1, NULL, '2014-01-05 17:32:58.000' UNION ALL
SELECT 'Arti123', 'Pawan kumar', NULL, 1, '2014-01-05 19:54:35.000' UNION ALL
My database table Associate_Income structure and data is as follow:
ID ParentID IsLeft IsRight joingdate
Ramesh123 NULL NULL NULL 2014-01-03 16:31:15.000
Sonu Ramesh123 1 NULL 2014-01-03 16:45:21.000
Pawan kumar Ramesh123 NULL 1 2014-01-04 16:50:23.000
Ravi123 Sonu 1 NULL 2014-01-04 17:03:22.000
Vineet123 Sonu NULL 1 2014-01-04 17:26:01.000
dev123 Ravi123 1 NULL 2014-01-05 19:35:16.000
Mukesh123 Ravi123 NULL 1 2014-01-05 19:40:41.000
poonam123 Vineet123 1 NULL 2014-01-05 19:49:49.000
monu Pawan kumar 1 NULL 2014-01-05 17:32:58.000
Arti123 Pawan kumar NULL 1 2014-01-05 19:54:35.000
by using below stored procedure i can count the total number of pairs under particular node in 2:1,1:1 ratio means first pair is completed when two node added to the left side of given parent node and one node added
right side of given parent node after that all pairs are completed when one node added left side and one node added right side of parent node (1:1 ratio)
example if i execute my stored procedure as follows it would return following.
EXEC count_pairs 'Ramesh123'
3
so there is 3 pairs as shown in my figure.
when we execute my stored procedure for ParentID 'sonu' it would return following.
EXEC count_pairs 'sonu'
2
so there is 2 pairs as shown in my figure.
My problem is to find the query which can return the total number of pair under particular node any given parent node. day to
day maximum 5 pairs in a day please any one can suggest us
CREATE proc [dbo].[count_pairs]
@ParentID nvarchar(50)
as
begin
Declare @ParentSUM SMALLINT = 0
Declare @SubLeftID nvarchar(50)
Declare @SubRightID nvarchar(50)
SELECT @SubLeftID = CASE WHEN [IsLeft] = 1 THEN [ID] ELSE @SubLeftID END
,@SubRightID = CASE WHEN [IsRight] = 1 THEN [ID] ELSE @SubRightID END
FROM Associate_Income
WHERE ParentID = @ParentID
IF @SubLeftID IS NOT NULL AND @SubRightID IS NOT NULL AND EXISTS(SELECT 1 FROM Associate_Income WHERE [IsLeft] = 1 AND ParentID = @SubLeftID)
BEGIN
SET @ParentSUM = 1
;WITH Associate_Income_CTE AS
SELECT [ID], [ParentID], [IsLeft], [IsRight], 0 AS [Level]
FROM Associate_Income
WHERE [ParentID] = @ParentID
UNION ALL
SELECT RecursiveMember.[ID], RecursiveMember.[ParentID], RecursiveMember.[IsLeft], RecursiveMember.[IsRight], Level + 1
FROM Associate_Income RecursiveMember
INNER JOIN Associate_Income_CTE AnchorMember
ON RecursiveMember.[ParentID] = AnchorMember.[ID]
SELECT @ParentSUM = @ParentSUM + COUNT([ParentID])
FROM
SELECT [ParentID]
,'IsLeft' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsLeft] = 1
AND [ID] <> @ParentID --AND [ID] NOT IN (@SubLeftID, @ParentID)
AND [ParentID] NOT IN (@ParentID, @SubLeftID)
UNION ALL
SELECT [ParentID]
,'IsRight' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsRight] = 1
AND [ParentID] <> @ParentID
) AS Associate_Income
PIVOT
MAX([Value]) FOR [Direction] IN ([IsLeft], [IsRight])
) PVT
WHERE [IsLeft] IS NOT NULL AND [IsRight] IS NOT NULL
END
SELECT @ParentSUM
Jitendra Kumar Sr. Software Developer at Ruvixo Technologies 7895253402I don't think this is homework, I am not sure how helpful it was by Kalman to merge the two threads. It appears that two different persons posted the questions. It could be though, that it is the same problem and Jitendra has taken over Chandra's
task.
However, I was not able to understand the problem nor the figure. And nor the definition of pairs in this context. My assumption is that what Jitendra posted is an abstraction of the actual problem in order to not reveal intellecutal property. Possibly this
makes the problem more difficult to understand for us outsiders.
I've come so far that I worked out a table definition and INSERT statements with sample data, as well as a call to the procedure which returns 3 and this appears to map to the figure, but I don't know what it means. Since I don't know what this
is about, I have not made any attepmts to understand the code, but I would appreciate clarification about the underlying business rules as well as the expected results for various test cases.
CREATE TABLE Associate_Income(ID varchar(30) NOT NULL,
ParentID varchar(30) NULL,
IsLeft tinyint NULL,
IsRight tinyint NULL,
joingdate datetime NOT NULL)
go
INSERT Associate_Income (ID, ParentID, IsLeft, IsRight, joingdate)
SELECT 'Ramesh123', NULL, NULL, NULL, '2014-01-03 16:31:15.000' UNION ALL
SELECT 'Sonu', 'Ramesh123', 1, NULL, '2014-01-03 16:45:21.000' UNION ALL
SELECT 'Pawan kumar', 'Ramesh123', NULL, 1, '2014-01-04 16:50:23.000' UNION ALL
SELECT 'Ravi123', 'Sonu', 1, NULL, '2014-01-04 17:03:22.000' UNION ALL
SELECT 'Vineet123', 'Sonu', NULL, 1, '2014-01-04 17:26:01.000' UNION ALL
SELECT 'dev123', 'Ravi123', 1, NULL, '2014-01-05 19:35:16.000' UNION ALL
SELECT 'Mukesh123', 'Ravi123', NULL, 1, '2014-01-05 19:40:41.000' UNION ALL
SELECT 'poonam123', 'Vineet123', 1, NULL, '2014-01-05 19:49:49.000' UNION ALL
SELECT 'monu', 'Pawan kumar', 1, NULL, '2014-01-05 17:32:58.000' UNION ALL
SELECT 'Arti123', 'Pawan kumar', NULL, 1, '2014-01-05 19:54:35.000'
go
CREATE proc [dbo].[count_pairs]
@ParentID nvarchar(50)
as
begin
Declare @ParentSUM SMALLINT = 0
Declare @SubLeftID nvarchar(50)
Declare @SubRightID nvarchar(50)
SELECT @SubLeftID = CASE WHEN [IsLeft] = 1 THEN [ID] ELSE @SubLeftID END
,@SubRightID = CASE WHEN [IsRight] = 1 THEN [ID] ELSE @SubRightID END
FROM Associate_Income
WHERE ParentID = @ParentID
IF @SubLeftID IS NOT NULL AND @SubRightID IS NOT NULL AND EXISTS(SELECT 1 FROM Associate_Income WHERE [IsLeft] = 1 AND ParentID = @SubLeftID)
BEGIN
SET @ParentSUM = 1
;WITH Associate_Income_CTE AS
SELECT [ID], [ParentID], [IsLeft], [IsRight], 0 AS [Level]
FROM Associate_Income
WHERE [ParentID] = @ParentID
UNION ALL
SELECT RecursiveMember.[ID], RecursiveMember.[ParentID], RecursiveMember.[IsLeft], RecursiveMember.[IsRight], Level + 1
FROM Associate_Income RecursiveMember
INNER JOIN Associate_Income_CTE AnchorMember
ON RecursiveMember.[ParentID] = AnchorMember.[ID]
SELECT @ParentSUM = @ParentSUM + COUNT([ParentID])
FROM
SELECT [ParentID]
,'IsLeft' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsLeft] = 1
AND [ID] <> @ParentID --AND [ID] NOT IN (@SubLeftID, @ParentID)
AND [ParentID] NOT IN (@ParentID, @SubLeftID)
UNION ALL
SELECT [ParentID]
,'IsRight' AS [Direction]
,1 AS [Value]
FROM Associate_Income
WHERE [IsRight] = 1
AND [ParentID] <> @ParentID
) AS Associate_Income
PIVOT
MAX([Value]) FOR [Direction] IN ([IsLeft], [IsRight])
) PVT
WHERE [IsLeft] IS NOT NULL AND [IsRight] IS NOT NULL
END
SELECT @ParentSUM
END
go
EXEC count_pairs 'Ramesh123'
go
DROP PROCEDURE count_pairs
DROP TABLE Associate_Income
Erland Sommarskog, SQL Server MVP, [email protected] -
Hello All:
I am very new to Power Shell and need some help:
I have 224 GAL's on our Exchange System (Ex 2007) where, I need to count the total number of email addresses/display names assigned to each GAL. I am not sure how to set up a for-next loop in PowerShell. I am not sure how to set a input
file/variable, with the names of each GAL. (GAL is Global Address List)
I think it's $GALLIST = 'NameofGal1, NameofGal2, etc thru to NameofGaln' where n is the last GAL in the list.
So I need to now a command which would get all the gal names (Get-AddressList(?) for all the GAL's in the Exchange System and then pipe them into a function to count the number of email addresses.
In making a start with the following code and got stuck:
Get-Mailbox | Where {$_.GlobalAddressList -eq “GAL” -and $_.} | Select-Object Displayname, EmailAddresses, count
Missing or invalid property reference or expression.
At line:1 char:71
+ Get-Mailbox | Where {$_.GlobalAddressList -eq "GAL" -and $_.} <<<< | Select-Object Displayname, EmailAddresses, count
I think I know how to pipe the results to a csv file - with - Export-Csv -path c:\filename.csv - NoTypeInformation.
Please can someone advise. Please help.
Thanks in advance
PS - is there a way to access, read and display variable name and value which stores the number of email addresses/per GAL in exchange 2007 database so you don't have carry out a count exercise. Because this metadata will be in the Exchange DB?
Would this be easier to get?
Started building conditional statement:
Get-Mailbox | Where {$_.GlobalAddressList -eq "GAL" AND {{HiddenFromAddressListsEnabled -eq $True} OR {HiddenFromAddressListsEnabled -eq $False}} |
If {{HiddenFromAddressListsEnabled -eq $True} | Select-Object Displayname, EmailAddresses, count ELSE {HiddenFromAddressListsEnabled -eq $False}} | Select-Object Displayname, EmailAddresses, count
ENDIF
Export-Csv -path c:\test.csv -NoTypeInformation
Will this work? Checking to see how to do a for-next loop.
$GAL = Get-GlobalAddressList
foreach($GAL IN $GAL)
Get-Mailbox | Where {$_.GlobalAddressList -eq $GAL AND {{HiddenFromAddressListsEnabled -eq $True} OR {HiddenFromAddressListsEnabled -eq $False}} |
If {{HiddenFromAddressListsEnabled -eq $True} | Select-Object Displayname, EmailAddresses, count AS "Count of Hidden Addresses" ELSE {HiddenFromAddressListsEnabled -eq $False}} | Select-Object Displayname, EmailAddresses, count AS "Count of
Visible Addresses" |
Export-Csv -path c:\test.csv -NoTypeInformation |
not sure if this works and looks spaghetti -like!Hi Everton,
In addition, If you want to export GlobalAddressList, please refer to the script below:
$filter = (Get-GlobalAddressList 'Default Global Address List').RecipientFilter
#filter HiddenFromAddressListsEnabled is ture
Get-Recipient -RecipientPreviewFilter $filter | Where-Object {$_.HiddenFromAddressListsEnabled -eq $ture} | Select-Object Name,PrimarySmtpAddress
#filter HiddenFromAddressListsEnabled is false
Get-Recipient -RecipientPreviewFilter $filter | Where-Object {$_.HiddenFromAddressListsEnabled -eq $false} | Select-Object Name,PrimarySmtpAddress
Refer to:
How to Export the Exchange 2010 Default Global Address List (GAL)
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Monitoring total number of JDBC connections
We have our application deployed in the Oracle 10g Application server, it uses Toplink 10g for the Persistence and OR mapping and the Oracle 9i database for data storage, the database connection pool is built and maintained by Toplink.
We observed that on the administration screen for each container, there are 2 parameters, number of active database connections and the total number of JDBC connections.
We did some load testing for the application and observed the following behaviour on the container.
1. When the number of parallel users are 10, behaviour seems to be normal, the active database connections are less than 20(used by the connection pool built by Toplink) and the total number of JDBC connections is the same as the number of database connections.
2. When the number of parallel users is increased to 50, we see that the active database connections is still less than 20, but the total number of JDBC connections just blowed up to 4000+ in less than 2 minutes and still growing. We have no valid explanation for this behaviour as the active sessions is still less than 20. Also we see no obnormal behaviour in our application log files.
The questions i have are
1. What could be the reason for the above abnormal behaviour?
2. How this parameter "Total number of JDBC connections" for a container is actually measured?
3. DOes this parameter gets affected by how we run the database i.e. in Dedicated server mode or Despactcher mode?
Many thanks for any information on this topic..Perhaps your connection inactivity timeout is slightly too low, so that your connections are being closed and reopened at almost the same frequency. Try increasing the timeout.
Good Luck,
Chris -
Text variable for total number of pages in book?
Hello,
Is it possible to create a text variable that contains the total number of pages in a book?
The only option I see is for the total number of pages in a document, which doesn't come out right for any but the last doc in the book.
Thanks,
-dp-If you use the Cross Reference plug-in from DTPtools.com, you can create a cross ref to the last page of the book across the chapters.
This is an old FrameMaker trick and I have not tried it with InDesign, but it should work. Test out the trial version first (do it on a copy of the book). -
How to get the total number of occurrences based on the value of a column.
Hello everyone,
This is the first time that I will ask question here on your forum but has been following several threads ever since. I guess that now is my turn to ask a question. So anyway here is the thing, I have a query that should return count the number of rows depending on the value of SLOT. Something like this:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 3
1-2 TRALTEST43S1 2 3
3 TRALTEST43S1 3 3
4-6 TRALTEST43S2 1 4
4-6 TRALTEST43S2 2 4
4-6 TRALTEST43S2 3 4
7 TRALTEST43S2 4 4-----
As you can see above, on the SLOT TRALTEST43S1, there are three occurrences so M (Total number of occurrences) should be three and that column N should count it. Same goes with the SLOT TRALTEST43S2. This is the query that I have so far:
SELECT DISTINCT
WIPDATAVALUE, SLOT
, LEVEL AS n
, m
FROM
SELECT
WIPDATAVALUE
, SLOT
, (dulo - una) + 1 AS m
FROM
SELECT
WIPDATAVALUE
, SLOT
, CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una
, CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo
FROM trprinting
WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip
) CONNECT BY LEVEL <= m
ORDER BY wipdatavalue;And that it results to something like this:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 2
1-2 TRALTEST43S1 2 2
3 TRALTEST43S1 1 1
4-6 TRALTEST43S2 1 3
4-6 TRALTEST43S2 2 3
4-6 TRALTEST43S2 3 3
7 TRALTEST43S2 1 1-----
I think that my current query is basing its M and N results on WIPDATAVALUE and not the SLOT that is why I get the wrong output. I have also tried to use the WITH Statement and it works well but unfortunately, our system cant accept subquery factoring.
I know you guys will be helping out because you are all awesome. Thanks everyone
Edited by: 1001275 on Apr 19, 2013 8:07 PM
Edited by: 1001275 on Apr 19, 2013 8:18 PMHi,
Sorry, it's still not clear what you want.
Are you saying that, given this table:
CREATE TABLE trprinting
WIPDATAVALUE VARCHAR2(255)
, SLOT VARCHAR2(255)
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('1-2', 'TRALTEST43S1');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('3', 'TRALTEST43S1');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('4-6', 'TRALTEST43S2');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('7', 'TRALTEST43S2');you want to produce this output:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 3
1-2 TRALTEST43S1 2 3
3 TRALTEST43S1 3 3
4-6 TRALTEST43S2 1 4
4-6 TRALTEST43S2 2 4
4-6 TRALTEST43S2 3 4
7 TRALTEST43S2 4 4? If so, here's one way:
WITH got_numbers AS
SELECT wipdatavalue
, slot
, TO_NUMBER ( SUBSTR ( wipdatavalue
, 1
, INSTR ( wipdatavalue || '-'
) - 1
) AS low_number
, TO_NUMBER ( SUBSTR ( wipdatavalue
, 1 + INSTR ( wipdatavalue
) AS high_number
FROM trprinting
SELECT wipdatavalue
, slot
, ROW_NUMBER () OVER ( PARTITION BY slot
ORDER BY low_number
) AS n
, COUNT (*) OVER ( PARTITION BY slot ) AS m
FROM got_numbers
CONNECT BY LEVEL <= high_number + 1 - low_number
AND low_number = PRIOR low_number
AND PRIOR SYS_GUID () IS NOT NULL
ORDER BY low_number
, n
;Much of the complexity here is caused by storing 2 numbers in 1 VARCHAR2 column, wipdatavalue. Relational databases work best when there is no more than 1 item in any given column of any given row. This is so basic to datbase design that it is called First Normal Form. Also, numbers belong in NUMBER columns, not VARCHAR2. If you stored your data like that in the fist place, then you wouldn't need the sub-query I called got_numbers, which is about 60% of the code above. (That could be reduced by replacing SUSTR and INSTR with the less efficient REGEGP_SUBSTR.) -
Hw to find total number of records
Hi All,
Can anyone help from these
1. how to find total number of reports for a particular cube/ods... need step - step solution
2. how to find total number of records for a particular Cube and ODS and Aggr's to till date.
3.what is sandbox,mirror sys,instance of a sys..?
4.what r TWS(Tivoli Workload Scheduler) jobs? how these r different to standard schedulers?
Thanks in ADv
LindaHello Linda,
As you have lots of answers on first 2 so i'll start from 3rd onward.
3. Sandbox is mostly practice system where you can do all kind of R&D, mirror sys can be mirror image of any system depends on the organization and instance of system is again mirror image of one system.
4. TWS is third party tool for scheduling which doesn't come along with SAP like standard scheduler as TWS has been prepared specially for this purpose so it has some more features than standard.
Hope it helps.
San. -
Old How to find total number of events in an event list?
Hi,
I am developing a j2me application. i Want to find the total number of events in an event list.(ie, If it contains 15 events then it should return length as 15).
Not the length of EVENT LISTS i want to find the Length of EVENTS.
Thanks,
kumarHi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
Need to Find Total number of InfoPart form in our Web application
Hello,
We have to find total number of Infopath forms in our web application. IS there any Power sheell Scripts or anuthing which can output the Infopath Forms location and file count .
Thanks
KundanHow about something like:
Get-SPWebApplication http://yourWebAppUrl |
Get-SPSite -Limit All |
Get-SPWeb -Limit All |
Select -ExpandProperty Lists |
Where { $_.GetType().Name -eq "SPDocumentLibrary" -AND -NOT $_.Hidden } |
Select -ExpandProperty Items |
Where { $_.Name -LIKE "*.xsn" }
Select {$_.Web.Url}, Url
The above will list all of the files. Do you need counts by library, by site or other?
Mike Smith TechTrainingNotes.blogspot.com -
How to find total number of records in a BDoc?
Dear all,
I have replicated about BP 1088 records from ISU into CRM system with block size 100. Technically on SMW01, for each successfully processed BDoc, there will be 100 records (corresponds to 100 block size). But due to some failed BDocs, not all "successfully" BDocs will have 100 records each, some may have only 1 record inside...or 30...or 88 for example. So, may i know how to find or is there a report i can look into to find the total number of records clearly shown for each of the successfully processed green status BDocs???
Please help and points will be rewards!!
Thank You
Best Regards,
CKI am just showing this to show how to get the rowcount along with the cursor, if the program has so much gap of between verifying the count(*) and opening the cursor.
Justin actually covered this, he said, oracle has to spend some resources to build this functionality. As it is not most often required, it does not makes much sence to see it as a built-in feature. However, if we must see the rowcount when we open the cursor, here is a way, but it is little bit expensive.
SQL> create table emp_crap as select * from emp where 1 = 2;
Table created.
SQL> declare
2 v_cnt number := 0;
3 zero_rows exception;
4 begin
5 for rec in (select * from (select rownum rn, e.ename from emp_crap e) order by 1 desc)
6 loop
7 if v_cnt = 0 then
8 v_cnt := rec.rn;
9 end if;
10 end loop;
11 if v_cnt = 0 then
12 raise zero_rows;
13 end if;
14 exception
15 when zero_rows then
16 dbms_output.put_line('No rows');
17 end;
18 /
No rows
PL/SQL procedure successfully completed.
-- Now, let us use the table, which has the data
SQL> declare
2 v_cnt number := 0;
3 zero_rows exception;
4 begin
5 for rec in (select * from
6 (select rownum rn, e.ename from emp e)
7 order by 1 desc)
8 loop
9 if v_cnt = 0 then
10 v_cnt := rec.rn;
11 dbms_output.put_line(v_cnt);
12 end if;
13 end loop;
14 if v_cnt = 0 then
15 raise zero_rows;
16 end if;
17 exception
18 when zero_rows then
19 dbms_output.put_line('No rows');
20 end;
21 /
14
PL/SQL procedure successfully completed.Thx,
Sri -
To find total number of files inside folder
Hai,
In knowledge management is there any option to find total number of files inside folder...
I also want to see the recently uploaded and modified documents in a seperate iview...
Iam using NW2004s SP8..
Very urgent..
Waiting for a positive reply..
Thanks®ards,
Kiruthika.SHi Kiruthika,
1. You only need the configarchive if you don't want create all the KM configuration objects mentioned in the guide manually. So, just create the objects mentioned there and you don't need the configarchive
Also, the scenario works also on 2004s.
2. Please check this thread on how to show the total number of files inside a folder:
https://forums.sdn.sap.com/thread.jspa?threadID=19610
3. It would be nice if you would consider rewarding the time people like Saravanan spend to investigate and answer your question by assigning points via the colored stars.
Best regards,
Robert -
To find total number of pages in XML publisher
1. Is there any method to find the total number of pages in BI or XML publisher.
2. Is there any method to to repeat the column(Not rows) on every page.For eg you have table with two columns say "A" and "B" .I want to repeat this B in every page . And A should print only in first page.
3. Is there any method to print a text say "ABC" only on first page footer based on condition.
Thanks
WazidExactly what my requirement is- In my template i have set header and footer page setup as "different first page'" and also printing the user text at the bottom of the last page using <?start@last-page-first:body?> <?end body?>.When i run the template, for multiple pages output user text is displaying at the bottom of the last page that is working fine but for single page output user text is not displaying at the bottom of the page because of the ""different first page'" header and footer.If you have any idea please suggest.
-
FMS to Find total number of Quantity for all Sales Orders
Hi Experts,
I am trying to get the total number of quantities for the current document. Kindly help me out how to find it out for the current document.
Currently I am giving the document no. to the query by modifying the query every time before executing it. but how can i do this without giving the document numbers and executing the query directly.
Kindly help ...
Thanks and regards,
Amit.Hi,
Please follow below steps to get total quantity.
1. Run below query first in query generator
SELECT sum(T1.[Quantity]) FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE t0.docnum = $[ORDR.docnum]
2. After execute, save it under query manager with required name
3. Open sales order and run saved query
4. Total quantity will be displayed in query result.
refer below screen shot:
Thanks & Regards,
Nagarajan -
How can I view the total number of songs in my iTunes?
iTunes no longer displays to the total number of songs. Also the side scroll bar has disappeared. Can anyone help?
Thanks
MarciaYou can restore much of the look & feel of the previous version with these shortcuts:
ALT to temporarily display the menu bar
CTRL+B to show or hide the menu bar
CTRL+S to show or hide the sidebar
CTRL+/ to show or hide the status bar (won't hide for me on Win XP)
Click the magnifying glass top right and untick Search Entire Library to restore the old search behaviour
Use View > Hide <Media Kind> in the cloud or Edit > Preferences > Store and untick Show iTunes in the cloud purchases to hide the cloud items. The second method eliminates the cloud status column (and may let iTunes start up more quickly)
If you don't like having different coloured background & text in the Album view use Edit > Preferences > General and untick Use custom colours for open albums, movies, etc.
tt2
Maybe you are looking for
-
Is it possible to do goods movement with reference to PR or STR?
My client wish to follow following process for fulfilling the material requirement. 1. User will create Purchase Requisition or stock transport requisition. 2. Purchase dept. will check the stock and will ask stores to issue the goods if available. T
-
Need to have a popup window from a link in a cfgrid
I've got a cfgrid that is displaying some program information. I want the program number to have a link to a pop-up window which contains an edit form for that program. Here is the script for the popup window I used on my page before I implemented a
-
Hi, I was wondering if anyone can tell me whether there is a RAID controller available for V890 for its internal FC-AL hard disks. I've never seen a RAID controller for FC hard disks and my vendor claims that there is no RAID controller available for
-
Orphaned Group Headers in Variable length Subreports.
I have a report is composed of a number of subreports that each have 3 nested groupings. I am trying to figure out how to keep the subreports from printing GH1 on a page when GH3 will not fit on that same page of the main report. I have read the kn
-
Recently upgraded to 05, want to post a bunch of pics to homepage (which i've done a zillion times before, but not since upgrading on this computer) and i keep getting an error message: "Connection could not be established at this time, check your ne