Serial number column in Jtable
Apologies for this distraction.
I read at this forum about a year ago how to add a s/n column in Jtable such that all the nos are automatically updated/adjusted when a row is added/deleted. the count starts from the top down serially and unaffected by sorting.
pls help!
thanks a million BaltimoreJohn and especially camickr whose solutions to problems have been most helpful. applying the referenced post, i worked around the problem by resetting the values of the column having the serial number, based on table rowCount every time there is an operation on it(deleting, addition etc)
Similar Messages
-
Serial Number Column in BI Report
Hi,
Can we add 'Serial Number Column' in BI report?
Regards,
Anoop SahuThanks for your response.
I am not sure if I was clear before. I actully want to add a new column which will give sequential number to rows - 1, 2, 3, 4.... If the user changes drill down, it should automaticlly repopulate as 1, 2, 3, 4. I do not have any infoobject called 'Serial Number' in my cube.
Regards,
Anoop Sahu -
Project Serial Number column in Project Server 2013 (PWA)
Hi All,
Whenever any new projects are created on Project Server 2013, they are arranged automatically by Alphabetical order. So i would like to know or need support through which i can create serial number column in Project Center so that projects are aligned. as
per numbers.
Kindly help..Hi,
It is actually 2 questions.
First you want to create a unique ID for projects? Here is an excellent
blog about this subject.
Then you want to sort projects along a number? It could be a custom number field or the unique ID above. You just have to go to the server settings, manage views and go to the "sort by" section and select your number field.
Note that the field used to sort the project center view must be in the view to be used as a sorting criteria.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
hi gurus,
I need one more column for serial number how to include that in below codings, can someone help me,
data : number type i.
data : begin of wa_kna1,
kunnr type kunnr,
name1 type name1,
end of wa_kna1,
it_kna1 like table of wa_kna1.
data : begin of wa_table,
number type i,
kunnr type kunnr,
name1 type name1,
end of wa_table,
it_table like table of wa_table.
select kunnr name1 into table it_kna1 from kna1 up to 12 rows.
loop at it_kna1 into wa_kna1.
number = number + 1.
wa_table-kunnr = wa_kna1-kunnr.
wa_table-name1 = wa_kna1-name1.
*modify it_table from wa_table.
append wa_table to it_table.
clear : wa_table.
endloop.
loop at it_table into wa_table.
write :
/ wa_table-kunnr,
wa_table-name1,
wa_table-number.
endloop.
Thanks and Regards,
Thirukumaran. RHi Thirukumaran,
You can write the code in this way:
DATA : BEGIN OF wa_kna1,
kunnr type kunnr,
name1 type name1,
END OF wa_kna1,
it_kna1 TYPE STANDARD TABLE OF wa_kna1.
DATA : BEGIN OF wa_table,
number type i,
kunnr type kunnr,
name1 type name1,
END OF wa_table,
it_table TYPE STANDARD TABLE OF wa_table.
DATA: Ser_Num Type I.
START-OF-SELECTION.
SELECT kunnr name1 into table it_kna1 from kna1 up to 12 rows.
LOOP AT it_kna1 INTO wa_kna1.
Ser_num = Ser_Num + 1.
wa_table-number = ser_num.
wa_table-kunnr = wa_kna1-kunnr.
wa_table-name1 = wa_kna1-name1.
append wa_table to it_table.
endloop.
loop at it_table into wa_table.
write :
/ wa_table-kunnr,
wa_table-name1,
wa_table-number.
endloop. -
Serial Number Column in analysis - obiee 11g
Hi,
How can I create a colum for Serial Number based on the rows(It should give 1,2,3,4...n no of rows) which generated in the report. Do I need to create a logical column in Admin tool..? or need to do something else..?
Thanks@Aravind.
i did the same but if there is any filter apllied in the report because of it some records are getting filtered in that case s.no will not be (1,2,4,6,7,8) in serial how to overcome this scenario???
Thanks In Advance -
Dear Experts,
I herewith attachedc my codings i waht to add serial number how to do that i have done something but it is giving all zero values.,.,.,
*& Report ZAPPRAISAL_LAG
REPORT ZAPPRAISAL.
*Declaration of type-pools
TYPE-POOLS SLIS.
*Declaration of tables
TABLES : PA0025, PA0001.
DATA : LV_VALUE TYPE I.
*Declaration of work area
DATA: BEGIN OF WA_PA0025,
PERNR TYPE PA0025-PERNR,
ENDDA TYPE PA0025-ENDDA,
BEGDA TYPE PA0025-BEGDA,
AEDTM TYPE PA0025-AEDTM,
BWNAM TYPE PA0025-BWNAM,
DAT25 TYPE PA0025-DAT25,
GRPNR TYPE PA0025-GRPNR,
ENAME TYPE EMNAM,
BUKRS TYPE PA0001-BUKRS,
number type i,
END OF WA_PA0025,
WA_FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
wa_sort TYPE SLIS_SORTINFO_ALV,
WA_EVENTS TYPE SLIS_T_EVENT WITH HEADER LINE.
DATA: row_number type i.
*Declaration of internal tables
DATA : IT_PA0025 LIKE TABLE OF WA_PA0025,
IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
I_SORT TYPE STANDARD TABLE OF SLIS_SORTINFO_ALV,
IT_EVENTS TYPE SLIS_T_EVENT.
*selection screen
SELECTION-SCREEN BEGIN OF BLOCK FF WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS S_DATE FOR PA0025-DAT25.
parameters : p_date type pa0025-dat25.
parameters : p_date1 type pa0025-dat25.
SELECT-OPTIONS S_BUKRS FOR PA0001-BUKRS NO INTERVALS.
SELECTION-SCREEN END OF BLOCK FF.
*ALV EVENTS
WA_EVENTS-FORM = 'HEADER'.
WA_EVENTS-NAME = 'TOP_OF_PAGE'.
APPEND WA_EVENTS TO IT_EVENTS.
CLEAR : WA_EVENTS.
*start-of-selection event.
START-OF-SELECTION.
SELECT DISTINCT
A~PERNR
A~ENDDA
A~BEGDA
A~AEDTM
A~BWNAM
A~DAT25
A~GRPNR
B~ENAME
B~BUKRS
INTO TABLE IT_PA0025
FROM PA0025 AS A
INNER JOIN PA0001 AS B
ON BPERNR = APERNR
WHERE A~DAT25
between p_date and p_date1
AND B~BUKRS IN S_BUKRS.
SORT IT_PA0025 by pernr.
DESCRIBE TABLE IT_PA0025 LINES LV_VALUE.
loop at it_pa0025 into wa_pa0025.
row_number = row_number + 1 .
WA_PA0025-number = row_number.
*append wa_pa0025 to IT_PA0025.
endloop.
perform fcat using '1' 'NUMBER' 'S.no' '12' '' 'C410' 'C'.
PERFORM FCAT USING '2' 'PERNR' 'Personnel number' '16' 'X' 'C410' 'C'.
PERFORM FCAT USING '3' 'ENAME' 'Employee name' '26' '' '' ''.
PERFORM FCAT USING '4' 'BUKRS' 'Company code' '15' '' '' 'C'.
PERFORM FCAT USING '5' 'BEGDA' 'Start date' '11' '' '' ''.
PERFORM FCAT USING '6' 'ENDDA' 'End date' '10' '' '' ''.
PERFORM FCAT USING '7' 'AEDTM' 'Changed date' '13' '' '' ''.
PERFORM FCAT USING '8' 'BWNAM' 'Appraiser' '18' '' '' ''.
PERFORM FCAT USING '9' 'DAT25' 'Appraised date' '15' '' '' ''.
CLEAR wa_sort.
wa_sort-fieldname = 'PERNR'.
wa_sort-up = 'X'.
APPEND wa_sort TO i_sort.
CLEAR wa_sort.
wa_sort-FIELDNAME = 'DAT25'.
wa_sort-UP = 'X'.
APPEND wa_sort TO I_SORT.
CLEAR wa_sort.
wa_sort-FIELDNAME = 'BUKRS'.
wa_sort-UP = 'X'.
APPEND wa_sort TO I_SORT.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_SORT = I_SORT
I_GRID_TITLE = 'Report'
IT_FIELDCAT = IT_FCAT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_PA0025.
*& Form USER_COMMAND
text
--> p1 text
<-- p2 text
FORM USER_COMMAND USING U_UCOMM TYPE SY-UCOMM
US_SELF_FIELD TYPE SLIS_SELFIELD.
CASE U_UCOMM.
WHEN '&IC1'.
READ TABLE IT_PA0025 INTO WA_PA0025 INDEX US_SELF_FIELD-TABINDEX.
CASE US_SELF_FIELD-FIELDNAME.
WHEN 'PERNR'.
SET PARAMETER ID : 'PER' FIELD WA_PA0025-PERNR.
CALL TRANSACTION 'PA30'.
ENDCASE.
ENDCASE.
ENDFORM. " USER_COMMAND
FORM FCAT USING FP_COL_POS
FP_FIELDNAME
FP_SELTXT_M
FP_OUTPOUTLEN
FP_HOTSPOT
FP_EMPHASIZE
FP_JUST.
WA_FCAT-COL_POS = FP_COL_POS.
WA_FCAT-FIELDNAME = FP_FIELDNAME.
WA_FCAT-SELTEXT_M = FP_SELTXT_M.
WA_FCAT-OUTPUTLEN = FP_OUTPOUTLEN.
WA_FCAT-HOTSPOT = FP_HOTSPOT.
WA_FCAT-EMPHASIZE = FP_EMPHASIZE.
WA_FCAT-JUST = FP_JUST.
APPEND WA_FCAT TO IT_FCAT.
CLEAR : WA_FCAT.
ENDFORM. " FCAT
*& Form HEADER
text
--> p1 text
<-- p2 text
FORM HEADER . "#EC CALLED
DATA : IT_HEADER TYPE SLIS_T_LISTHEADER,
WA_HEADER LIKE LINE OF IT_HEADER.
WA_HEADER-TYP = 'H'.
WA_HEADER-INFO = TEXT-006.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-007.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO WA_HEADER-INFO. "Current date
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-012.
MOVE LV_VALUE TO WA_HEADER-INFO.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_HEADER.
CLEAR : IT_HEADER[], WA_HEADER.
ENDFORM. " HEADER
Thanks and Regards,
Thirukumaran. Rhi
LOOP AT it_pa0025 INTO wa_pa0025.
row_number = row_number + 1 .
wa_pa0025-number = row_number.
" Add this statement here
MODIFY it_pa0025 INDEX sy-tabix FROM wa_pa0025 TRANSPORTING number.
ENDLOOP.
Thanks & Regards -
Need to make serial number in rdf
need to make serial number column in report builder
i tried to put rownum as column in the select statement but data wasnot fetched probablyuser513954 wrote:
need to make serial number column in report builder
i tried to put rownum as column in the select statement but data wasnot fetched probablyWhat do you mean by "was not fetched properly"? Why did not rownum work for you? Do you have the corresponding SQL?
Cheers
Sarma. -
Hi,
We are running Dell Optiplex GX 270 & 280 workstations and have all
ZfD401 features running in our networks
In the inventroy scan configuration, it scans the serial number as well
as the asset tag number from BIOS.
I can see these infomation in the workstation object - zenworks
inventory - min info.
However, if I exporting the inventory database to a CSV file and open it
in Excel. The serial number column is empty. None of the 1200
workstation records have the serial number exported.
Any idea?
Thanks,
LouieThanks Heaps.
> Make a data export with -hardware-bios-serial number
>
> Jan
>
> <[email protected]> wrote in message
> news:jJUwd.5345$[email protected]..
> > Hi,
> >
> > We are running Dell Optiplex GX 270 & 280 workstations and have all
> > ZfD401 features running in our networks
> >
> > In the inventroy scan configuration, it scans the serial number as well
> > as the asset tag number from BIOS.
> >
> > I can see these infomation in the workstation object - zenworks
> > inventory - min info.
> >
> > However, if I exporting the inventory database to a CSV file and open
it
> > in Excel. The serial number column is empty. None of the 1200
> > workstation records have the serial number exported.
> >
> > Any idea?
> >
> > Thanks,
> > Louie
> >
>
> -
How to create a column that automatically creates a serial number?
How can I create a column that creates a serial number for each entry?
you could do something like this:
I assumed that the serial number only needs to be present if you have entered some information in the other columns of the corresponding row.
A2=IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
this is shorthand for... select cell A2, then type (or copy and paste from here) the formula:
=IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
To fill down:
select cell A2, copy
select column A by clicking the columne header (the "A" at the very top)
unselect cell A1 by holding the command key while single clicking cell A1
paste -
Fill a column with serial number
Hello, all seniors..!
my table has one empty tno (number) column, that i now wish to fill it with a series of numbers
for as many records that are present.
the sample table data is; 1 SELECT TXN_DATE
2 FROM PTXN
3* WHERE ROWNUM <10
TXN_DATE
18/03/2010
02/02/2010
10/02/2010
05/04/2010
15/05/2010
25/01/2010
03/02/2010
15/01/2010
25/04/2010
9 rows selected.
I issue this command;
update ptxn
set tno = rownum
With the above Update SQL, the TNO column got filled with the exact number of records. Like this,
SELECT TXN_DATE,tno
FROM PTXN;
TXN_DATE TNO
03/02/2010 1
15/01/2010 2
02/02/2010 4
25/04/2010 8
25/01/2010 3
18/03/2010 6
15/05/2010 9
10/02/2010 5
05/04/2010 7
9 rows selected.
what i actually want is to sort my table (ptxn) by column 'txn_date' wise and then fill series.
Like this;
TXN_DATE TNO
15/01/2010 1
25/01/2010 2
02/02/2010 4
03/02/2010 8
10/02/2010 3
18/03/2010 6
05/04/2010 9
25/04/2010 5
15/05/2010 7
How do i modify my Update statement ot any other solution, please suggest.Using PL/SQL:
SQL> select * from PTXN ;
TXN_DATE TNO
07-MAR-10
26-FEB-10
01-MAR-10
08-FEB-10
03-MAR-10
16-APR-10
11-APR-10
08-MAY-10
14-MAR-10
18-APR-10
10 rows selected.
SQL> begin
2 for r in (select rowid i, TXN_DATE, row_number() over (order by TXN_DATE) n from PTXN) loop
3 UPDATE PTXN p
4 set TNO = r.n
5 where rowid = r.i;
6 end loop;
7 end;
8 /
PL/SQL procedure successfully completed.
SQL> select * from PTXN
2 order by 1;
TXN_DATE TNO
08-FEB-10 1
26-FEB-10 2
01-MAR-10 3
03-MAR-10 4
07-MAR-10 5
14-MAR-10 6
11-APR-10 7
16-APR-10 8
18-APR-10 9
08-MAY-10 10
10 rows selected.Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/31/le-direttive-di-compilazione-pragma/] -
How to add serial number contolled item with serial numbers in sales order.
Hi OM Functional Experts,
I need a help on sales order booking.
We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
thanks in advance.
Rdx,
J kannan
Edited by: J Kannan on Feb 17, 2009 1:23 AMKannan
OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
Thanks
Nagamohan -
Display of serial number in the report
Hi experts,
I wanted the serial number in my report based on plant .I am getting it based on my sub divisions of plant .Also i wanted this column as the first while dispplayed in the re[port.
can anyone please suggest me a solution for this issue?thanks syed but i want a new column in my report level based upon the plant like
1. aaa
2.bbb
but i get it based on the subgroup like
aaa asdf 1
dfgh 2
hjkl 3
bbb asdf 1
dfgh 2
hjkl 3
the correct output what iam looking for is
1.aaa asdf 1
dfgh 2
hjkl 3
2.bbb asdf 1
dfgh 2
hjkl 3 -
ere are the specs on the Mac I need more power on.
Mac Tower
Processor 2 x 2.26 GHz Quad-Core Intel Xeon
Memory 6 GB 1066 MHz DDR3 ECC
Graphics NVIDIA GeForce GT 120 512 MB
Serial Number H00354XF20G
Software OS X 10.8.5 (12F45)
Harddive 640 GB
SATA Disk
(2) Harddrives 1 TB
SATA Disk
RAM 6 slots total -- 6 are filled with 1GB
(3) UAD Quad cards installed
I use this computer stictly for audio recording.
Pro Tools 10.3.7
Interface Apollo 16
Pro Tools is curretnly not compatible with Maverick. Also, I believe that Pro Tools 10 only allows 4GB ram to be utilized (not sure )
I know Pro Tools 11 allows more, but not sure how much more. Also not sure if the upgrade to Pro Tools 11 I will have to purchase all new plug ins or if my existing ones will continue to work in it.
The platform changes from 32 bit to 64 with the upgrade to 11
If it is as simple as adding more ram, what mode-part #l would you recomeend. Can the processor be upgraded also ?
The new tube like Macs are non compatible with UAD Cards. Those cards a must my sessionsYou can use Activity Monitor to check if apps run as 32 or 64 bit - simply look at the "Kind" column (you may need to select it under View -> Columns) and see if the app in question is listed as "Intel" i.e. 32 bit or as "Intel (64 bit)".
While in Activity Monitor you can also check if Pro Tools is close to the 3-4 GB limit of a 32 bit app - if you aren't you will probably not benefit from more RAM.
Your MacPro (it appears to be a Early 2009 model) should have come with a small booklet showing how to install RAM and what kind of RAM that you need. Any RAM that fulfills the requirements should work but your safest choice is probably to buy from a retailer/online store that supports Macs as they will usually know what kind of RAM you need for your mac model.
Upgrading the CPUs should be possible, but I haven't seen Apple document how to do this, so you will probably have to google around a bit to find instructions and CPU part numbers.
Your choice of CPUs will also be limited by the motherboard and CPU socket so you may be limited to faster version of your current CPU chip and some slightly newer versions.
Going from your current CPU to the fastest version included in the 2009 MacPros would be going from 2.26 GHz to 2.93 GHz. This would only give a modest 30% speed boost. Using newer and highly clocked CPUs might boost this somewhat more maybe to 50% ? -
Need formula to take text from one cell, add that to a serial number with leading zeros
I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
The result would look like
A Column
Job Name
B ColumnTape #
Formula needed for B
ClientName-TapeType-
ClientName-TapeType-001
=
ClientName-TapeType-
ClientName-TapeType-002
=
I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
That worked, but requires recreating the custom cell format for each client and tape type.
So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells. It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
Thanks in advance.
Suggestions much appreciated!
TedTed,
This expression in B will give you the pattern I believe you are looking for:
=A&RIGHT("00"&ROW()-1, 3)
Here's a screen shot...
Jerry -
Number range for serial Number in production order
Hi all,
I want to use the Serial Number in production Order ... It should be generated automatically ... when i try this system creating the serial number from 1.....i want the number to start from 2000000 , How to configure this number range ....
Please advise me ...
Regards,
kumarDear
Following steps are required in Serial Number Management :
1. OIS2 or Go to path SPRO > Plant Maintenance and Customer Service > Master Data in Plant Maintenance and Customer Service > Technical Objects > Serial Number Management > Define Serial Number Profiles. There enter "2" in Stkck column for your serial profile.
2.SPRO->SAP Customizing Implementation Guide->Plant Maintenance and Customer Service->Master Data in Plant Maintenance and Customer Service->Technical Objects->Equipment->Equipment Categories->Define Number Ranges
3. IQ01 Create Serial Number
4. MM02 You need to add the above created Serial Number Profile in the Material Master ion the work scheduling view .
5. CO02 Assigning the Serial Number through Production Order,
Also Serial Number can be created automatically by clicking on u201CCreate Serial Number Automaticallyu201D , Release the Order
6. MB31 Do the GR for the above created Production Order and Check in MMBE for serial Numbers
Try and check
Regards
JH
Edited by: Jiaul Haque on Nov 22, 2010 7:43 AM
Maybe you are looking for
-
Small Doubt Regarding SY-MANDT
Hi All, SELECT changenr FROM cdhdr CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_cdhdr WHERE mandant = syst-mandt AND objectclas = 'MATERIAL'
-
firefox 4 came on my computer thru an update. now i do not have my yahoo toolbar that has the refresh button the home button and the other buttons that are on yahoo tool bar. i want to use my yahoo toolbar and it says it isnt compatible with firefox
-
Data inserting two times in a table when i click submit button
Hi Experts, I had a problem, when i am inserting data in a table from a form at the first time when i click button it adds two times, afterwards it is adding one time only, the form and table are from same value node (table is collection cardinality
-
How to measure the performance
Hi all, I would like to compare the performance of my Webdynpros in different machine. I need to measure the time of execution of my Web dynpro, including execution of some interaction from the user (navigation between the pages, etc). How can I do i
-
Can't update iPod software to 1.2.1
I have 30Gb iPod video. Currently running version 1.2 with iTunes version 7 on a souped up Mac G4. I can't get it to update to v1.2.1 as iTunes offers. Keeps coming back with 'cannot be updated because it contains files that are in use by another app