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

How to modify screen element in module pool

Former Member
0 Likes
2,163

Hii...

I have developed a screen with table control..my requirement is

I have one column (i.e) check box in edit mode..after it was checked and pressed 'enter' I want to go for display mode only..how can I solve this problem..

i tried like this but this is not working..

if checkbox = 'X'.

Loop at screen.

screen-active = 0.

screen-input = 0.

modify screen.

endloop.

regards

sugu

3 REPLIES 3
Read only

Former Member
0 Likes
1,116

Hello,

Suppose your tablecontrol name is TCTRL.

Declare a work area WA_COLS.

Now in the PBO (in the table control loop) you can write a new module suppose its MODULE SET_SCR.

MODULE SET_SCR.

LOOP AT TCTRL-cols INTO WA_COLS.

WA_COLS-SCREEN-INPUT = 0.

MODIFY TCTRL-cols FROM WA_COLS INDEX SY-TABIX.

ENDLOOP.

ENDMODULE.

Hope this clears .

Neeraj

Read only

Former Member
0 Likes
1,116

In the PBO - >

LOOP AT INT_TAB_CNTR INTO WA_TAB_CNTR

WITH CONTROL TAB_CNTR

CURSOR TAB_CNTR-CURRENT_LINE.

module display_screen. "it will deactivate table control fields

ENDLOOP.

module display_screen.

if wa_tab_cntr-checkbox = 'X'.

Loop at screen.

screen-active = 0.

screen-input = 0.

modify screen.

endloop.

endif.

endmodule.

Reward if useful.

Read only

Former Member
0 Likes
1,116

LOOP AT sCREEN.

screen-input = 0.

screen-invisible = 0.

MODIFY SCREEN.

ENDLOOP.

It will work,

Regards,

Swarup