‎2014 Nov 25 11:05 AM
Hello,
I have a table control on screen.
Now when I have an entry in the table and I change the mode to editable only the row which has data get editable and not all the rows.
Is there a way I can have all the columns editable when I click edit, and not just the row which has data.
Thanks,
Nandan
‎2014 Nov 25 11:11 AM
Hi Nandan,
Please refer the program given.
SALV_DEMO_HIERSEQ_SELECTIONS
‎2014 Nov 25 11:14 AM
Hi Nandan,
When you click edit, I think you need create some blank rows into your itab, then make them editable.
regards,
Archer
‎2014 Nov 25 12:01 PM
1.Assign the common group name in properties of all columns.
2. Set the no of rows to <Table_control>-lines.
3. Write the below logic in PBO module of the screen.
Module tbc_editor output.
Loop at screen.
if screen-group1 = 'A'.
Screen-input = 1.
Modify screen.
Endloop.
‎2014 Nov 26 4:50 AM
Hello,
I tried the suggestion but it does not work with the columns of the table. Table control still remains in display mode.
‎2014 Nov 26 5:11 AM
Hi Nandan,
In your screen PBO, write the below code and check,
Loop at I_ITEM into WA_ITEM
with control TC_ITEM
cursor TC_ITEM-CURRENT_LINE
Module TBC_EDITOR.
Endloop.
‎2014 Nov 26 5:17 AM
Hi Nandan,
You need to add blank entries to the internal table that is used for table control display. Just add blank records for eg 10 blank records and you will have 10 rows as editable in table control.
Thanks,
Naveen
‎2014 Nov 26 5:40 AM
Hi Nandan,
Assuming that your table control name is 'TC_TABCNTRL', Just add following statement in one of the module in PBO( Before the PBO loop statement ).
TC_TABCNTRL-LINES = < N>.
This will make <N> lines in editable. If you want to have this functionality only when 'EDIT' is clicked then add this statement in PAI's user_command MODULE.
Note: <N> is any interger value other than zero.