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: 

Dynamic date range in the TVARV table

former_member343632
Participant
0 Kudos

Hi,

I have read many posts on this issue but couldn't solve so writing this.

I need to have  a ABAP program which will update the TVARVC table for the variable following the 4-4-5 calendar.

The low value should be -- first date of the current period

The High value should be -- last date of the current period

What should be the logic of the ABAP program to get this.

Confusion is that in 4-4-5 calendar , first period will have  4 weeks,2nd period will have again 4 weeks but in the third period there will be 5 weeks so the duration of the period is changing and so accordingly the first date and last date will also have different duration.

Similarly we need to get the first date and last date of past 1 period and future 1 period.

Please let me know if you have any suggestions/questions...?

Thanks in advance for your help.

Regards,

Prabhat

1 REPLY 1

former_member343632
Participant
0 Kudos

Since I didn't get any reply so marked this question as assumed answered.

If i solve this issue,will post the solution here.