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

plz help selection screen desplay issue

Former Member
0 Likes
1,186

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,172

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,172

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

Read only

0 Likes
1,172

i dnt want to use select-option i wanna do it with parameter statement only.

Read only

0 Likes
1,172

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>

Read only

Former Member
0 Likes
1,173

SELECTION-SCREEN: BEGIN OF LINE,

parameters : p_datum type sy-datum,

p_date type sy-datum.

SELECTION-SCREEN: END OF LINE.

Read only

Former Member
0 Likes
1,172

Hi anit,

tell me wht is the problem when you use select-option for the date field.

Regards,

Bharat

Read only

Former Member
0 Likes
1,172

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

Read only

former_member377111
Participant
0 Likes
1,172

SELECTION-SCREEN: BEGIN OF LINE,

parameters : p_datetype sy-datum,

p_date1 type sy-datum.

SELECTION-SCREEN: END OF LINE.

Reward Points If Usefull

Read only

0 Likes
1,172

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

Read only

Former Member
0 Likes
1,172

thanx all