Application Development 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: 

How to modify screen element in module pool

former_member699750
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

LOOP AT sCREEN.

screen-input = 0.

screen-invisible = 0.

MODIFY SCREEN.

ENDLOOP.

It will work,

Regards,

Swarup