‎2010 Jan 25 2:21 AM
Hi,
I have an requirement in which i need to make some rows of a table control editable and some rows non editable.
How can i acheive this?
Regards,
Arun.
‎2010 Jan 25 4:43 AM
Hi,
PROCESS BEFORE OUTPUT.
LOOP AT itab WITH CONTROL tc.
MODULE modify_screen.
ENDLOOP.
MODULE STATUS_0100.
MODULE modify_screen OUTPUT.
row_count = row_count + 1.
LOOP AT SCREEN.
if row_count = 2. " For the 2nd row in the table control
screen-input = 0.
MODIFY SCREEN .
endif.
ENDLOOP.
Hope it helps you,
Regards,
Abhijit G. Borkar
‎2011 May 31 6:23 AM
hi abhijeet i applied your codes but the problem is that inside loop of PBO table control the module 'modify_screen' is not geting triggered. So how can i do that using sy-tabix?
‎2011 May 31 6:33 AM
thank you abhijeet now its working fine. Actually previously i was using with cursor top_line, so for that reason it was not geting triggered. Now i removed with cursor and its working fine.
‎2010 Jan 25 3:41 PM
Hi Arun,
How about adding a Check Box Field in each row of Table Control. So, once the user checks the check box, this will trigger a PAI event and based on that we can enable or disable input for that corresponding row of that Table Control. This will also give a greater control of modification of each individual row of the table control element in the ABAP Dynpro.
Have a look at these demo code of Table Control:
DEMO_DYNPRO_TABCONT_LOOP
DEMO_DYNPRO_TABCONT_LOOP_AT
DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2.
Hope this will help. It would be great if you can share your views regarding this idea.
Thanks,
Samantak.
‎2010 Jan 26 7:46 AM
Hi,
In the Flowlogic >PBOJust Loop at screen and modify accordingly.
If u require any column for editable than..
Loop at tablecontrol-columns into workarea.
Do the Manipulation.
Modify the tablecontrol-columns
Endloop.
Regards
Arbind