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

Table control Screen modify

Former Member
0 Likes
570

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.

1 ACCEPTED SOLUTION
Read only

0 Likes
534

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..

4 REPLIES 4
Read only

Former Member
0 Likes
534

HI,

Please search in the forum you will find it and check out this link

Read only

deepak_dhamat
Active Contributor
0 Likes
534

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.

Read only

0 Likes
535

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..

Read only

Former Member
0 Likes
534

thanks all for ur inputs