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 option

Former Member
0 Likes
1,169

Dear friends,

I coded the selection screen like below, but the check box is displaying far away from text, Is it any possibilities to display the check box closer to the text-001.

SELECTION-SCREEN BEGIN OF BLOCK xx WITH FRAME TITLE text-f02.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS h_p RADIOBUTTON GROUP oper.

SELECTION-SCREEN COMMENT 5(61) text-a01.

PARAMETERS : fdue AS CHECKBOX DEFAULT space.

SELECTION-SCREEN END OF LINE.

parameter h_i radiobutton group oper.

SELECTION-SCREEN END OF BLOCK xx.

text-a01: Without selecting the check box here (selecting the check box)

Thanks in advance

karthik

12 REPLIES 12
Read only

Former Member
0 Likes
1,144

How long is text-a01. Is it 61 characters.

You can also use selection-screen position &&

Read only

Former Member
0 Likes
1,144

try to use

SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.

and for positioning

SELECTION-SCREEN POSITION pos.

pos is the co ordinates.

regards

shiba dutta

Read only

Former Member
0 Likes
1,144

hi Karthik,

SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS h_p RADIOBUTTON GROUP oper.
SELECTION-SCREEN COMMENT 5(61) text-a01.
SELECTION-SCREEN  END OF LINE.

Read only

Former Member
0 Likes
1,144

use SELECTION-SCREEN POSITION pos.

Read only

Former Member
0 Likes
1,144

Hi Karthik,

Change SELECTION-SCREEN COMMENT <b>5(20)</b> text-a01. check it now

Regards,

Balavardhan.K

Read only

Former Member
0 Likes
1,144

Hi,

This is because of the length mentioned in the below statement.

SELECTION-SCREEN COMMENT 5(61) text-a01.

Here you have gievn the text size as 61. SO its going away from the text. Just reduce the size and check the same..

Regards,

Ram

Pls reward points if helpful

Read only

Former Member
0 Likes
1,144

Hi Karthik ,

The problem is with the statement

SELECTION-SCREEN COMMENT 5(61) text-a01.

here what is happening is your comments start from coordinate 5 and its lenght is 61 , so all you need to do is modify the parameter 61 , and give a lower value based on the lenght of the text text-a01.

Regards

Arun

Read only

0 Likes
1,144

Dear Friends,

I unable to reduce the text length 61 to 20. if i do i am getting error.

pls cut and paste my code and give the same text text-001 and execute you will know the exact problem.

pls give me the full coding fot the above

regards

karthik

Read only

0 Likes
1,144

Hi Karthik ,

Yes i tried the code and does show that property.

I tried selection screen postion , but it also does not seem to work , the select scrren comment is taking some additional space.

But it works fine , if we put the comment after the check box

Regards

Arun

Message was edited by:

Arun R

Read only

Former Member
0 Likes
1,144

Hi karthik,

run this code,

SELECTION-SCREEN BEGIN OF BLOCK xx WITH FRAME TITLE text-f02.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS h_p RADIOBUTTON GROUP oper.

<b>SELECTION-SCREEN COMMENT 5(36) text-a01.</b>

PARAMETERS : fdue AS CHECKBOX DEFAULT space.

SELECTION-SCREEN END OF LINE.

parameter h_i radiobutton group oper.

SELECTION-SCREEN END OF BLOCK xx.

since u r mentioning

<b>SELECTION-SCREEN COMMENT 5(61) text-a01.</b>

check box is printing far away

Read only

0 Likes
1,144

Hi sreekanth,

yes the checkbox is displaying far away, if i use your code the text-001 is not displaying fully.

regards,

karthik

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,144

I dont think it is possible, cause Abap reserve places to put the text with the largest characters possible, eg 'W'

Try replacing your text with 62W, WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

The check box is just behind the text

Sorry

Regards