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

About Table Control..

Former Member
0 Likes
448

Moderator message: please try to use a more informative subject in future

Hi every one..

I am doing Modul Pool Programming.

I want to enable table control's field's INPUT ONLY' field through programming..

means depending on some condition.

Edited by: Matt on Dec 15, 2008 12:50 PM

3 REPLIES 3
Read only

Former Member
0 Likes
431

Hi

In PBO,

Loop at screen.

if some_condition.

if screen-name = 'YOUR_NAME_FIELD'.

screen-input = 0 (1 means editable 0 means grey mode)

modify screen

ENDIF.

endif.

endloop.

Regards

Ramchander Rao.k

Read only

Former Member
0 Likes
431

HI,

Check this code...

PBO

loop at it_mdpmx with control tc2 cursor tc2-top_line.

module batch_status.

endloop.

DATA: cols LIKE LINE OF tc2-cols.

MODULE batch_status OUTPUT.

if ( IT_MDPMX-xchpf = SPACE ).

loop at screen.

if screen-group1 = 'GP9'.

screen-input = 0.

endif.

endloop.

modify screen.

ENDIF.

ENDMODULE.

Read only

Former Member
0 Likes
431

Hi

for this u hav to create a wa type table control columns.

data: wa_tabc type tabc-cols. (tabc is ur table control).

in PBO,

loop at itab with control tabc. ( itab is ur table used in table controls)

module tab_edit.

endloop.

in SE 38


Module Tab_Edit .
   loop at tabc-cols into wa_tabc.
      if wa_tabc-screen-name = 'Field name'.
       if itab-field = "condtion'.
          screen-input = 0.
      else.
          screen-input = 1.
      endif. 
      modify tabc-cols from wa_tabc.
   endloop.
 endif.
endmodule.