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: 

Module Pool Selection Screen

Former Member
0 Kudos

Hi Experts,

i have created a screen(100) and in that i created sub screen area

and i created a subscreen(101)

i write the code i mentioned below

TABLES : EKKO , EKPO .

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.

PARAMETERS : P_BUKRS TYPE EKKO-BUKRS OBLIGATORY DEFAULT '1000'.

SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN ,

S_EBELP FOR EKPO-EBELP .

SELECTION-SCREEN END OF SCREEN 101 .

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'BACK'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

for flow logic i write like this

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_0100.

CALL SUBSCREEN SUB_SCREEN INCLUDING SY-REPID '0101'.

*

PROCESS AFTER INPUT.

CALL SUBSCREEN SUB_SCREEN.

MODULE USER_COMMAND_0100.

it shows an error like

Error when generating the selection screen "0101" of report '<report Name>'

9 REPLIES 9

former_member1245113
Active Contributor
0 Kudos

Hi

Go to the Attributes of Screen 101 and Select SUBSCREEN Radio Button.

and Activate your program

Cheers

Ram

0 Kudos

Hi Ramchander Krishnamraju ,

Thanks for ur reply

i did the same but still the same error

0 Kudos

Hi

Take the Help of Program DEMO_SEL_SCREEN_AS_SUBSCREEN

Go throught ABAPDOCU For any example programs.

or from SE38 ---> Environment --> Examples --> proceed Further.

Cheers

Ram

Former Member
0 Kudos

hi,

remove the below lines in youe code

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.

PARAMETERS : P_BUKRS TYPE EKKO-BUKRS OBLIGATORY DEFAULT '1000'.

SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN ,

S_EBELP FOR EKPO-EBELP .

SELECTION-SCREEN END OF SCREEN 101 .

and create a screen with attributes as Subscreen.

Regards,

Srilatha

0 Kudos

Hi Srilatha

Thanks for ur reply

ya i created a screen 101 with attributes as sub screen

Former Member
0 Kudos

Solved by Myself

after search in SDN

Former Member
0 Kudos

I Understand that this question is resolved long back. I came across the same error. I found many threads in SDN here but could not find the answer. Anyway i resolved my issue myself.

This error comes when you have created the screen for your subscreen. Please do not create any screen for your subscreen. Just activate the program and it wil create it on its own.

Greetings

Rakesh

0 Kudos

Thank you for stating how you rectified the problem.

0 Kudos

Hi Rakesh Kumar,

Thanks for your answer.

Regards

Ramesh