Application Development 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: 

How to make the from date blank and to date as current date in variant

Former Member
0 Kudos

Hi,

I want to keep from date as blank and to date as current date in a variant in a SAP non custom program. I am trying to do through DYnamic date selection using selection variable in variant. To date can be set to current date, but I am not able to set (from date) blank.

Thanks

Ram

3 REPLIES 3

Former Member
0 Kudos

Hi,

With SELECT-OPTIONS i dont think you can achieve this.

An option would be to declare two separate parameters for the date field one for FROM and another for TO.

Set the dynamic date for the TO field.

Regards,

Subramanian

Former Member
0 Kudos

Based on the selection I am assuming you are looking for all till the to date. I guess the from cant be blank and have values in the to date. I would suggest to hardcode 01/01/0001 in the from date.

Hope this helps.

Shreekant

Former Member
0 Kudos

Hi Shreekant,

Even though I am hardcoding from date to be 01/01/0001 when I use the Selection variable to use Dynamic date calculation formula

Date - xxx, date + yyy (work days) and I put xxx to be 0 so that I get the same date 01/01/0001, it still takes the from date to be current date. I do not want the from date to be current date but 01/01/0001

Thanks

Ram