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: 

Select-Options on a Tabstrip Subscreen on a REAL Dynpro

Former Member
0 Kudos

Hello,

i ve the following problem:

I have a Report with a normal selection-screen and a call screen 100 after that.

That Dynpro 100 itself is a Tabstrip-Control. And on one of the Tabs i need to place some Select-options fields ( and a pushbutton + an alv, which shows the result of the selection, but thats not a problem).

The Problem i think is, that a Tab itself is a subscreen. not a "real" dynpro. i tried to place a subscreen control on that tab ( subscreen in a subscreen dynpro ) and define a selection screen as subscreen. but it s not being displayed.

selection-screen begin of screen 0888 as subscreen.
selection-screen begin of block s01 with frame title text-s01.
select-options: s_mrbe for eedmsettlunit-settlunit.
selection-screen end  of block s01.
selection-screen end   of screen 0888.

in dynpro logic:

PROCESS BEFORE OUTPUT.
  MODULE status_0222.

  CALL SUBSCREEN:
    subscreen5 INCLUDING sy-repid '0888'.
*
PROCESS AFTER INPUT.
  MODULE user_command_0222.

    call SUBSCREEN subscreen5.

maybe you can help

1 ACCEPTED SOLUTION

Former Member
0 Kudos

1) post this thread in UI programming forum for better responses.

where are you defining the selection screen code?Do it in the main programme.

4 REPLIES 4

Former Member
0 Kudos

1) post this thread in UI programming forum for better responses.

where are you defining the selection screen code?Do it in the main programme.

0 Kudos

yes i do it in the main code , where all my selection screens are defined.

0 Kudos

Hi,

Are you getting some error? OR the select options are just not visible.

I hope you havent defined any screen fro subscreen.

It automatically creates a screen for sel screen, so if you have defined delete it.

Former Member
0 Kudos

Hello,

Your problem is to show a subscreen selection-screen on another subscreen, right?

It works for me:

1. Copy DEMO_DYNPRO_TABSTRIP_LOCAL report.

2. Add your own subscreen selection-screen:


SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.

.. SELECT-OPTIONS: p_sel FOR ok_code.

SELECTION-SCREEN END OF SCREEN 9001.

3. Call your subscreen 9001 on screen 100


PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '9001', "<---
                  SUB2 INCLUDING SY-REPID '0120',
                  SUB3 INCLUDING SY-REPID '0130'.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  CALL SUBSCREEN: SUB1,
                  SUB2,
                  SUB3.
  MODULE USER_COMMAND.