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

checkbox on selection screen

Former Member
0 Likes
1,035

Hi,

Normally when we print a check box on selection screen, it displays checkbox first and then text.Can anyone help in getting text first and checkbox next.

9 REPLIES 9
Read only

Vinod_Chandran
Active Contributor
0 Likes
963

Try the following

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. PARAMETERS: P1 AS CHECKBOX.

SELECTION-SCREEN END OF LINE.

Read only

Former Member
0 Likes
963

Hi

Syntax:

PARAMETERS check AS CHECKBOX USER-COMMAND check.

Regards

Ashish

Read only

Former Member
0 Likes
963

hi, you can add a comment in front of the check box, and both of them in the same line.

Thanks

Read only

Former Member
0 Likes
963

Hi Asish and Vinod,

Your code does not work. It should print text first not the checkbox.

eg:-

Checkbox []

not as

[] Checkbox

without using any comments

Read only

0 Likes
963

Please try this

SELECTION-SCREEN BEGIN OF BLOCK grp1 WITH FRAME TITLE text-105.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS p1 AS CHECKBOX.

SELECTION-SCREEN COMMENT 3(20) text-101 FOR FIELD p1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK grp1.

Read only

0 Likes
963

Hi,

The Vinod's code is OK and I think that it covers your requirements. But you need to create the text element and to enter the relevent text for your comment.

Double click on TEXT-001 and you will have an option to enter text.

Svetlin

Read only

Former Member
0 Likes
963

Hi vinod,

Did you execute the code. Am still getting the output as

<b>[]Checkbox</b>

I dont want in above fashion.

I want it to print as

<b>Checkbox []</b>

Read only

0 Likes
963

Hi Syed,

Change Vinod's code as follows:


SELECTION-SCREEN BEGIN OF BLOCK grp1 WITH FRAME TITLE text-105.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(20) text-101.
SELECTION-SCREEN POSITION 25.
PARAMETERS p1 AS CHECKBOX.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK grp1.

Please close the post and reward if answered.

Srinivas

Read only

0 Likes
963

Looks like you didn't reward anyone here. So what was the solution you used? Did you solve it yourself?

Srinivas