05-23-2005 3:09 PM
Hello all,
I am using dialog program to display the records on the screen. On screen layout i declared all fields as output fields only. Now I want to add a button (change/display) on to screen so that when ever i press the button the screen has to change from display to change mode(just like the normal display/change button in se38) and vice versa so that i can edit the fields and save it again.
I would like to know if there exists any function module to do so or can some one please help me with a code.
Thanks to all in advance.
05-23-2005 3:28 PM
Hi,
at pbo, you need to
loop at screen.
and set the input flag
screen-input = 'X'. "or may be 1.
endloop.
That's all!
regards
Siggi
05-23-2005 3:30 PM
http://saphelp47x200/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm
More here .
Njoy Coding.
Manohar
Message was edited by: Mano Sri
05-23-2005 3:46 PM
Hi Madhu,
Define your fields as input/output fields. In the PBO, you can either turn them on or off by applying the logic below.
LOOP AT SCREEN.
IF SCREEN-NAME = 'ABC' OR
SCREEN-GROUP1 = 'TEST'.
SCREEN-INPUT = 1. " Make it editable field
MODIFY SCREEN.
ENDIF.
ENDLOOP.
If you do SCREEN-ACTIVE = 1 or 0, you are actually showing or hiding the field itself, but if you do SCREEN-INPUT = 1 or 0, you are just making the field editable or display only.
Srinivas
05-23-2005 4:17 PM
Hi ,
As said you can use loop at screen in PBO to decide the way the fields need to be.
Or u can create two subscreens with similar fields .
One screen has all fields enabled and other has fields disabled . As the user presses the toggle button you can call subsreens accordingly
05-23-2005 10:18 PM