‎2006 Mar 16 8:03 AM
hi..
i am working on a module pool..after input the data and press save button..i want all fields in display mode only..
how should i do this...
please reply..
‎2006 Mar 16 8:05 AM
use
loop at screen.
if screen-name = ''.
screen-input = '0'.
modify screen.
endif.
endloop.
‎2006 Mar 16 8:09 AM
Write this code in PBO of the screen
loop at screen.
if screen-name = <fieldname> or
screen-group1 = <group name>.
screen-input = '0'.
modify screen.
endif.
endloop.
‎2006 Mar 16 8:11 AM
in ur code
proir to this use the screen groups which u 'll find in the field attributes of the fields in the table control.
this will be like screen group1, group 2 group 3 group4 .
now in ur screen
as u say assign all the fields u want to see them in display mode to a screen group.
say screen group1 = 001
in ur PAI code
when 'SAVE'.
loop at screen.
if screen-group1 = 001.
screen active = '0'.
modify screen.
endif.
endloop.
effect is this makes all the screen fields of group 001 into display mode .
hope this helps u ,
regards,
vijay.
typical code will be like this.
u can completely or partially(restrict the fields) using this method.
LOOP AT SCREEN.
IF SCREEN-GROUP4 = 'SC4'.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Message was edited by: Vikky
‎2006 May 05 6:29 AM
Hello i want to do this..
user will input the user id in the 1st screen..
then system will display related info abt the student on 2nd screen..how to do that?
data:
stud_id
name
addres
etc
‎2006 May 05 6:31 AM
hi write the below code
<b>LOOP AT SCREEN.
IF SCREEN-NAME = <UR SCREEN FIELD NAME>.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.</b>
Cheers,
Abdul Hakim
‎2006 May 05 6:36 AM
save all the paramets in one group by specifying modif-id
at the end of each parameter declaration
ex: paramter s type i modif-id afg.
loop at screen.
if screen-group1 = 'afg'.
screen-input = 0.
modify screen.
endif.
endloop.