12-10-2008 6:40 AM
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.
12-10-2008 6:45 AM
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
12-10-2008 6:45 AM
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
12-10-2008 6:45 AM
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.
12-10-2008 6:49 AM
HI Himabindu,
In PBO
loop at screen.
if screen-name = 'IOFIELD'.
SCREEN-INPUT = 1.
MODIFY SCREEN
ENDIF.
endloop
best regards
Ramchander Rao.K