‎2008 Sep 01 8:03 AM
Hai Friends
I have requirement as follows . In my table control i got three columns say for example
SNo Sname Marks . first two columns will be filled automatically in the table control . Now I have to enter the values in the third column that is MARKS
After entering the first value in that field and press enter that particular row alone should be disabled
‎2008 Sep 01 9:59 AM
Hi,
try like this.
in screen flow logic between loop and end loop(PBO) define a module and write the below code....
if itab-marks ne ' '.
loop at screen.
screen-input = 0 .
modify screen.
endloop.
endif.Regards,
Sathish Reddy.
‎2008 Sep 01 11:53 AM
Hi Anand,
You can try out the following approach.
When you display the Table Control you can make the fields SNo and SName disabled. This you can achieve in the PBO Module. In a PBO module you can loop the Table control Screen Table and can disable the fields.
You can have a look at the following demo code as to how you will disable the Table Control columns.
DEMO_DYNPRO_TABCONT_LOOP_AT
So, as for the next part you have the marks column enabled. Here you can write a module statement ( PAI Module statement on the FIELD. The Syntax will be FIELD <fieldname> ON REQUEST. Here you can take the Function Code as ENTER and then can do disable the Table Control Current Line.
Have a look at this code. It will give you some Idea of how to use the current line statement.
DEMO_DYNPRO_TABCONT_LOOP.
Thanks,
Samantak.
‎2008 Nov 06 9:02 AM
hi
loop at itab_item.
IF itab_item-ITEM_CATEG = 'ZFRS' .
IF zsd_tab-current_line = sy-tabix.
loop at screen.
screen-input = 0.
modify screen .
endloop.
endif.
ENDIF.
endloop.
‎2009 Jul 13 6:25 AM