‎2007 May 24 11:04 AM
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?
‎2007 May 24 11:14 AM
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
‎2007 May 24 11:14 AM
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
‎2007 May 24 4:16 PM
‎2007 May 24 4:30 PM
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
‎2007 May 24 4:33 PM
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
‎2007 May 24 4:36 PM
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.
‎2007 May 24 5:23 PM
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
‎2007 May 24 6:47 PM
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.
‎2007 May 24 9:08 PM
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
‎2007 May 25 7:33 AM