2007 Oct 03 7:43 AM
Hi experts
plz help
small query
i have two fields
dateto and date from in my selection screen
i ill have to use parameter for both the feilds i cannot use select-options here
but wen i m using parameter its coming line by line
like
p_dateto "i/o feild"
but i want like we get in select option
p_dateto "i/o feild" p_datfrm "i/o feild"
plz help me doin this .
thanx i9n advance.
2007 Oct 03 7:46 AM
SELECTION-SCREEN: BEGIN OF LINE,
parameters : p_datum type sy-datum,
p_date type sy-datum.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE,
parameters : p_datum type sy-datum,
p_date type sy-datum.
SELECTION-SCREEN: END OF LINE.
2007 Oct 03 7:46 AM
Hi Anit,
You can use select-options : p_datfrm or tablename-fieldname no-EXTENSION NO INTERVALS,
p_dateto for tablename-fieldname no-EXTENSION NO INTERVALS.
Reward if helpful.
Regards,
Harini.S
2007 Oct 03 7:51 AM
i dnt want to use select-option i wanna do it with parameter statement only.
2007 Oct 03 7:54 AM
Hi Amit..
We have to use BEGIN of Line .. END of Line in the SELECTION SCREEN statement.
This is the Sample code:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(10) TEXT-C01. "Create the Text symbol C01
PARAMETERS : p_from LIKE sy-datum.
SELECTION-SCREEN COMMENT 50(11) TEXT-C01. "Create the Text symbol C01
PARAMETERS : p_to LIKE sy-datum.
SELECTION-SCREEN END OF LINE.
<b>REWARD IF HELPFUL.</b>
2007 Oct 03 7:46 AM
SELECTION-SCREEN: BEGIN OF LINE,
parameters : p_datum type sy-datum,
p_date type sy-datum.
SELECTION-SCREEN: END OF LINE.
2007 Oct 03 7:48 AM
Hi anit,
tell me wht is the problem when you use select-option for the date field.
Regards,
Bharat
2007 Oct 03 7:50 AM
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(10) comm1.
PARAMETERS : p_datefrom LIKE sy-datum.
SELECTION-SCREEN COMMENT 50(11) comm2.
PARAMETERS : p_dateto LIKE sy-datum.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
reward if useful
2007 Oct 03 7:54 AM
SELECTION-SCREEN: BEGIN OF LINE,
parameters : p_datetype sy-datum,
p_date1 type sy-datum.
SELECTION-SCREEN: END OF LINE.
Reward Points If Usefull
2007 Oct 03 7:57 AM
hey,
why dont u use select-options?
but if u want parameters only,
u can do like below.
selection-screen begin of screen <scrno>.
selecion-screen begin of line.
parameters: date_from type sy-datum,
date_to type sy-datum.
selection-screen end of line.
selection-screen end of screen <scrno>.
Message was edited by:
Hymavathi Oruganti
2007 Oct 03 8:47 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |