VC No. of rows in Table disabled
I cannot select "no. of rows" in a table, so always all rows are displayed at one page.
What can I do to enable this function?
You might want to ask in the VC forum...
Cheers
Similar Messages
-
Enable/Disable Rows In table Control
I m getting material number for particular material doc. if i get N rows in output i want to disable all other rows of table control.
Moderator message: please search for previous solutions to similar problems before asking.
Edited by: Thomas Zloch on Nov 20, 2010 7:24 PMHi,
In PBO, Loop at your table control lines, create a module inside it and use
LOOP AT SCREEN.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDLOOP.
Regards,
Senthil -
Enable/disable rows of Table control
Hi,
I am showing n number of records in a table control. These number of records may wary depending on a X condition.
I have also created a button with which user can create a new record from the same tabkle control and t/f back that new value in the itab.
Now, when table control is displayed it WILL have certain records in it. I want those records to be in the INPUT = '0' state and rest of the table control lines should be INPUT = '1'.
I am trying....
PROCESS BEFORE OUTPUT.
MODULE status_0101.
LOOP AT ts_store WITH CONTROL tabc CURSOR tabc-current_line.
module change_scr_attr.
ENDLOOP.
module change_scr_attr output.
CASE ok_code.
WHEN 'DISP'.
Displays all the records in INPUT = '0' state.
LOOP AT tabc-cols INTO cols WHERE index GT 0.
cols-screen-input = '0'.
MODIFY tabc-cols FROM cols INDEX sy-tabix.
ENDLOOP.
WHEN 'CREA'.
if * * disable the CDC Column
* disable Delete shortcut.
REFRESH ts_store.
LOOP AT tabc-cols INTO cols WHERE index GT 0.
IF ts_store-zstcdc_store IS INITIAL.
cols-screen-input = '1'.
ELSE.
cols-screen-input = '0'.
ENDIF.
screen-active = '1'.
MODIFY tabc-cols FROM cols INDEX sy-tabix.
ENDLOOP.
LOOP AT tabc-cols INTO cols WHERE index GT 0.
IF cols-screen-input = '0'.
cols-screen-input = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-input = '0'.
ENDIF.
MODIFY tabc-cols FROM cols INDEX sy-tabix.
ENDLOOP.
LOOP AT SCREEN.
IF ts_store-zstcdc_store IS INITIAL.
screen-input = '1'.
ELSE.
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDCASE.
endmodule. " change_scr_attr OUTPUT
I have waded thru few threads but I dont get it.
Plz suggest!!
~Sid
"Max points are assured"Hi....
Actually.... our table control.. is by defalut make disable the empty rows... which are not having data...
because... the process of dispaly table control like this...
1.Fetching the records from database into one itab...
2.Capturing the itab lines with following sytax...in the PBO module..
> MODULE <TC>_CHANGE_TC_ATTR OUTPUT.
> DESCRIBE TABLE ITAB LINES <TC>-lines.
> ENDMODULE.
with this you are sizing the table control as for itab size...
3. Filling or Attaching the itab with Table control...
> LOOP AT ITAB
> WITH CONTROL TC
> CURSOR TC-CURRENT_LINE.
> MODULE TC_GET_LINES.
> ENDLOOP.
So in above module we can fill data and can disable and enable rows of certain condition...
So the condition aplleid rows should be disable and remaining enable.. and important thing is empty rows should be defaultly disabled mode...
But.. Here you want to appear empty rows should be in enable mode...
For that in second step.... modify the code like this....
> MODULE <TC>_CHANGE_TC_ATTR OUTPUT.
> DESCRIBE TABLE ITAB LINES <TC>-lines.
> <TC>-lines = <TC>-lines + 4.
> ENDMODULE.
So with this you can get 4 empty and enable lines...
and if u are not having 2nd step in ur coding.. just write it now.. it will solve ur problem...
Pleae get back to me if you want any further clarification...
Thanks,
Naveen.I
Edited by: Naveen Inuganti on Jun 30, 2008 5:03 PM
Edited by: Naveen Inuganti on Jun 30, 2008 5:50 PM -
Deadlocks with ALTER TABLE DISABLE CONSTRAINT
Hello,
We're deleting millions of redundant rows from a particular table in our live 10g database. This is being done online because the downtime would be unacceptable. The table in question has 30 child tables, so for speed I am disabling the foreign keys using ALTER TABLE DISABLE CONSTRAINT before the deletion (we haven't had any constraint violations for ages). Without this, deletion takes about 1 second per row i.e. a very long time.
However, we're finding that ALTER TABLE DISABLE CONSTRAINT often reports ORA-00060: deadlock detected. This is causing problems with the live system. Can anyone think of the reason why a deadlock might occur in this situation and what we could do to prevent it happening? Note that any solution has to be doable without downtime unless it takes less than 30 minutes.
Thanks a lot
Ed
Edited by: edwiles on Feb 4, 2009 6:02 AMlook suggestions in the similar thread:
Re: Deadlock when deleting a not linked data record in a parent table -
How to Enable All rows in Table
Hi Friends,
I have to create table in firstview. My requirement is I will give 4 or 5 inputs at a time then click on save button that input data will be saved in ECC system
So in First View I have to create table by using apply template that time I have to pass all u201Cinput filedsu201D.
In that time the table having only first row editable and remaining rows will be disable. I need all rows in enable in that Table.
Or
My Requirement is how to enter multiple input detals at a time. At a time customer enter 4 or 5 inputs click on submit buttion that data will be saved in ECC System.
How to do this work.
Regards
Vijay Kalluri
Edited by: KalluriVijay on Mar 5, 2010 12:34 PMHi Vijay,
The number of editable rows in the table would be equivalent to the number of elements the node to which the table is bound contains. In your case, it might be only having one element for the node as so you can only see that row enabled while the rest of the rows are disabled. So, in case you want even the rest of the rows to be enabled then, you should just create more elements for the same node (with or without setting any of the attribute within).
Then, when you need to use the values in the table (existing or modified or new values), then loop through the table node and check if all the attributes within the node or the mandatory field value for the table entry is not nul, otherwise, ignore the corresponding table node element.
Rather, I would suggest you to have a button say "Add Rows" and within the action of the node, I would like you to create one more element for the table at the end. This way, you wont have any unnecessary element in the table to be checked for not holding any value.
Regards,
Tushar Sinha -
Table disabled after removing the last record
After removing the last row of table and disables it is unable to select any record.
Version: JDeveloper 11.1.1.2.0Problem solution
my backBean:
protected void limpaSelecaoDaTabela() {
if (usaPopup)
if (table != null)
table.setSelectedRowKeys(null);
protected void limpaSelecaoDaTabela() {
if (usaPopup)
if (table != null)
table.getSelectedRowKeys().removeAll();
} -
How to delete the row in table control with respect to one field in module pool programming?
Hi,
Can I know the way to delete the row in table control with respect to one field in module pool programming
Regards
Darshan MSHI,
I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
I have written this code,
module USER_COMMAND_9000 input.
DATA OK_CODE TYPE SY-UCOMM.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'DELETE'.
LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
APPEND LS_SOURCE TO LT_RESTORE.
DELETE TABLE LT_SOURCE FROM LS_SOURCE.
SOURCE-LINES = SOURCE-LINES - 1.
ENDLOOP.
But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
So I thought of doing with respect to the field. -
Merge two rows & show in a single row in table results
Hi, I need to merge 2 rows having 3 columns in a single row in table view
The cols are currently shown as :
Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
123123 10000
20000
Revenue is a single column with revenue for diffreent Period.
10000 is for May
20000 is for April
Project NO for both are same, just the periods are different. if I am not displaying Period i need to merge the 2 rows & show as
Project NO-------(Current_Month) Revenue----------(Prior_Month) Revenue
123123 10000 20000
Please let me know how we can acheive this??
thanx
Pankaj123123 is the project number..
the above is not getting displayed properly....as the blank spaces are removed...
Please consider this -
How to get all the index of "selected rows" in table control?
Hi Gurus,
I have a table control, wherein I need to get selected row so that I can get its respective TABIX.
I know that the event for capturing selected row is in PAI.
I also ensure that the w/ selColumn name in my screenpainter is exactly the same as my declaration in ABAP.
TOP INCLUDE
YPES: BEGIN OF Y_ZQID_CHECK,
IDNUM TYPE ZQID_CHECK-IDNUM,
WERKS TYPE ZQID_CHECK-WERKS,
MATNR TYPE ZQID_CHECK-MATNR,
LICHA TYPE ZQID_CHECK-LICHA,
LIFNR TYPE ZQID_CHECK-LIFNR,
ECOA_S TYPE ZQID_CHECK-ECOA_S,
ID_STAT TYPE ZQID_CHECK-ID_STAT,
ID_DATE TYPE ZQID_CHECK-ID_DATE,
FLAG_MAILCOA(1) TYPE C,
MARK(1) TYPE C, "Name of w/ SelColumn in ScreenPainter: T_ZQIDCHECK_DISCH-MARK
END OF Y_ZQID_CHECK.
DATA: T_ZQIDCHECK_DISCH TYPE STANDARD TABLE OF Y_ZQID_CHECK WITH HEADER LINE.
PAI
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_9004.
LOOP AT T_ZQIDCHECK_DISCH.
MODULE READ_TC_DISCH .
ENDLOOP.
module READ_TC_DISCH input.
DATA: W_LINE_SEL TYPE SY-STEPL,
W_TABIX LIKE SY-TABIX.
GET CURSOR LINE W_LINE_SEL.
W_TABIX = TC_ID_ONLY-TOP_LINE + w_LINE_SEL - 1.
MODIFY T_ZQIDCHECK_DISCH INDEX TC_ID_ONLY-current_line.
If I am selecting single row, I can properly get the selected index via debug.
BUG:
When I'm selecting multiple rows in table control, only the last row is always being read inside the loop of my table control.
Please see the screenshot.
[url]http://img268.imageshack.us/img268/5739/tcselectedrows.jpg[url]
Notice in the debug screenshot, even if it's just in the 1st loop of table control, it automatically gets the 4th table control index, instead of the 2nd one.
Helpful inputs will be appreciated.
Thanks.
Jaime
Edited by: Jaime Cabanban on Dec 9, 2009 3:16 PMHi,
Are you sure that you have selected multiple line for tablecontrol in the property window of the tablecontrol.
Flowlogic.
LOOP WITH CONTROL TC_01.
Module Get_Marked.
ENDLOOP.
Module Pool
Module Get_Marked.
read the data from the internal table where mark = 'X'.
this should give you only selected records.
Endmodule.
Kindly check the tablecontrol property.
Regards,
Ranjith Nambiar -
How to delete a row of table in Word using powershell.
I want to search for a word which is present in Table. If that word is present than I want to delete that row from table.
Can anybody help me with that. The script I am using is:
$objWord = New-Object -ComObject word.application
$objWord.Visible = $True
$objDoc = $objWord.Documents.Open("C:\temp\Recipe.docx")
$FindText = "DP1"
$objSelection.Find.Execute($FindText)
$objWord.Table.Cells.EntireRow.Delete()
$objDoc.SaveAs("C:\Temp\P.docx")
$Doc.Close()Maybe try this:
$objWord = New-Object -ComObject word.application
$objWord.Visible = $True
$objWord.Documents.Open("C:\temp\Recipe.docx")
$FindText = "DP1"
$objWord.Selection.Find.Execute($FindText) | Out-Null
$objWord.Selection.SelectRow()
$objWord.Selection.Cells.Delete()
$objWord.Documents.SaveAs("C:\Temp\P.docx")
$objWord.Close()
$objWord.Quit()
[System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$objWord) | Out-Null
This definitely assumes the text you're trying to find only exists in a table, per your specified requirements. If it exists anywhere else, or in multiple tables, the code above is inadequate.
I hope this post has helped! -
Unable to delete a row in table control
Hi,
I'm unable to delete a row in table control.
I have defined a selection column for my table control but it is not getting value 'X' when i'm selecting a row for deletion.
Also, when I press enter, some of the columns in table control are getting initialized. I'm passing these values to the internal table along with other columns.
Please help.
Regards,
Manasee
Message was edited by: Manasee Chandorkarhi,
kindly chk this.
PROCESS BEFORE OUTPUT.
MODULE status_9010.
LOOP WITH CONTROL tab_control.
MODULE move_data_to_table.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL tab_control.
MODULE move_data_from_table.
ENDLOOP.
*& Module move_data_to_table OUTPUT
This is to move the data from the internal table to the table control
MODULE move_data_to_table OUTPUT.
This is to move the data from the internal table to the table control
zmpets_mode-modecode,zmpets_range-rangeid,zmpets_servfacto-factor are column name of table control
READ TABLE int_factor INDEX tab_control-current_line.
IF sy-subrc = 0.
zmpets_mode-modecode = int_factor-modecode.
zmpets_range-rangeid = int_factor-rangeid.
zmpets_servfacto-factor = int_factor-factor.
ENDIF.
ENDMODULE. " move_data_to_table OUTPUT
*& Module move_data_from_table INPUT
Date is moved from the table control to the Internal Table
MODULE move_data_from_table INPUT.
To move the data from the table control to internal table 'INT_FACTOR'.
int_factor-modecode = zmpets_mode-modecode.
int_factor-rangeid = zmpets_range-rangeid.
int_factor-factor = zmpets_servfacto-factor.
int_factor-chk = line.
*here if the data is there, it will modify
MODIFY int_factor INDEX tab_control-current_line.
IF sy-subrc NE 0. "data not exixting in table control . ie new data, then append it
APPEND int_factor.
CLEAR int_factor.
ENDIF.
ENDMODULE. " move_data_from_table INPUT
*delete a line from table control
MODULE user_command_9010 INPUT.
CASE sy-ucomm.
When an entry is deleted, and the entry is removed from the table
control.
WHEN 'DELETE'.
PERFORM f_del_frm_tab_cntrl.
ENDCASE.
ENDMODULE.
FORM f_del_frm_tab_cntrl .
LOOP AT int_factor WHERE chk = 'X'.
DELETE int_factor WHERE chk = 'X' .
CONTINUE.
ENDLOOP.
CLEAR int_factor.
ENDFORM.
for any clarifiaction pls mail me.
pls reward points, if this helped u.
regards,
anversha.
[email protected]
Message was edited by: Anversha s -
How to select perticular row in table control for BDC
Hi all
I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
Please Suggest me. it urgent.
Thanks& Regards,
RPHi all
I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
Please Suggest me. it urgent.
Thanks& Regards,
RP -
. How to put Check box in every row in Table
Hi Friends,
I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
Here Select Check Box of particular row then click GetData button. That row data will be displayed in one popup window.
In table suppose 6 rows available in table. Every Row first Check box available.
empid, name, sal ,firstname, last Name
empid, name, sal ,firstname, last Name
empid, name, sal ,firstname, last Name
How to put Check box in every row in Table? can you send any examples applications
Regards
VijayHi Friend,
When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
attribute.
So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
Okay...here i am getting one problem. i have got Check boxes .But i am select check box in first row. that time all check boxes will be selected.
i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
i need this can u help me....
Regards
Vijay -
How to get color in the final row of table view( table control)
Hi,
iam having a table control displayed with 10 records as output,in that i need to provide a color for the final row since it is total inorder to show difference from other records.
Kindly advise me on this.
Thanks & Regards,
Nehru.Hi Nehru,
Checkout [THIS|Re: set color for a particular row in table view] thread .
[This |http://www.sapdesignguild.org/resources/htmlb_guidance/table.html#at] Might also help you.
Regards,
Anubhav
Edited by: Anubhav Jain on Jan 4, 2009 7:34 AM -
How to get all rows in table to red using alternate rows properties option
How to get all rows in table to red using alternate rows properties option
Hi Khrisna,
You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
I tried doing it and the colors freaked me out (all red) :-D
Kindly tell me if im missing something.
Regards,
John Vincent
Maybe you are looking for
-
Can't see my 3TB lacie external drive (for Time Machine)
since upgrading to Yosemite my Time Machine backup won't operate, says the drive is Read Only. Don't see where I can change this, I have verified and run repair and looks good but still no Time Machine backups will function, last successful one was w
-
Hp Officejet Pro 8600 on Windows 8.1 driver not installed
Using Windows 8.1 and HP Officejet pro 8600. The printer is installed on a wireless network. But on Device Manager, it says "driver not installed". Most printing tasks are successful, but for some I need to have the driver installed on the comput
-
Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC
-
ABAP and JAVA Stack in the same box
Hi all, I have installed Java Sneak preview first and after I installed ABAP Sneak in the same box. Everything is working fine but I noticed a little detail. My jcontrol.exe service disapeared from SAP Management Console. I mean before installed ABAP
-
Need for implementing Objects By Filter (OBF) method in ACE
Hi All, i wanted to understand the significance of the OBF method in ACE. Can i implement my logic only using Actor from User (AFU) and Actor from objects (AFO). Does it impact the performace if OBF is not implemented. Please provide you inputs on th