‎2010 Sep 20 11:21 AM
Hi,
I have created a table control in which there are 4 columns out of which one column(REASON) is Dropdown(listbox) which is an INPUT field.
Now my requirement is that this column should be input or output based on some logic i.e for some cases REASON column will be editable and for some cased it will be non-editable. Can any one help me how to do this.....
Regards.
Hemant.
‎2010 Sep 20 12:31 PM
make use of loop and endloop in the PBO..with control
LOOP AT lt_komwbhk_wbgt_list
INTO ls_komwbhk_wbgt_list
WITH CONTROL tctrl .
****moving data to display the data on the screen
MODULE move_data_on_target.
ENDLOOP.
and inside the module..make use of loop at screen and using the screen-name u can disable the input
screen-input = 0.
MODULE move_data_on_target OUTPUT.
**making the target subscreen in read mode
LOOP AT SCREEN.
screen-input = 0.
IF screen-name = 'TAR_SEL'.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
komwbhk_wbgt_list_display = ls_komwbhk_wbgt_list.
ENDMODULE. " MOVE_DATA_ON_TARGET OUTPUT
i hope it helps..
‎2010 Sep 20 12:25 PM
‎2010 Sep 20 12:29 PM
hi ,
Use loop at screen
endloop.
in PBO module
such as
LOOP AT SCREEN.
IF ( screen-name = 'IT_QTY-QTY1' AND it_qty-qty1 = 0 ) OR ( screen-name = 'IT_QTY-QTY2' AND it_qty-qty2 = 0 )
OR ( screen-name = 'IT_QTY-QTY3' AND it_qty-qty3 = 0 ) OR ( screen-name = 'IT_QTY-QTY4' AND it_qty-qty4 = 0 )
OR ( screen-name = 'IT_QTY-QTY5' AND it_qty-qty5 = 0 ) OR ( screen-name = 'IT_QTY-QTY6' AND it_qty-qty6 = 0 )
OR ( screen-name = 'IT_QTY-QTY7' AND it_qty-qty7 = 0 ) OR ( screen-name = 'IT_QTY-QTY8' AND it_qty-qty8 = 0 ).
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Deepak.
‎2010 Sep 20 12:31 PM
make use of loop and endloop in the PBO..with control
LOOP AT lt_komwbhk_wbgt_list
INTO ls_komwbhk_wbgt_list
WITH CONTROL tctrl .
****moving data to display the data on the screen
MODULE move_data_on_target.
ENDLOOP.
and inside the module..make use of loop at screen and using the screen-name u can disable the input
screen-input = 0.
MODULE move_data_on_target OUTPUT.
**making the target subscreen in read mode
LOOP AT SCREEN.
screen-input = 0.
IF screen-name = 'TAR_SEL'.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
komwbhk_wbgt_list_display = ls_komwbhk_wbgt_list.
ENDMODULE. " MOVE_DATA_ON_TARGET OUTPUT
i hope it helps..
‎2011 Mar 08 7:52 AM