Application Development and Automation 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: 
Read only

Initializing Selection-Screen as dynpro subscreen

Former Member
0 Likes
983

Hello!

I wrote a dynpro program that includes a selection screen as subscreen. In the flow logic the subscreen is called before output like this.

process before output.

call subscreen sub including sy-repid '110'.

module status_0100.

The program works fine to this point. Now I want to initialize a select-options table in the selection screen with some values. Doing this in the status_0100 module doesn't work. I suppose at this point it is too late to change values of the selection screen. I can't change the flow logic of the selection-screen 110 because it is generated automatically.

My questions are:

1. Is there any kind of initialization block or something like this where i can place the code to fill the select-options table?

2. Filling a select-options table by appending lines to it is the common way to do this, isn't it?

Thank you for your answers,

Georg

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
598

There is nothing stopping your from doing this?

process before output.

module status_0100.    "<-- Put this here

call subscreen sub including sy-repid '110'.

And then fill your select-option in the STATUS_0100 module, make sure that you apend to the internal table!

Regards,

Rich HEilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
599

There is nothing stopping your from doing this?

process before output.

module status_0100.    "<-- Put this here

call subscreen sub including sy-repid '110'.

And then fill your select-option in the STATUS_0100 module, make sure that you apend to the internal table!

Regards,

Rich HEilman

Read only

0 Likes
598

Wow, it works.

Thank you,

Georg