Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9146

Re: Current date as default

$
0
0

Hi Abhilash,

 

I tried this from this thread

http://scn.sap.com/thread/1088581

 

 

but still I am not getting.Can you please suggest

 

 

 

    To set the default date for a date parameter please follow the below steps.

 

1) Set the default value in the date or datetime parameters to a date that will never appear in the data (for example, 1900-01-01).

2) Enter in the Record Selection Formula field a formula similar to the following:

 

DateVar DateParamValue;

If {?DateParam} = Date(1900,1,1) Then

    DateParamValue := CurrentDate

Else

    DateParamValue := {?DateParam};

{Table.DateField} = DateParamValue;

 

The date parameters will now default to the current date.


Viewing all articles
Browse latest Browse all 9146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>