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

Comments within a select option.

Former Member
0 Likes
3,759

Hi Guys & Dolls

Can anybody tell me how I can just place a line of comment within a select-option but not associate it to any fields.

Currently I have the following:-

=====================

Additional Data <b> (This is the frame title)</b>

Param 1

Param 2

What I want is :-

============

Additional Data <b>(This is the frame title)</b>

This program will not work with Level GN <b>(This is what I want to insert)</b>

Param 1

Param 2

Many thanks in advance.

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,796
REPORT YCHATEST.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(35) V_TEXT.
SELECTION-SCREEN END OF LINE.

PARAMETERS : P_MATNR LIKE MARA-MATNR.

INITIALIZATION.
  V_TEXT = 'This program will not work with Level GN'.
6 REPLIES 6
Read only

andreas_mann3
Active Contributor
0 Likes
1,796

hi,

use : selection-screen begin of line.

selection-screen comment 1(35) text-001.

sample:

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(31) TEXT-SUX.

PARAMETERS : SUMX AS CHECKBOX.

SELECTION-SCREEN COMMENT 36(21) TEXT-SU3.

PARAMETERS : SUMLC003 AS CHECKBOX.

SELECTION-SCREEN COMMENT 61(17) TEXT-KER.

PARAMETERS : KER AS CHECKBOX.

SELECTION-SCREEN END OF LINE.

A.

Message was edited by:

Andreas Mann

Read only

Former Member
0 Likes
1,796

Hi,

where is an example

SELECTION-SCREEN BEGIN OF BLOCK B2

WITH FRAME TITLE TEXT-001.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(31) TEXT-006 FOR FIELD MAHNA.

PARAMETERS: KUNNR LIKE KNA1-KUNNR MODIF ID A1.

PARAMETERS: MAHNA LIKE KNB5-MAHNA MODIF ID A.

PARAMETERS: TEXTM LIKE T047T-TEXTM MODIF ID A.

SELECT-OPTIONS: CONTA FOR KNA1-KUNNR NO-DISPLAY.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B2.

regards,

Read only

Former Member
0 Likes
1,797
REPORT YCHATEST.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(35) V_TEXT.
SELECTION-SCREEN END OF LINE.

PARAMETERS : P_MATNR LIKE MARA-MATNR.

INITIALIZATION.
  V_TEXT = 'This program will not work with Level GN'.
Read only

0 Likes
1,796

How do I display it in red?

Read only

0 Likes
1,796

No u can't change the color.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
1,796

Hello Raj,

Check this code:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
SELECTION-SCREEN COMMENT 1(79) TEXT-030.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
SELECTION-SCREEN COMMENT 1(74) TEXT-031.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
SELECTION-SCREEN COMMENT 1(34) TEXT-032.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK BLCK1.

If useful reward.

Vasanth