How to check the number of rows in a table with input data?`
Dear all,
I am having a table ( with declaration of 5 rows during the init ) there's a next button which will add another 5 rows by pressing. Let say the user ony key in 7 rows of data.. how should i track it? coz these data act as input to my bapi function. One of the input field of my bapi is to state how many rows of data that a user had key in. Thank you.
I think ur problem is empty records, u dont want to process empty table rows.
m I right?
if yes then just before processing the data / records, check for empty records and remove unwanted rows from the node.
for (int i = 0; i < TableNode.size(); i++)
if all cells of row(i) are empty
remove row(i) from Table Node.
OR if you dont want to remove empty rows from display (screen), then at the time of processing, transfer useful rows to a separate node and process that node.
Best Regards
Deepak
Similar Messages
-
How to change the number displaying rows in a table
Hi all,
i have a table for resources in Debrief Work order (Standard Screen), we need to change the default displaying rows. inistially it displayed 3 empty rows.
i tried to change the Records Displayed for the table but it did not affect.
also it is possible to change the "Add 3 rows" button in the table to add for example 5 rows instead?
any idea?
Regards,
Mahdi ChararaHi,
Through personalization we can do.On standared page top right u will find personalization link.click on the clink next expand all there find apporiate table .Here u will fine reorder button set as u want display and save. then u can see the change.For add row functionality u need to extend the co. -
How to increase the number of rows in Status Oveview iView in MSS?
Hi
We have implemented MSS and have a question regarding Status overview iview.
The standard status overview iview of the team workset has 5 rows and we have to scroll using the arrow buttons to select/view a request.
Now can anyone explain me how to increase the number of rows in this iview? Is this somthing that has to be accoplished through web dynpro customization?
I checked the options in iView property and do not see any option to increase the number of rows.
please help
Thanks
-MichaelHi Micheal,
Well, I am not really sure, if you could accomplish this using customizing, but I am sure that you can accomplish this using the JDI. Well, you can extract the application's source code using JDI and then change the required display rows property and republish it.
Am not really sure if this is suggestable method for this requirement,but it can be achieved using this JDI stuff.
Regards
<b>Raja Sekhar</b><i></i> -
How to increase the number of rows to be displayed in BEx Web Analyzer
hi,
I am viewing reports using BEx Web analyzer option. It is displaying only 24 rows of data at a time. How to increase the number of rows? do i need to any kind of settings?
pls reply.Hi,
I think the standard template in 2004s is named 0ANALYSIS_PATTERN. You can find it in Web Application Designer, open, and search for the technical name. If you want to change the number of rows or columns, you can find this setting near the bottom of the XHTML view of the template:
<bi:BLOCK_COLUMNS_SIZE value="4" />
<bi:BLOCK_ROWS_SIZE value="17" />
Then just save, and ignore the error messages.
Message was edited by:
vind Reinsberg -
How to limit the number of rows in a smart form , sap script.
Can anyone tell me how to limit the number of rows in the output of a sap script/smart form. I have tried "protect/endprotect" in sap script but have no idea of how to do in smart form. In sap script the only way it has happened is by reducing the size of the main window.
Hi,
In Smartform also, why dont you try reducing the size of the window if you want to limit the rows in it. Also if you are printing Line Items in a LOOP, you can write
LOOP AT T_ITAB FROM 1 TO N in the LOOP Node if you know how many records exactly you want to display in 1 Page processing.
regards,
Mahesh -
How to count the number of rows in a resultser object?
hi there
how to count the number of rows in a resultser object which may contains millions of rows? besides using a while loop? thanksYou don't, you execute a query whose result is the record count of those records that match the search and then you execute the actual query to create your record set. Typically you do
select count(id) from YourTable where [filter]
from the resulting ResultSet do
int res.getInt(1);
which gives you the count and then
select id from YourTable where [filter]
to produce the actual result set.
in the second query the id part can be substituted with the actual fields you want. -
How to check the number of licences for ODI
Hi,
I would like to know , how to check the number of licences exists for my current OID.
ODI Version: 11.1.1ODI licensing is similar to Oracle DB licensing. Its licensed by the number of cores in your target database.
So, count the number of CPUs in your target box. Multiply them by the core factor (x86 vs sparc, etc) and then match with the paperwork you have :D -
How to check the number of remaining downloads on DPS dashboard?
I think that after the renewal of Adobe DPS,
Professionl/ Enterprise Edition users can chek the number of remaining downloads on DPS dashboard.
How to check the number of remaining downloads on DPS dashboard?
shimoawazuIs there a way to determine how many downloads have occurred on a professional account? We have multiple apps on the Apple and Android app stores and would like to know how many downloads from our first 5,000 have been used. Is there a way to view analytics from all of our apps at one time instead of having to log in to digitalpublishing.acrobat.com separately for each app?
Andrew -
How to check the number of colors in the file???
How to check the number of colors in the file ai ???
The Recolor Artwork tool will list all colors used in a document and the flyout menu in the Swatches panel also provides tools for managing colors.
Mylenium -
How to check the number of contacts with segment level 'food and beverage' in the segment builder?
Do we have any table to check this.How to check the number of contacts with segment level 'food and beverage' in the segment builder?
Do we have any table to check this. -
Displayin message and fixing the number of rows in a table
Hi Experts,
I have a requirement like this
there is a table, where i need to diplay a message when there are no records and no rows should be visible on that table.
Also, when the records are populated from the context, i need to fix the number of rows in that table and display the records.
Please let me know hw this can be achieved.
Also in the table I have Link to URL, please let me know how to handle this reference, when i set the reference Property, its giving me an error stating that the file doesn't exist when the table gets loaded.
Thanks in Advance
Regards,
PalaniHi
Oh!! You should to explain it at first thread itself that you want to display a JPG imange or other WDWebResourceTypetaken form the backend.
1. So this is not at all a URL
2. You have to convert binary data to WDWebResource then display it in either Image UI element or other (like PDF , txt etc)
3
try
// Read the datasource of the FileUpload
IWDResource res = wdContext.currentContextElement().getResource();
InputStream in = res.read(false);
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
int length;
byte[] part = new byte[10 * 1024];
while ((length = in.read(part)) != -1)
bOut.write(part, 0, length);
in.close();
bOut.close();
IPrivateUploadCompView.IImageTableElement ele = wdContext.nodeImageTable().createImageTableElement();
ele.setImage(wdContext.currentContextElement().getResource().getUrl(0));
ele.setText(res.getResourceName());
wdContext.nodeImageTable().addElement(ele);
catch (Exception e)
wdComponentAPI.getMessageManager().reportWarning(e.toString());
Here I assume that you convert that data to IWDResource type or
4.
WDWebResource.getWebResource(wdContext.currentContextElement().getresource(), type);
// getResource of type binary which u read from BAPI and set it in local context , type is MIMETYPE or hardcode it as "JPG"
5. Further help
[Help1|To Displayan Image in Webdynpro Java from Standard Function Module;
[Help2|http://wiki.sdn.sap.com/wiki/display/KMC/GettinganimagefromKMDocumentstobeusedinWeb+Dynpro]
[Help3|http://wiki.sdn.sap.com/wiki/display/KMC/GettinganimagefromKMDocumenttobeusedinWeb+DynPro]
It might code look strange at first , please do some reserch in SDN ,I did my best at this level.
Best Regards
Satish Kumar -
How will check the space taken by a single table in a tablespace ?
How will check the space taken by a single table in a tablespace ?
dba_segments is giving the same values even if I truncate the table?
Pls replyI need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
How much bytes it has taken ?value from user_segments, bytes column
If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
Jaffar -
How to check the sales orders that have been created with an Rebate Agreeme
Dear Experts,
Do you know how to check the sales orders that have been created with an Rebate Agreements?
Thanks!!Hi Hoo Laa,
I have one way but little lengthy.
Rebate condition always appears in the billing document.
So 1st you extract the sales order list from Table VBAK.
once you have the sales order list then you can put your order list in Table VBFA --> Extract the billing document list.
Now put that list in the table VBRK.
In VBRK you will get the "Doc. condition" --> put that doc condition in table KONV with your rebate condition type.
It will show the result.
Later, through VLOOKUP you can identify in which order you have given rebate to your customer.
Already said, Little lengthy
Regards,
MT -
How to compare two rows from two table with different data
how to compare two rows from two table with different data
e.g.
Table 1
ID DESC
1 aaa
2 bbb
3 ccc
Table 2
ID DESC
1 aaa
2 xxx
3 ccc
Result
2Create
table tab1(ID
int ,DE char(10))
Create
table tab2(ID
int ,DE char(10))
Insert
into tab1 Values
(1,'aaa')
Insert
into tab1 Values
(2,'bbb')
Insert
into tab1 Values(3,'ccc')
Insert
into tab1 Values(4,'dfe')
Insert
into tab2 Values
(1,'aaa')
Insert
into tab2 Values
(2,'xx')
Insert
into tab2 Values(3,'ccc')
Insert
into tab2 Values(6,'wdr')
SELECT
tab1.ID,tab2.ID
As T2 from tab1
FULL
join tab2 on tab1.ID
= tab2.ID
WHERE
BINARY_CHECKSUM(tab1.ID,tab1.DE)
<> BINARY_CHECKSUM(tab2.ID,tab2.DE)
OR tab1.ID
IS NULL
OR
tab2.ID IS
NULL
ID column considered as a primary Key
Apart from different record,Above query populate missing record in both tables.
Result Set
ID ID
2 2
4 NULL
NULL 6
ganeshk -
How to determine the number of rows of data in a datatable?
I have a datatable that I fill from an SQL query. I do not know exactly how many rows of data it will return (due to my selection criteria) but will be somewhere between 100 and 300 rows. I send this data into a report but need to determine the length of the report (panel height data member) programatically based on how much data the query has returned. So, I need a way to count how many rows are filled in the data table.
I tried doing a nested "if" statement checking the value of each cell but when I tested the expression at 59 "if" statements (will need 300+) I got a parser error in lookout when I tried to accept the connection. I also tried a type of loop by assigning cursor.2 either to its own value (circular) or to its own value plus one depending on the value of the cell at cursor.2. It was close but overshot by one row or more (much more sometimes).
Any clever ideas? Perhaps I have just been looking at this problem too long. Thanks, in advance, for your help.Since the datatable gets the data from the SQL query, you can also use the SQL statement to count the number of rows in the query result.
For example, in datatable you do "select localtime, trace1 from intdata where xxx". You can get the count by "select count(trace1) from intdata where xxx". Use the same condition in order to get the same number of rows.
Maybe another SQLExec object is needed to do the count.
Whenever the datatable executes the SQL, the SQLExec executes and return the count.
Ryan Shi
National Instruments
Maybe you are looking for
-
Problem Generating a Report by passing a Resultset as a datasource
I am having troubles generating a report using CR for Eclipse 2.0. I used the example that shows how do a simple select SQL query to the database and pass the resultset from the query to the report to generate a report from here: https://www.sdn.sap.
-
Can i connect my time capsule to my hdtv for use as an extra display for my mac book pro?
I want to use my hdtv as a display wirelessly. Can one connect their time capsule to the tv?
-
Hi Expert, Need your kindly help. i face one strange issue, when i run my BI7 report, the drilldown sometime not work properly. i.e we drilldown WBS, then the report display company code. Many thanks in advance Regards, Riny Muliawan
-
Running two erps on the same machine
My environment is 1. Database Node (database) 2. Application Node(applications on one node) Now what we want to run is explained below Both applications (ERP 12.0.6 and ERP 12.1.3) on the apps node and Both ERP's databases on the db node thanks®ar
-
Enable Measuring Tool for Use in Reader X
I created a Geo-spatial PDF using ESRI's ArcGIS. I opened the PDF in Adobe Acrobat Pro X and made some minor cosmetic changes. In Acrobat Pro X I was able to use all the geospatial tools including the measuring tool. I saved the changes to the PDF