Skip to Content

Selection-Screen in Dynpro

Hi experts,

I'm trying to createa selection-screen in a dynpro, but i'm not capable.

I've followed the next steps:

1. I created a dynpro (100) Type: Normal

2. I created a subarea (Sub_area) inside the dynpro 100

3. I created the selection-screen in the top of my modulepool.

TABLES: pernr.

SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
SELECT-OPTIONS r_pernr FOR pernr-pernr.
SELECTION-SCREEN end of screen 101.

4. I defined the PBO y the PAI of the screen 100.

PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN sub_area INCLUDING sy-cprog '0101'.

PROCESS AFTER INPUT.
  CALL SUBSCREEN sub_area.

But the program returns the next error:

Dynpro 0100

Line 3 --> CALL SUBSCREEN sub_area INCLUDING sy-cprog '0101'.

"Include block not specified, not defined, or spelt incorrectly ."

What is the error????

Thanks anyway.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 14, 2010 at 09:47 PM

    Hi Lydia,

    your code seems to work in my system. This may be a typo with sub_area. Go to screen painter, copy the name and paste it in your statement.

    Klaus Babl will try 😊

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2010 at 11:35 AM

    Hi,

    i only know to call selection screens via CALL SELECTION-SCREEN but not as a subscreen of a dynpro.

    I think, selection screens must be own dynpros but no subscreens.

    Regards,

    Klaus

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.