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

Selection-Screen in Dynpro

0 Likes
6,256

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.

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
3,588

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

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.

4 REPLIES 4
Read only

Former Member
0 Likes
3,588

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

Read only

0 Likes
3,588

Thanks Klaus..

can you explain me how i can use this sentence?

Thanks anyway!

Read only

Clemenss
Active Contributor
0 Likes
3,589

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

Read only

0 Likes
3,588

Hi Clemens,

Thanks for your help. My problem was I created a container in my dynpro instead of a subscreen.

Thanks anyway!