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: 

problem with I/O field in module pool

Former Member
0 Kudos

hi experts,

I am displaying some text in I/O field in module pool screen. I am giving the attributes of I/O field as "output only" type and no input. Initially the input was not enabled for it, only it should be in display mode. Once i click on 'CHANGE' pushbutton then only the input should be enabled and it should be in change mode.will u tell me how to do it programatically.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

In PAI of that screen..

when the sy-ucom is 'Change' then use the Loop at screen--Endloop to modify the attributes value.

example..

LOOP AT screen

CASE screen-name.

WHEN 'Fieldname.

screen-input = 0.

screen-active = 0.

MODIFY screen.

ENDCASE.

Edited by: avinash kodarapu on Dec 10, 2008 12:16 PM

3 REPLIES 3

Former Member
0 Kudos

HI,

In PAI of that screen..

when the sy-ucom is 'Change' then use the Loop at screen--Endloop to modify the attributes value.

example..

LOOP AT screen

CASE screen-name.

WHEN 'Fieldname.

screen-input = 0.

screen-active = 0.

MODIFY screen.

ENDCASE.

Edited by: avinash kodarapu on Dec 10, 2008 12:16 PM

h_senden2
Active Contributor
0 Kudos

in the PAI of the screen, add something like


LOOP AT SCREEN.
  if screen-name = 'field1'.
     if some condition.
         screen-input = 0.
     else.
         screen-input = 1.
     endif.
  endif.
  modify screen.
 

regards

Hans

ENDLOOP.

former_member1245113
Active Contributor
0 Kudos

HI Himabindu,

In PBO

loop at screen.

if screen-name = 'IOFIELD'.

SCREEN-INPUT = 1.

MODIFY SCREEN

ENDIF.

endloop

best regards

Ramchander Rao.K