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

Select Option

Former Member
0 Likes
588

Hi,

My requirement is to have a checkbox and select option field on the same line. Pl suggest how it can be achieved

Suitable answers will be rewarded

Thanks ,

Kasi S

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Try this code:

tables:T001W.

SELECTION-SCREEN BEGIN OF LINE.

parameters: w_chk as checkbox.

SELECT-OPTIONS : s_werks FOR T001W-werks .

SELECTION-SCREEN END OF LINE.

5 REPLIES 5
Read only

Former Member
0 Likes
572

Hi Kasi.,

Try this.

SELECTION-SCREEN BEGIN OF LINE.

SELECT-OPTIONS : s_val FOR werks as checkbox r1.

SELECTION-SCREEN COMMENT (20) text-004 FOR FIELD r1.

SELECTION-SCREEN END OF LINE.

Reward If useful.

Regards,

Chitra

Read only

0 Likes
572

HI Chitra,

SELECT-OPTIONS : s_val FOR werks as checkbox r1.

The above statement is producing syntax error.

Regards,

Kasi S

Read only

Former Member
0 Likes
573

Try this code:

tables:T001W.

SELECTION-SCREEN BEGIN OF LINE.

parameters: w_chk as checkbox.

SELECT-OPTIONS : s_werks FOR T001W-werks .

SELECTION-SCREEN END OF LINE.

Read only

Former Member
0 Likes
572

Hi,


TABLES: t001w.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN:  COMMENT (20) TEXT-001.
PARAMETER: p_check AS CHECKBOX.
SELECTION-SCREEN:  COMMENT +30(20) TEXT-002.
SELECT-OPTIONS: s_werks FOR t001w-werks.
SELECTION-SCREEN: END OF LINE.

--Also, maintain selection text for the parameter and select option.-

Sorry selection texts wont work here, use comments as shown above and put the labels in the text elements.

Regards,

Aditya

Edited by: Aditya Laud on Feb 6, 2008 12:50 AM

Read only

Former Member
0 Likes
572

Hi Kasi,

Go through following code it will answer your query.

data: flag type c.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS show_all AS CHECKBOX.

SELECTION-SCREEN COMMENT (20) text-004 FOR FIELD show_all.

PARAMETERS: p1(10) TYPE c.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b1.

Reward points if useful.