Skip to Content
avatar image
-3
Former Member

get a syntax error when call subscreen

I want to call a subscreen on a main screen, but get a syntax error 'Include block not specified, not defined or spelt incorrectly.'

coding as follow:

PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN subscr INCLUDING sy-repid sid1 .

PROCESS AFTER INPUT.
CALL SUBSCREEN subscr.
MODULE user_command_0100.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 14, 2017 at 01:41 AM

    Thanks all of you, my issue had been resolved. The reason may be that the 'subscr' in logical flow is not associated with the element 'subscr' in element list. In fact , thier names are the same. So, I don't know why this happens. But there is a action can resolve this issue, that copy the character 'subscr' from logical flow and overlay paste it to element list .

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2017 at 02:17 PM

    The syntax is correct (same code that in online documentation)

      CALL SUBSCREEN sub INCLUDING sy-repid dynnr.

    So is there a subscreen area SUBSCR in your dynpro, is there a field sid1, etc.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2017 at 10:28 AM

    CALL SUBSCREEN <subscreen name> INCLUDING sy-cprog <subscreen number> is the syntax.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2017 at 05:14 AM
    -1

    Hi,

    Syntax : CALLSUBSCREEN sub INCLUDINGsy-repid dynnr.

    dynnr refers to the screen number. So, replace 'sid1' by subscreen number enclosed in single quotes (eg. '0200') which you want to call and then try activating.

    Use the below statement and try.

    CALL SUBSCREEN subscr INCLUDING sy-repid <give subscreen number> .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I had tried to replace 'sid1' by subscreen number ,like this syntax

      CALL SUBSCREEN subscr INCLUDING sy-repid '0200'.

      but it still get same error.