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

selection-screen

Former Member
0 Likes
477

how to create multi selection screens.

5 REPLIES 5
Read only

varma_narayana
Active Contributor
0 Likes
454

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>

Read only

Former Member
0 Likes
454

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

Read only

Former Member
0 Likes
454

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

Read only

Former Member
0 Likes
454

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

Read only

Former Member
0 Likes
454

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