Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PBO Event at Sub screen as Selection-Screen

Former Member
0 Kudos

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 like

INITIALIZATION

in a report, but here I’m 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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

Thank you so much for your inputs.It helpmed in getting the information.

Regards,

sasi