Quantcast
Channel: SCN : Unanswered Discussions - Supply Chain Management (SAP SCM)
Viewing all articles
Browse latest Browse all 5579

Dynamic date range in the TVARV table

$
0
0

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


Viewing all articles
Browse latest Browse all 5579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>