Skip to Content
0
Former Member
May 10, 2010 at 05:06 PM

Problem in creating a Select-option im a module pool screen

40 Views

I've been searching how to do a select option in a module pool screen, I've found this neat tutorial http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html

but I'm having trouble to replicate it...

I've created this conde in my TOP include

SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
   SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
  SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 201.

and this is my screen flow code

PROCESS BEFORE OUTPUT.
  MODULE status_0100.

  MODULE pbo_200.
*
PROCESS AFTER INPUT.

  MODULE pai.

  MODULE user_command_0200.

in the screen 200 I have a subscreen area named subs

but when I do this:

MODULE pbo_200 OUTPUT.

  CALL subscreen subs including sy-repid '0201'.

ENDMODULE.                 " pbo_200  OUTPUT

it doesn't "compile"

it gives me this error:

""." or "ID ... FIELD ..." expected after "SUBSCREEN"."

what am I missing? it seems its not recognising the "CALL SUBSCREEN" command...