‎2007 Aug 07 2:18 PM
‎2007 Aug 07 2:21 PM
Hi..
Use the below code.
SELECTION-SCREEN: BEGIN OF SCREEN 10.
parameters : p1(10).
SELECTION-SCREEN : END OF SCREEN 10.
SELECTION-SCREEN: BEGIN OF SCREEN 20.
parameters : p2(10).
SELECTION-SCREEN : END OF SCREEN 20.
START-OF-SELECTION.
CALL SELECTION-SCREEN 10.
<b>Reward if Helpful</b>
‎2007 Aug 07 2:23 PM
Hi
you mean multiple blocks
use selction-screen block b1 with frame title text-001.
selection screen end of block b1.
selction-screen block b2 with frame title text-001.
selection screen end of block b2.
selction-screen block b3 with frame title text-001.
selection screen end of block b3.
Reward points if it is helpful to u.
Kiran.M
Message was edited by:
KIRAN KUMAR
‎2007 Aug 07 2:24 PM
PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
PARAMETERS : R2 RADIOBUTTON GROUP RG .
*----
selection-screen begin of block b1 with frame title text-001.
parameters : a(10) type c modif id abc.
parameters : b(10) type c modif id abc.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
parameters : c(40) type c modif id def.
parameters : d(20) type c modif id def.
selection-screen end of block b2.
*----
at selection-screen output.
IF R1 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'DEF' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC' .
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
-
or
You could use the EXPORT/IMPORT statement but you would need to write it to the shared buffer which is an extension of the EXPORT/IMPORT statements. Maybe it would be better to use a parameter id here using the SET and GET statements.
SET parameter id 'ZCOUNT' field v_count.
GET parameter id 'ZCOUNT' field v_count.
Hope this helps you.....
Regards,
Pavan
‎2007 Aug 07 2:25 PM
Hi,
Look at the demo program
REPORT demo_call_selection_screen.
SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME TITLE tit1.
PARAMETERS: cityfr TYPE spfli-cityfrom,
cityto TYPE spfli-cityto.
SELECTION-SCREEN END OF BLOCK sel1.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN INCLUDE BLOCKS sel1.
SELECTION-SCREEN BEGIN OF BLOCK sel2
WITH FRAME TITLE tit2.
PARAMETERS: airpfr TYPE spfli-airpfrom,
airpto TYPE spfli-airpto.
SELECTION-SCREEN END OF BLOCK sel2.
SELECTION-SCREEN END OF SCREEN 500.
INITIALIZATION.
tit1 = 'Cities'.
AT SELECTION-SCREEN.
CASE sy-dynnr.
WHEN '0500'.
MESSAGE w888(SABAPDOCU) WITH 'Screen 500'.
WHEN '1000'.
MESSAGE w888(SABAPDOCU) WITH 'Screen 1000'.
ENDCASE.
START-OF-SELECTION.
tit1 = 'Cities for Airports'.
tit2 = 'Airports'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
tit1 = 'Cities again'.
CALL SELECTION-SCREEN 1000 STARTING AT 10 10.
Regards
Sudheer
‎2007 Aug 07 2:27 PM
Hi
if you creat a selection screen bu default that screen number is 1000
if u want to creat more than one screen
then you have to mention that screen number
like
selection-screen begin of screen screen number
what ever u want to display that should be writen this
selection-screen end of screen screen number
reward if usefull