cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fixed -From date and Variable - To date in Dynamic Date variant -

former_member343632
Participant
0 Kudos
2,843

Hello All,

I am trying to create a dynamic variant for below requirement.

From date - fixed (always 01.10.2021)

To date - Current Month + 24 months

Tried few option provided in dynamic option, but still couldn't able to achieve.

Any suggestions?

Thanks,

Prabhat

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member244427
Active Contributor

Hello,

Have you tried this option

If you do not see this option available search for a suitable note as per your system to get it.

But, having fixed from date and variable to date seems difficult unless to and From dates are separate fields, you might have to use expert Rupesh's solution with TVARV

You can check for starters:

2532712 - MC90: new select-options for release horizon (dynamic date calculation)

HNY

Abhishek

rupesh_brahmankar
Active Contributor

Hello,

Yes you can do that, please refer here my example for transaction like /SAPAPO/MC90 where you have from and to date in selection.

In SM30 TVARV table create fix date variant and assign it in dynamic variant screen with selection variable T: Table Variable from TVARVC and To date selection variable = DD: Dynamic Date Calculation (Local Date).

Please refer below image.

Also refer SAP note on it 2532712 - MC90: new select-options for release horizon (dynamic date calculation)

Best Regards,

R.Brahmankar

former_member343632
Participant
0 Kudos

Thanks Brahmankar.

Your suggestion is working as mentioned.

To update you - I am looking the "To" date as Current Month + 24 Months (like end of mth+yy months ---31.12.2019+24 months)

Regards,

Prabhat

rupesh_brahmankar
Active Contributor

Hello,

There is no option for selection like from current month to number of months.

You have to use

‘Current Date +/- ??? days’ so it would not be a month specific.

or use TVARVC with date calculation using update program , please refer this discussion for create own program to uodate date in TVARVC

https://answers.sap.com/questions/5499471/current-calender-month-in-varient.html

If you search it you will get lot of discussions on it.

Best Regards,

R.Brahmankar