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

help with text in selection screen

Former Member
0 Likes
1,125

Hi all,

i want to know whether this is possible in the selection screen

date -


with date -


i want to know how to write " with " in selection screen and how to

position the second date to the right of with

thanks

deepthi

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,096

Try this.




report zrich_0001.

selection-screen begin of line.
parameters: p_datum type sy-datum.
selection-screen comment 20(10) text_001.
parameters: p_datum2 type sy-datum.
selection-screen end of line.

initialization.

text_001 = 'With'.

Regards,

Rich Heilman

9 REPLIES 9
Read only

Former Member
0 Likes
1,096

Refer the sample program:

demo_sel_screen_beg_of_line_1

Regards,

Ravi

Read only

Former Member
0 Likes
1,096

Hi Deepthi,

To get every thing in a line, use as follows.

Use COMMENT clause to get text to be displayed on output.

Give values to text elements TEXT_001 and TEXT_002.

SELECTION-SCREEN BEGIN OF LINE B1,

SELECTION-SCREEN COMMENT 30(10) TEXT_001.

PARAMETERS P_DATE1 TYPE SY-DATUM.

SELECTION-SCREEN COMMENT 50(10) TEXT_002.

PARAMETERS P_DATE2 TYPE SY-DATUM.

SELECTION-SCREEN END OFLINE B1.

Double clik on TEXT_001 and TEXT_002, give values 'date'.

and 'with date' respectively to them.

Thanks,

Vinay

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,097

Try this.




report zrich_0001.

selection-screen begin of line.
parameters: p_datum type sy-datum.
selection-screen comment 20(10) text_001.
parameters: p_datum2 type sy-datum.
selection-screen end of line.

initialization.

text_001 = 'With'.

Regards,

Rich Heilman

Read only

0 Likes
1,096

Hi Rich,

even i am passing selection text for p_datum and p_datum1 , i don't see in the screen.

can you let me know as to how to get this . i want

date -


with date -


right now i am getting some thing like this

-


with -


i have passed date in the selection text for both

thanks

Read only

0 Likes
1,096

Try this.



report zrich_0001.

selection-screen begin of line.
selection-screen comment 5(10) text_001.
parameters: p_datum type sy-datum.
selection-screen comment 30(10) text_002.
parameters: p_datum2 type sy-datum.
selection-screen end of line.

initialization.

text_001 = 'Date' .
text_002 = 'With Date'.

Once you start messing with the LINE using Begin of Line and End of Line, the standard selection text is not recoginized, so you have to put the comments yourself.

Regards,

Rich Heilman

Read only

0 Likes
1,096

If you use the begin of line and end of line syntax, you will not get the text that you have defined in the selection text.

Instead, you should fill the text elements/symbols that you define next to the comment field.

like text-001(Just double clik and craete texts).

Regards,

Ravi

Read only

0 Likes
1,096

Hi all,

thanks

i awarded points to all.

Thanks again

Read only

Former Member
0 Likes
1,096

Selection-screen begin of line.

Parameters: date type d, with type c.

Selection-screen end of line.

Thanks,

Santosh

Read only

Former Member
0 Likes
1,096

Hi,

Use the following code...

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : P_DATE1 TYPE SY-DATUM.

SELECTION-SCREEN POSITION 25.

SELECTION-SCREEN COMMENT 25(4) TEXT-001 FOR FIELD P_DATE2.

PARAMETERS : P_DATE2 TYPE SY-DATUM.

SELECTION-SCREEN END OF LINE.

rEGARDS,

Vara