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

Select-option in Module Pool-Error-Include block not specified .........

kiran_k8
Active Contributor
0 Likes
1,709

Hi,

I am trying to define a select-option at Module Pool level.

In the program

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.

SELECTION-SCREEN END OF SCREEN 1010.

In the Screen flow logic it is as follows

PROCESS BEFORE OUTPUT.

MODULE STATUS_0600.

CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.

PROCESS AFTER INPUT.

CALL SUBSCREEN sub_1010.

MODULE USER_COMMAND_0600.

At SE51 it is showing an error

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

Please let me know how to correct this.

Thanks,

K.Kiran.

1 ACCEPTED SOLUTION
Read only

ramesh_kumar89
Explorer
0 Likes
977

Hi Chage Sub screen name like this way:

*---no need to change

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.

SELECTION-SCREEN END OF SCREEN 1010.

In the Screen flow logic it is as follows

PROCESS BEFORE OUTPUT.

MODULE STATUS_0600.

*----change SUB SCREEN AREA NAME (SUB)

CALL SUBSCREEN SUB INCLUDING sy-repid '1010'.

PROCESS AFTER INPUT.

*----change SUB SCREEN AREA NAME (SUB)

CALL SUBSCREEN SUB .      " sub_1010.

MODULE USER_COMMAND_0600.

Dont Activate Immediately,

first Goto SE51 --->LAYOUT

DOUBLE CLICK ON YOUR SUB SCREEN AREA

CHANGE SUBSCREEN AREA NAME AS   'SUB'.

THEN ACTIVATE LAYOUT DIRECTLY. (THROUGH LAYOUT DESIGN).

Hope you work fine.

3 REPLIES 3
Read only

Emre_tr
Active Participant
0 Likes
977

Hi,

you must create a subscreen in screen painter with the same name as your screen 'sub_1010'.

Read only

0 Likes
977

HI Emre

I am having the same issue.  there is not possible to create a subscreen by se51 since I already define the subscreen by selection-screen begin of screen *** as subscreen.

regards TP

Read only

ramesh_kumar89
Explorer
0 Likes
978

Hi Chage Sub screen name like this way:

*---no need to change

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.

SELECTION-SCREEN END OF SCREEN 1010.

In the Screen flow logic it is as follows

PROCESS BEFORE OUTPUT.

MODULE STATUS_0600.

*----change SUB SCREEN AREA NAME (SUB)

CALL SUBSCREEN SUB INCLUDING sy-repid '1010'.

PROCESS AFTER INPUT.

*----change SUB SCREEN AREA NAME (SUB)

CALL SUBSCREEN SUB .      " sub_1010.

MODULE USER_COMMAND_0600.

Dont Activate Immediately,

first Goto SE51 --->LAYOUT

DOUBLE CLICK ON YOUR SUB SCREEN AREA

CHANGE SUBSCREEN AREA NAME AS   'SUB'.

THEN ACTIVATE LAYOUT DIRECTLY. (THROUGH LAYOUT DESIGN).

Hope you work fine.