Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

select-option on dynpro


How can I put a select-option like "object" into a dynpro which is not a selection screen.

Is there any possibility to do this?




Sure you can. You can define the selection screen as subscreen and include the subscreen in your dynpro. Here is a sample program.

report zrich_0006 .

tables: mara.

* Custom Selection Screen 1010
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
            p_rad2 radiobutton group grp1,
            p_rad3 radiobutton group grp1.
select-options: s_matnr for  mara-matnr,
                s_matkl for  mara-matkl,
                s_mtart for  mara-mtart.
selection-screen end of block b1.
selection-screen end of screen 1010.


  call screen 100.
*&      Module  STATUS_0100  OUTPUT
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

*&      Module  USER_COMMAND_0100  INPUT
module user_command_0100 input.


* Screen screen 100 with a subscreen area called "subscreen_1010"
* Screen Flow Logic follows

*process before output.
*  module status_0100.
*  call subscreen subscreen_1010 including sy-repid '1010'.
*process after input.
*  call subscreen subscreen_1010 .
*  module user_command_0100.


Rich Heilman

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question