2007 Oct 05 10:21 AM
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?
2007 Oct 05 10:22 AM
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
2007 Oct 05 10:23 AM
hi,
use the event at selection output or use initization event and write the variable as p_date = sy-datum - 1..
regards,
Santosh.
2007 Oct 05 10:30 AM
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