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

move to comment

former_member215107
Active Participant
0 Likes
680

Dear All,

Here the code:

SELECTION SCREEN COMMENT dis-01

If i write:

MOVE 'titi' TO dis-01 -> comment is filled

But:

tmp='dis-01'

MOVE 'titi' TO ???? -> how use tmp variable to have comment filled ?

Thanks a lot,

Rodolphe.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

Hi,

Try this code:



SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_radio1 TYPE c RADIOBUTTON GROUP rad1.
SELECTION-SCREEN COMMENT 4(12) text-p01.  <------- Put the hard coded value in a text element
SELECTION-SCREEN POSITION 27.
PARAMETERS : p_report TYPE sy-repid.
SELECTION-SCREEN END OF LINE.

Dear All,

Here the code:

SELECTION SCREEN COMMENT dis-01

If i write:

MOVE 'titi' TO dis-01 -> comment is filled

But:

tmp='dis-01'

MOVE 'titi' TO ???? -> how use tmp variable to have comment filled ?

Thanks a lot,

Rodolphe.

3 REPLIES 3
Read only

Former Member
0 Likes
605

Hi,

Use like this


move 'titi' to tmp.
dis-01 = tmp.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 5(10) dis-01.
selection-screen end of line.

Edited by: vikred on Jul 24, 2009 12:21 PM

Edited by: vikred on Jul 24, 2009 12:58 PM

Read only

naveen_inuganti2
Active Contributor
0 Likes
605

Hi,

Use Initialization Event.

Sample Code:

data: p_var type sy-uzeit.

selection-screen begin of line.
selection-screen comment (34) p_comm.
parameter p_para type char10.
selection-screen end of line.
initialization.
p_var = sy-uzeit.
p_comm = p_var.

Thanks,

Naveen Inuganti.

Read only

Former Member
0 Likes
606

Hi,

Try this code:



SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_radio1 TYPE c RADIOBUTTON GROUP rad1.
SELECTION-SCREEN COMMENT 4(12) text-p01.  <------- Put the hard coded value in a text element
SELECTION-SCREEN POSITION 27.
PARAMETERS : p_report TYPE sy-repid.
SELECTION-SCREEN END OF LINE.