‎2010 Feb 08 9:41 AM
Hi friends,
i am working on Module pool.
I am at screen 200. when I click SAVE, data is being stored in data base tables.
then come back to screen 200.
But, I need my screen fields should be not editable now. means output only...
I tried with loop at screen.
SCREEN-Input = 0.
modify screen.
endloop.
But I could not achive the functionality. still the screen fields are editable.
Please help me.
‎2010 Feb 08 9:45 AM
Hello,
Did you write this code under the PBO event for Screen#200?
After the DB tables are updated successfully update some flag & based on this flag write this code in the PBO of screen#200.
@Radhika: SCREEN-ACTIVE = '0' makes the screen element invisible & not grayed out.
Cheers,
Suhas
‎2010 Feb 08 9:43 AM
‎2010 Feb 08 9:45 AM
Hello,
Did you write this code under the PBO event for Screen#200?
After the DB tables are updated successfully update some flag & based on this flag write this code in the PBO of screen#200.
@Radhika: SCREEN-ACTIVE = '0' makes the screen element invisible & not grayed out.
Cheers,
Suhas
‎2010 Feb 08 9:47 AM
hi,
use this in the PBO of the screen and capture the user command as well.
loop at screen.
if screen-name = 'name of the screen field'.
screen-input = 0 .
modify screen.
endif.
endloop.
regards,
sakshi
‎2010 Feb 08 9:48 AM
hi,
in the PBO also u capture the user command for save and within that you write this code for the required functionality or in PAI capture the user even and set a flag and in the PBO check this flag as write the code for non editable within it.
in PAI
case sy-ucomm or ok_code.
when 'SAVE'.
v_flag = 'X'.
end case.
in PBO
if v_flag = 'X'.
your code.
endif.
clear v_flag.
thanks
shivraj
Edited by: ShivrajSinha on Feb 8, 2010 10:49 AM