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: 

call subscreen subarea including sy-repid '101', get error

Former Member
0 Kudos

i would like to call subscreen, codes as follow:

call subscreen subarea including sy-repid '101'.

but get syntax error 'include block not specified, not defined spelt incorrectly'. i have dropped subscreen area in main screen, please guide me the other step.

8 REPLIES 8

Former Member
0 Kudos

HI,

Declare the varibale for '100' and pass to the call subscreen statement

NUMBER1 = '0101'.

CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,

Edited by: Avinash Kodarapu on Mar 11, 2009 1:03 PM

Former Member
0 Kudos

I did it using this syntax:

CALL SUBSCREEN subscreen_insert INCLUDING sy-cprog '0013'.

where subscreen_insert is the name of container in layout for subscreen and 13 is the number of the subscreen itself.

regards

Gabriele

Mohamed_Mukhtar
Active Contributor
0 Kudos

hi,

Declara a variable in top include

Data dynnr type sy-dynnr value '101'.

in your flow logic.


PROCESS BEFORE OUTPUT.
call subscreen subarea including sy-repid dynnr "---> replace '101' with dynnr

PROCESS AFTER INPUT.
call subscreen subarea .

Hope it solves ur issue.

Thanks & Regards

Always Learner

Former Member
0 Kudos

Can you paste your code here.

0 Kudos

how to define subscreen area, in layout i drag subscreen area to screen, is it enough? would i define the area in code?

0 Kudos

You need to put a name for subscreen area in the layout and same should be used in flow logic (PBO & PAI).

Former Member
0 Kudos
PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN subscreen INCLUDING sy-repid '0101'.
PROCESS AFTER INPUT.
    CALL SUBSCREEN subscreen.

Former Member
0 Kudos

hi i am getting same error ,

I follow your suggestion Still the error coming

Coding

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

call SUBSCREEN ts INCLUDING sy-repid screeno.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

call SUBSCREEN ts.

In report

CONTROLS:ts type TABSTRIP.

data screeno.

Data dynnr type sy-dynnr value '101'.

screeno = dynnr.

call screen 100.

how to get subscreen area and how to solve this problem??

Thanks

Dharma