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 values to the selection screen field

Former Member
0 Likes
558

Hi experts

i have a date field(Last changed) in the selection screen. this should be always set to today - 1. SY-DATUM - 1.

i mean when ever i execute this field shd always refers yesterdays date.

how can i do that?

Hi experts

i have a date field(Last changed) in the selection screen. this should be always set to today - 1. SY-DATUM - 1.

i mean when ever i execute this field shd always refers yesterdays date.

how can i do that?

3 REPLIES 3
Read only

Former Member
0 Likes
530

Hi Vamsi,

In INITIALIZATION event you can set like that.

INITIALIZATION.

s_date -low = sy-datum -1.

so that it will take that date always

Regards

Anji

Read only

Former Member
0 Likes
530

hi,

use the event at selection output or use initization event and write the variable as p_date = sy-datum - 1..

regards,

Santosh.

Read only

meikandan_krishnan2
Participant
0 Likes
530

Hi ,

If u want display yesterday's date ,

subtract 1 from the current date.

<b>code:</b>

parameter p_date like sy-datum.

initialization.

p_date = sy-datum - 1.

start-of-selection.

Regards

Meikandan