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

required syntax for calling a subscreen.

Former Member
0 Likes
15,903

hi,

Can any one tell me the syntax for calling a subscreen.

my task is to display both bar chart and pie chart adjacently in a single screen.

Thanks.

samyu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
9,257

call like this

PROCESS BEFORE OUTPUT.

CALL SUBSCREEN: <subscreen name> INCLUDING sy-cprog <screen no>,

<subscreen name> INCLUDING sy-cprog <screen no>,

<subscreen name> INCLUDING sy-cprog <screen no>.

PROCESS AFTER INPUT.

CALL SUBSCREEN: <subscreen name>,<subscreen name>,<subscreen name>.

14 REPLIES 14
Read only

Former Member
0 Likes
9,257

start_coiumn = 25

start_row = 25.

call screen 1006 starting at start_column start_row

this will help u...................

Reward IF...........................................

Regards

Anbu

Read only

0 Likes
9,257

hi

Thanks for your reply. But for this task i created 2 screens 100 and 300, for bar and pie charts. and in screen 200(main screen) layout i kept 2 subscreens and 2 check boxes.

There i'm calling the subscreens. but there getting an error "SCREEN expected. not SUBSCREEN".

the code is as falows.

WHEN 'EXE'. "exe is execute

IF bar = 'X'.

CALL subscreen: scr1 including sy-repid '0100'.

ENDIF.

IF pie = 'X'.

CALL subscreen: scr2 including sy-repid '0300'.

ENDIF.

Thanks,

samyu.

Read only

0 Likes
9,257

hi all.

thank u verymuch. the task is solved.

there is no need of subscreens.

just in the function module 'GFW_PRES_SHOW_MULT'

change

SHOW = GFW_false.

the charts will be displayed adjacently.

Thanks,

Read only

Former Member
0 Likes
9,257

You have to create two subscreen areas in your screen painter one adjacent to another.

Then use the statement following :

CALL SUBSCREEN <SCREEN NO> USING <SCREEN AREA>.

Read only

0 Likes
9,257

Hello,

In the main screen in which u want to display two subscreens just add this :

In PBO of main screen

CALL SUBSCREEN sub1 INCLUDING SY_REPID 'pie chart screen no'.

CALL SUBSCREEN sub2 INCLUDING SY-REPID 'bar grph screen no'.

In PAI of main screen

CALL SUBSCREEN sub1.

CALL SUBSCREEN sub2.

Read only

0 Likes
9,257

hi,

i used the syntax

CALL subscreen <screen number> USING <screen area>.

but there getting an error "SCREEN expected, not SUBSCREEN"

CODE:

IF bar = 'X'.

CALL subscreen '100' USING scr1.

ENDIF.

IF pie = 'X'.

CALL subscreen '100' USING scr1.

ENDIF.

Thanks,

Read only

former_member654348
Participant
0 Likes
9,257

checkout the following link.

sap-abapinfo.blogspot.com/2008/05/lesson-41-subscreen-tabstrips.html

Read only

Former Member
0 Likes
9,257

Hi,

A subscreen can be called by following way.


MODULE user_command_9001 INPUT.
CASE g_ok_code .
    WHEN 'SUBM'.

      PERFORM f0601_save.

    WHEN 'SHOW'.

     PERFORM f0600_show_selections.
    *CALL SCREEN 9002 STARTING AT 1 1 ENDING AT 130 20*.

  ENDCASE.
ENDMODULE.

hope this helps you.

plz reward if useful.

thanks,

dhanashri.

Edited by: Dhanashri Pawar on Jul 3, 2008 7:22 AM

Read only

Former Member
0 Likes
9,257

hi,

For this first u have to create 2 adjacent subscreen area on your screen.

Then on the PBO of the main screen you have to write..

PROCESS BEFORE OUTPUT.

MODULE status_1000.

CALL SUBSCREEN subarea1 INCLUDING sy-repid v_dynnr. (V_dynnr contains your screen no)

CALL SUBSCREEN subarea2 INCLUDING sy-repid v_dynnr.

On PAI ...

PROCESS AFTER INPUT.

CALL SUBSCREEN subarea1.

CALL SUBSCREEN subarea2.

MODULE user_command_3000.

plz reward if helpful.

Read only

Former Member
0 Likes
9,257

Hi,

Plz use Call Screen.

If bar = ]X'

CALL SCREEN 9002 STARTING AT 1 1 ENDING AT 130 20.

............

Read only

0 Likes
9,257

hi,

with this syntax, the bar chart is displaying in the another window insted of displaying in the same window.

Is there any other way to display the charts in the same screen adjacent to one another.

thanks,

Read only

0 Likes
9,257

Hi Samantha,

Call the sub screen like this:

call subscreen sub1 including <progname> <screennum>.

Thanks,

Keerthi.

Read only

Former Member
0 Likes
9,258

call like this

PROCESS BEFORE OUTPUT.

CALL SUBSCREEN: <subscreen name> INCLUDING sy-cprog <screen no>,

<subscreen name> INCLUDING sy-cprog <screen no>,

<subscreen name> INCLUDING sy-cprog <screen no>.

PROCESS AFTER INPUT.

CALL SUBSCREEN: <subscreen name>,<subscreen name>,<subscreen name>.

Read only

Former Member
0 Likes
9,257

First you define a Subscreen area in the layout of the Screen where you want to call the Subscreen.

For example the main Screen is ' 0100'.

The Subscreen Area is ' SSA1' and the Subscreen is ' 0200'.

Then in the Flow logic of screen ' 0100' write the following code.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN SSA1 INCLUDING SY_REPID '0200'.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN SSA1.

===========================================

The Syntax is :

CALL SUBSCREEN Subscreen Area INCLUDING Program name 'Subscreen Number'..

Plz reward if it helps..