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
788

Hey Guys

Im trying to create a selection that looks something like this:

The Inner screen's name is 'Students' and it has the following text to the bottom of it...

'Selection'

and two check boxes named 'First' and 'Second'

The inner screen has the title 'Display Course'

It has the following three radio buttons named

'Biology'

'Physics'

'Math'

Any help?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
769

SELECTION-SCREEN BEGIN OF BLOCK student WITH TEXT 'Students'.

<code for check-boxes here>

SELECTION-SCREEN BEGIN OF BLOCK course WITH TEXT 'Display Course'.

<put your radio buttons here>

SELECTION-SCREEN END OF BLOCK.

SELECTION-SCREEN END OF BLOCK.

Sudha

9 REPLIES 9
Read only

Former Member
0 Likes
770

SELECTION-SCREEN BEGIN OF BLOCK student WITH TEXT 'Students'.

<code for check-boxes here>

SELECTION-SCREEN BEGIN OF BLOCK course WITH TEXT 'Display Course'.

<put your radio buttons here>

SELECTION-SCREEN END OF BLOCK.

SELECTION-SCREEN END OF BLOCK.

Sudha

Read only

0 Likes
769

Sudha

The code you gave me is not very helpful...

Read only

0 Likes
769

Hey everyone...

I used the following code for my problem...

REPORT ZBAP_SELSCR_EXAM1 .

START-OF-SELECTION.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-011.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(20) text-001.

SELECTION-SCREEN COMMENT 21(10) text-002 FOR FIELD p1.

PARAMETERS: p1 as CHECKBOX.

SELECTION-SCREEN COMMENT 32(10) text-003 FOR FIELD p2.

PARAMETERS: p2 as CHECKBOX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE text-012.

SELECTION-SCREEN COMMENT 5(15) text-004 FOR FIELD q1.

PARAMETERS: q1 RADIOBUTTON GROUP grp1.

SELECTION-SCREEN COMMENT 5(16) text-005 FOR FIELD q2.

PARAMETERS: q2 RADIOBUTTON GROUP grp1.

SELECTION-SCREEN COMMENT 5(22) text-006.

SELECTION-SCREEN END OF BLOCK B2.

END-OF-SELECTION.

However Im getting the following error:

'ERROR WHEN GENERATING SELECTION SCREEN 1000 OF ZBAP_SELSCR_EX'

Does anyone know what the problem could be?

Adam

Read only

0 Likes
769

hi Adam,

Whenever we try to give the text beyond the screen we encounter such error. Please take care to pass the text within screen length.

REgards,

Santosh

Read only

Former Member
0 Likes
769

Hi Adam,

Try this way..

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-011.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(20) text-001.

SELECTION-SCREEN COMMENT 25(10) text-002 FOR FIELD p1.

PARAMETERS: p1 as CHECKBOX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 25(10) text-003 FOR FIELD p2.

PARAMETERS: p2 as CHECKBOX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE text-012.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 5(15) text-004 FOR FIELD q1.

PARAMETERS: q1 RADIOBUTTON GROUP grp1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 5(16) text-005 FOR FIELD q2.

PARAMETERS: q2 RADIOBUTTON GROUP grp1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN COMMENT 5(22) text-006.

SELECTION-SCREEN END OF BLOCK B2.

Regards,

Vidya.

Read only

0 Likes
769

Thanks to both of you guys....

Now...

I want to write the statement that evaluates the check boxes and radio buttons. The output should be a statement that dispalys the label of the check boxes and radio button selected...

How do i accomplish that?

Adam

Read only

0 Likes
769

do u want to trigger the event means use at selection screen event.

for example try this.

at selection-screen .

if p1 = 'X'.

message i000(000) with 'first'.

elseif p2 = 'X'.

message i001(000) with 'Second'.

endif.

at selection-screen on radiobutton group grp1.

if q1 = 'X'.

message i002(000) with 'Biology'.

elseif q2 = 'X'.

message i003(000) with 'Maths'.

endif.

Read only

0 Likes
769

HI

Actually what i wanted to do, is create one selection on top another and NOT two separate screens, the source code i got is ok (even though it doesnt give the desired results), but what i want is the RADIOBUTTON selection screen to be on top on the CHECKBOXES screen...

Adam

Read only

0 Likes
769

then move codes for block b2 above block b1