‎2005 Aug 27 11:01 AM
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.
‎2005 Aug 27 11:16 AM
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.
‎2005 Aug 27 11:25 AM
Hi
Syntax:
PARAMETERS check AS CHECKBOX USER-COMMAND check.
Regards
Ashish
‎2005 Aug 27 11:53 AM
hi, you can add a comment in front of the check box, and both of them in the same line.
Thanks
‎2005 Aug 27 12:18 PM
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
‎2005 Aug 27 12:29 PM
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.
‎2005 Aug 27 12:33 PM
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
‎2005 Aug 27 12:46 PM
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>
‎2005 Aug 27 2:23 PM
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
‎2005 Aug 28 12:35 AM
Looks like you didn't reward anyone here. So what was the solution you used? Did you solve it yourself?
Srinivas