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

Screen Modification i Table Control

Former Member
0 Likes
568

Hi all,

we have a requirement on modifying the screen field attributes for a table control.

scenario : f1 f2 f3 f4

-


-


-


now when the user enters the input for field f1 a pop-up appears wherein you will have to make a selection. the selected one will copy to field f2.

now for a particular input of f1 the field f2 for that particular row has to be greyed out.

we are trying this by looping at <b>screen</b> table , but this is greying out the entire column instead of that particular cell.

Thanks in Advance.

Kishore Kumar Yerra.

4 REPLIES 4
Read only

dani_mn
Active Contributor
0 Likes
533

HI,

look at the code below write this code in the PBO flow logic, in the module of loop endloop of table control.

check for the fields are initial or not.

if fields contains value then make them disable other wise make them enable.

<b>

  LOOP AT SCREEN.

    IF screen-name = 'F1'.

      IF grid_itab-F1 IS INITIAL.
        screen-input = 1.
      ELSE.
        screen-input = 0.

      ENDIF.
      MODIFY SCREEN.

    ENDIF.

  ENDLOOP.

</b>

Regards,

Read only

Former Member
0 Likes
533

Hi

You have to insert the LOOP SCREEN into TC loop of PBO with a validation:

PROCESS PBO

LOOP AT ITAB ....

MODULE LOOP_SCREEN.

ENDLOOP.

MODULE LOOP_SCREEN.

IF ITAB-FIELD1 = .....

LOOP AT SCREEN.

IF SCREEN-NAME = .....

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

Max

Read only

Former Member
0 Likes
533

hi,

Screen modifications applies to the entire column. It can not be done for a single cell.

Regards,

Sailaja.

Read only

0 Likes
533

HI sailaja,

I have done this in one of my table control in module pool program.

as i have explained above. it is possible.

Regards,