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

Select-option dynamic date on variant

Former Member
0 Likes
2,060

Hello,

Hope you all have answer to this.

Basically, I am trying to setup a variant and I have a slection-option field that accepts the range of dates. So dynamically calculate begin and end date based on the formula below:

DATE: <current date - 7> : <current date - 1>

I did all (well, I think I did!) based on the documentation below:

http://help.sap.com/saphelp_nw2004s/helpdata/EN/c0/980374e58611d194cc00a0c94260a5/frameset.htm

But I am still getting the date as "parameter" field (meaning I am getting only one date) and not a range of date as we see in "select-option".

I'm new to ECC 6.0 and so please help.

Thank you

saplover

Hello,

Hope you all have answer to this.

Basically, I am trying to setup a variant and I have a slection-option field that accepts the range of dates. So dynamically calculate begin and end date based on the formula below:

DATE: <current date - 7> : <current date - 1>

I did all (well, I think I did!) based on the documentation below:

http://help.sap.com/saphelp_nw2004s/helpdata/EN/c0/980374e58611d194cc00a0c94260a5/frameset.htm

But I am still getting the date as "parameter" field (meaning I am getting only one date) and not a range of date as we see in "select-option".

I'm new to ECC 6.0 and so please help.

Thank you

saplover

2 REPLIES 2
Read only

Former Member
0 Likes
1,010

Hi,

I don't think so there has to be some problem with it.

Can you paste the code where you come to know that your select-option value contains only single value and not range of 7 values.

Debug it and send where you are facing a problem

Thanks,

Kartavya

Read only

naimesh_patel
Active Contributor
1,010

In the Variant Save screen:

Against your date field, you will find the Selection Variable and name of the Variable

Select "D" from the dropdown in the "Selection Variable"

In the "Name of the Variable", do F4, Select option "Current date - xxx,current date + yyy"

In the next Popup give XXX = -7 and yyy = -1.

Save the variant.

Regards,

Naimesh Patel