06-27-2007 5:49 PM
Hello
I would like to do the following: in a function group I have a main screen which includes a sub screen
1300
as selection screen defined with the following command:
SELECTION-SCREEN BEGIN OF SCREEN 1300 AS SUBSCREEN.
SELECTION-SCREEN END OF SCREEN 1300.
Now, I would like to process within the PBO of this sub screen 1300 to manipulate some fields (such as deactivate or set a default value using
LOOP AT SCREEN ENDLOOP.
). I need an event likeINITIALIZATION
in a report, but here Im not in a report context.Is it possible to take the PBO event to process the PBO by own functions?
Thanks for your help.
Best regards,
Kurt.
Message was edited by:
Kurt Weiskopf
06-29-2007 12:15 PM
Hi,
Use loop at screen event only.Here there is no concept of intialization.
What exactly you want to do with the fields.
Regards,
sasi
06-29-2007 12:25 PM
Hello Sasi,
Thanks for your information.
On the selection screen some fields shall be displayed only if they are needed. These fields shall be deactivated using:
Loop at screen.
case XXX.
when T1.
screen-invisible = 1.
screen-active = 0.
endcase.
modify screen.
endloop.
I need the PBO event. Where can I set this code?
Thanks & Regards,
Kurt.
06-29-2007 7:00 PM
Hello Sasi,
I could find a solution: I added the event <b>AT SELECTION-SCREEN OUTPUT</b> in the TOP-include and set the screen fields properties. This is also possible in function groups containing selection screens as sub screen.
Regards,
Kurt.
06-30-2007 12:08 PM
Thank you so much for your inputs.It helpmed in getting the information.
Regards,
sasi