2007 Jan 29 6:54 PM
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
2007 Jan 29 6:58 PM
2007 Jan 29 6:58 PM
Refer the sample program:
demo_sel_screen_beg_of_line_1
Regards,
Ravi
2007 Jan 29 6:58 PM
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
2007 Jan 29 6:58 PM
2007 Jan 29 7:08 PM
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
2007 Jan 29 7:10 PM
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
2007 Jan 29 7:11 PM
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
2007 Jan 29 7:14 PM
2007 Jan 29 7:00 PM
Selection-screen begin of line.
Parameters: date type d, with type c.
Selection-screen end of line.
Thanks,
Santosh
2007 Jan 29 7:03 PM
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