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

Default value

Former Member
0 Likes
658

Hi,

How to set default value in selection screen

Edited by: Hima on May 7, 2008 5:45 AM

6 REPLIES 6
Read only

gopi_narendra
Active Contributor
0 Likes
626
SELECT-OPTIONS   : s_date     FOR bkpf-bldat.
INITIALIZATION.
  MOVE sy-datum TO s_date-high.
  APPEND s_date.

Use the INITIALIZATION event.

Regards

Gopi

Read only

Former Member
0 Likes
626
tables: kna1.

select-options:cust for kna1-kunnr Default  '2000' and '3000'.

Another method as stated above..

Pls rewards points if useful..

regards

sas

Read only

Former Member
0 Likes
626

Hi Hima,

PARAMETERS: p_matnr TYPE matnr DEFAULT 1000,
            p_date type sy-datum.

U can also use INITIALIZATION. Event to give the default values.

For Example:

This is to set the previous date.

INITIALIZATION.
p_date = sy-datum - 1.

Best regards,

raam

Read only

Former Member
0 Likes
626

Hi

Chjeck this Program..

PARAMETERS: value TYPE i DEFAULT 100,

name TYPE sy-uname DEFAULT sy-uname,

date TYPE sy-datum DEFAULT '19980627'.

Hope it helps.

Praveen

Read only

Former Member
0 Likes
626

hi

good

add "MEMORY ID vko" to the selection parameter.

thanks

mrutyun^

Read only

Former Member
0 Likes
626

Adding a DEFAULT follow with VALUE in the parameter or variable declaration.