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: 

FM->Geet week

Former Member
0 Kudos

Need the FM for the week:

When i pass the should.

i want to get the total no of weeks and days.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please explain your requirement in detail..It's not clear..

THanks,

Naren

Former Member
0 Kudos

if what you're trying to do is enter a begin date and an end date and get the number of weeks and days between you could write:

v_days = v_endda - v_begda.

v_weeks = v_days / 7. ---Make sure v_weeks is integer and round down.

v_remain_days = v_days - (v_weeks * 7)

write: / 'total weeks:' , v_weeks.

write: / 'total days:' v_remain_days.

Warren

0 Kudos

Hi Priya,

you can use GET_WEEK_INFO_BASED_ON_DATE.

regards,

Mahesh

Former Member
0 Kudos

TRY THIS FM

CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'

EXPORTING

DATE = I_EKET-EINDT

IMPORTING

WEEK = OUTWEEK

  • MONDAY =

SUNDAY = I_EKET-EINDT.

IF YOU PASS THE DAY (I_EKET-EINDT) IT WILL GIVE THE WEEK INFORMATION AND SUNDAY(1ST DAY).

REGARDS

SHIBA DUTTA

Former Member
0 Kudos

Hi,

Use the FM:

<b>HR_IE_NUM_PRSI_WEEKS</b>

Return the number of weeks between two dates.

Hope it helps.

Regards,

Sipra