Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Single Row Table control - disabled

Former Member
0 Likes
642

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

4 REPLIES 4
Read only

Former Member
0 Likes
578

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.

Read only

Former Member
0 Likes
578

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.

Read only

Former Member
0 Likes
578

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.

Read only

Former Member
0 Likes
578

solved