‎2017 Nov 02 9:53 AM
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.
‎2017 Nov 14 1: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 .
‎2017 Nov 02 10:28 AM
CALL SUBSCREEN <subscreen name> INCLUDING sy-cprog <subscreen number> is the syntax.
‎2017 Nov 02 2: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.
‎2017 Nov 03 8:39 AM
yes, both subscreen area and field sid1 exist , see the image follow:


‎2017 Nov 03 9:37 AM
‎2017 Nov 06 2:04 AM
yeah, I'm sure all of subobject of this program had been activated.
‎2017 Nov 06 7:31 AM
‎2017 Nov 06 7:41 AM
‎2017 Nov 10 2:35 AM
yes, I just activated it with context menu on main object(program).

‎2017 Nov 10 2:41 AM
Because there is a error when i try to activate the screen "0100", I can forcibly activate it, but the error still exist.
‎2017 Nov 10 7:49 AM
So, that's the issue, 0100 not activated!
But I don't see why 0100 couldn't be activated, it clearly states that the "SUBSCR" subscreen area is not found in the layout.
Could there be an issue with your SAP GUI, did you install latest version?
Another solution: delete and recreate it from scratch, just to see if the error persists.
‎2017 Nov 10 1:15 PM
‎2017 Nov 10 3:18 PM
On the attributes tab on your subscreens - did you define them as a subscreen? Just a thought.
‎2017 Nov 03 8:41 AM
‎2017 Nov 03 12:07 PM
‎2017 Nov 06 2:06 AM
‎2017 Nov 06 5:14 AM
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> .
‎2017 Nov 06 6:52 AM
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.
‎2017 Nov 06 6:49 AM
‎2017 Nov 10 1:29 AM
Yes, I had redefined the field 'sid1' with type 'sy-dynnr', but it get a same error.

‎2017 Nov 14 1: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 .