Application Development and Automation 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: 
Read only

Problem in Calling Subcreen

Former Member
0 Likes
616

Hi,

my main screen number is 1001 and in that screen i have a tabstrip with subscreens 1002,1003,1004,1005,1006.Each tab has an ALV...

When i click on excute button in my main screen 1001 then i need to call all the subscreens and all the ALV's should be displayed.

My coding...

Module user-command 1001.

Case Sy-ucomm.

When 'EXCE'.

CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1002'.

CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1003'.

CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1004'.

CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1005'.

CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1006'.

endcase.

endmodule.

but error is displayed as "," or "ID ... FIELD ..." expected after "SUBSCREEN".

Guys Please let me know if someone knows the solution.

Regards,

Chaithanya.

4 REPLIES 4
Read only

Former Member
0 Likes
552

HI,

Check the demo program DEMO_DYNPRO_TABSTRIP_SERVER.

Read only

Former Member
0 Likes
552

Hi

You need to call the subscreens this way if it is module pool (screen program)

in PBO the syntax is like this

call subscreen sub including sy-repid dynny

in PAI

call subscreen sub

all the screens you have mentioned must of type SUBSCREEN radio button selected

in top incude declare a variable

DATA : DYNNR TYPE SY-DYNNR value '1002'( this will be called initially)

in a module you can not call subscreen as you did it above

in PAI

module usercommand_1001.

case ok_code

when 'TAB1'

DYNNR = 1001

WHEN 'TAB2'

DYNNR = 1002

etc

endcase.

Best Regards

Ramchander Rao.K

Edited by: Ramchander Krishnamraju on Dec 29, 2008 5:23 AM

Read only

Former Member
0 Likes
552

refer this demo program -


>DEMO_DYNPRO_SUBSCREENS

Read only

Former Member
0 Likes
552

Hi,

in PAI we need to declare

Call subscreen <Sub_Screen>.

In PBO

Call subscreen <Sub_screen> including '<PROGRAM IN CAPITALS>' 'MainScreenNumber'.

I think this shld solve your problem.

Regards,

Krishna.