‎2008 Jul 03 5:50 AM
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.
‎2008 Jul 03 9:25 AM
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>.
‎2008 Jul 03 5:56 AM
start_coiumn = 25
start_row = 25.
call screen 1006 starting at start_column start_row
this will help u...................
Reward IF...........................................
Regards
Anbu
‎2008 Jul 03 7:28 AM
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.
‎2008 Jul 03 11:07 AM
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,
‎2008 Jul 03 6:03 AM
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>.
‎2008 Jul 03 6:09 AM
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.
‎2008 Jul 03 7:43 AM
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,
‎2008 Jul 03 6:06 AM
checkout the following link.
sap-abapinfo.blogspot.com/2008/05/lesson-41-subscreen-tabstrips.html
‎2008 Jul 03 6:21 AM
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
‎2008 Jul 03 7:09 AM
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.
‎2008 Jul 03 7:44 AM
Hi,
Plz use Call Screen.
If bar = ]X'
CALL SCREEN 9002 STARTING AT 1 1 ENDING AT 130 20.
............
‎2008 Jul 03 9:14 AM
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,
‎2008 Jul 03 9:19 AM
Hi Samantha,
Call the sub screen like this:
call subscreen sub1 including <progname> <screennum>.
Thanks,
Keerthi.
‎2008 Jul 03 9:25 AM
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>.
‎2008 Jul 03 9:31 AM
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..