Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic date range in the TVARV table

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question