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 screen COMMENT font

NunoSilva
Explorer
0 Likes
2,260

Hello,

In a screen I have a SELECTION-SCREEN line which contains a comment, followed by a PARAMETER, followed by another comment, followed by a PARAMETER.

Here is the example code:

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(14) text-s01 FOR FIELD p_1.

SELECTION-SCREEN POSITION 33.

PARAMETERS: p_1 LIKE sy-uzeit DEFAULT '000001'.

SELECTION-SCREEN COMMENT 52(3) text-s02 FOR FIELD p_2.

SELECTION-SCREEN POSITION 58.

PARAMETERS: p_2 LIKE sy-uzeit DEFUALT '240000'.

SELECTION-SCREEN END OF LINE.

For some reason the second COMMENT is showing with a different font. Can anyone help me understand why?

Thank you,

Nuno Silva

11 REPLIES 11
Read only

Former Member
0 Likes
1,669

Hi,

Can you provide the code what you have written..

are you using the loop at screen some where.

Regards

Ansair

Read only

venkat_o
Active Contributor
0 Likes
1,669

Hi Silva, <li> No way to be happened like that. Please double check. I have just tested. No difference i could find. Thanks Venkat.O

Read only

0 Likes
1,669

Hello,

That is in fact happening in my system. Maybe this could be due to an me being on an older version of SAP, but I cannot find any SAP notes that relate to this.

Thank you,

Nuno Silva

Read only

Former Member
0 Likes
1,669

Please copy paste the code what you have written.

Ansari

Read only

0 Likes
1,669

It's in my first message.

Thank you,

Nuno Silva

Read only

Former Member
0 Likes
1,669

>

> It's in my first message.

Since it doesn't pass a syntax check, I doubt if it really is the code you wrote.

Rob

Read only

Former Member
0 Likes
1,669

Hi,

I tried this code.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(14) text-s01 FOR FIELD p_1.

SELECTION-SCREEN POSITION 33.

PARAMETERS: p_1 LIKE sy-uzeit DEFAULT '000001'.

SELECTION-SCREEN COMMENT 52(20) text-s02 FOR FIELD p_2.

SELECTION-SCREEN POSITION 72.

PARAMETERS: p_2 LIKE sy-uzeit DEFAULT '240000'.

SELECTION-SCREEN END OF LINE.

I cant see any diference in the output. Looks strange case..

Regards

Ansari

Read only

Former Member
0 Likes
1,669

Hi

I test it on my system and noticed the same behavior.

text-s01 = 'TOX'

text-s02 = 'TOX'

We can notice differences between the O and X.

No idea why.

That is SAP

If you found a solution, please post it.

Regards

DSTJ

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,669

Try this code

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(14) text-s01 FOR FIELD p_1.
SELECTION-SCREEN POSITION 33.
PARAMETERS: p_1 LIKE sy-uzeit DEFAULT '000001'.
SELECTION-SCREEN COMMENT 50(5) text-s02 FOR FIELD p_2. "<<<<< 
SELECTION-SCREEN POSITION 58.
PARAMETERS: p_2 LIKE sy-uzeit DEFUALT '240000'.
SELECTION-SCREEN END OF LINE.

Edited by: Pawan Kesari on Apr 8, 2010 8:24 PM

Read only

0 Likes
1,669

My mistake - notice the date on the OP.

Rob

Read only

Former Member
0 Likes
1,669

Change this...

SELECTION-SCREEN COMMENT 52(3) text-s02 FOR FIELD p_2.

...to this...

SELECTION-SCREEN COMMENT 52(4) text-s02 FOR FIELD p_2.

Comments defined as length 3 show up in a serif font.

Ralph