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

Comment on screen

Former Member
0 Likes
728

I need to add a comment besides the matnr select-option. The code I have puts it in the next line. Any ideas?

SELECTION-SCREEN BEGIN OF BLOCK bas WITH FRAME TITLE text-001.

SELECT-OPTIONS:
          matnr        FOR qals-matnr     OBLIGATORY NO INTERVALS MEMORY ID mat.
          SELECTION-SCREEN COMMENT /56(79) text-017.
          select-OPTIONS: finid        FOR qals-paendterm OBLIGATORY MEMORY ID finid,
          werk         FOR qals-werk      OBLIGATORY MEMORY ID werk.
SELECTION-SCREEN END OF BLOCK bas.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
704

Hi,

A small mistake in your code., just delete the / symbol at comments line from /56(79), it should be only 56(79).

SELECTION-SCREEN BEGIN OF BLOCK bas WITH FRAME TITLE text-001.

SELECT-OPTIONS:

matnr FOR qals-matnr OBLIGATORY NO INTERVALS MEMORY ID mat.

SELECTION-SCREEN COMMENT 56(79) text-017.

select-OPTIONS: finid FOR qals-paendterm OBLIGATORY MEMORY ID finid,

werk FOR qals-werk OBLIGATORY MEMORY ID werk.

SELECTION-SCREEN END OF BLOCK bas.

6 REPLIES 6
Read only

Former Member
0 Likes
705

Hi,

A small mistake in your code., just delete the / symbol at comments line from /56(79), it should be only 56(79).

SELECTION-SCREEN BEGIN OF BLOCK bas WITH FRAME TITLE text-001.

SELECT-OPTIONS:

matnr FOR qals-matnr OBLIGATORY NO INTERVALS MEMORY ID mat.

SELECTION-SCREEN COMMENT 56(79) text-017.

select-OPTIONS: finid FOR qals-paendterm OBLIGATORY MEMORY ID finid,

werk FOR qals-werk OBLIGATORY MEMORY ID werk.

SELECTION-SCREEN END OF BLOCK bas.

Read only

Former Member
0 Likes
704

SELECTION-SCREEN BEGIN OF BLOCK bas WITH FRAME TITLE text-001.

selection-screen begin of line.

SELECT-OPTIONS:

matnr FOR qals-matnr OBLIGATORY NO INTERVALS MEMORY ID mat.

SELECTION-SCREEN COMMENT 56(79) text-017.

selection-screen end of line.

select-OPTIONS: finid FOR qals-paendterm OBLIGATORY MEMORY ID finid,

werk FOR qals-werk OBLIGATORY MEMORY ID werk.

SELECTION-SCREEN END OF BLOCK bas.

Regards

Vasu

Read only

Former Member
0 Likes
704

Put

SELECTION-SCREEN BEGIN OF LINE.

...

SELECTION-SCREEN END OF LINE

around your field and comment.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
704

Try wrapping in Begin and End of line. and remove the "/" in your comment line.



selection-screen begin of line.
SELECT-OPTIONS: matnr  FOR qals-matnr OBLIGATORY
                           NO INTERVALS MEMORY ID mat.
SELECTION-SCREEN COMMENT 56(79) text-017.
selection-screen end of line.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
704

Your comment will start at a new line always, you will have to use selection screen begin of line and selection screen end of line

Message was edited by:

ANIRUDDHA DAS

Read only

Former Member
0 Likes
704

Thank you