Skip to Content

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

Calculating weeks

Hi Experts,

Please see the code for my scenario:

  • Calculating the total no of week

l_diff_week = l_end_week - l_start_week.

l_total_week = l_diff_week / 7.

In l_total_week, i am calculating the total weeks. now if the diiference is a multiple of 7, I will get correct data.

How can I get the remainder?

eg.

l_total_week = 17/7 I want 3 weeks instead of 2.

Plz help me.

Regards

krishan

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