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

Disable rows in table control

Former Member
0 Likes
417

Hi,

I'm trying to disable a row... not a column in a table control so the user can't change it, however I'd like the previuos and next rows in the table control to be enabled for modifications. I know it sounds simple, but i havén't been able to do it, anyone knows how to?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
379

Hi,

Disable all the columns for that row..

Example

-


PROCESS BEFORE OUTPUT.

LOOP AT ITAB WITH CONTROL TC.

MODULE DISABLE_ROW.

ENDLOOP.

MODULE DISABLE_ROW.

  • Check for the conditions where you have to disable the row.

  • if the conditions are satisifed.

IF CONDITION IS SATISFIED.

LOOP AT SCREEN.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

  • The above will disable all the columns in that row..

ENDMODULE.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
379

that was dumb! i tried everything except doing the loop at screen inside the module that copies the data from the internal table to the table control...

Read only

Former Member
0 Likes
380

Hi,

Disable all the columns for that row..

Example

-


PROCESS BEFORE OUTPUT.

LOOP AT ITAB WITH CONTROL TC.

MODULE DISABLE_ROW.

ENDLOOP.

MODULE DISABLE_ROW.

  • Check for the conditions where you have to disable the row.

  • if the conditions are satisifed.

IF CONDITION IS SATISFIED.

LOOP AT SCREEN.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

  • The above will disable all the columns in that row..

ENDMODULE.

Thanks,

Naren