cancel
Showing results for 
Search instead for 
Did you mean: 

function module to calculate contract items delivery date.

letlapa_albert
Participant
0 Kudos

Hi Gurus,

  • I am looking for a function module that calculates contract items delivery date.
  • Note : When creating a contract,we specified the delivery days:e.g :6 days.  I want the contracts delivery days to exclude the non working days(weekends and holidays),the delivery days must be the actual working days

Kind regards

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member208675
Active Contributor
0 Kudos

Hi,

Use FM: DATE_CONVERT_TO_FACTORYDATE.

It will give you exact number of working days. It will ease your efforts to calculate contract item delivery date.

Regards,

Former Member
0 Kudos

Hi Vinay,

Can I use this to exclude non working days from a contract delivery days?

Note that the contracts delivery days are created/enterd into the contract when creating a contract,so those specified days in the contract must then be linked to the factory calendar so as to excluded non working days.

former_member208675
Active Contributor
0 Kudos

Hi,

Yes, FM will exclude non working days.

Regards,

Former Member
0 Kudos

Hi Vinay,

The function module should exclude non-working days and add them to the working days calendar.

for instance :

  • A contracts item has a specified delivery time of 6days in the contract.
  • A shopping cart is created with that item on the 25.09.2013.
  • The delivery date must not be the 30.09.2013,Itr must be the 02.10.2013.

This means that the two non-working days of the 28.09.2013 and 29.09.2013 are excluded and added to the overal delivery date.

The requirement requires that non working days need to be added to the overall working days to make it the total of 6days soecified in the contract.

I hope the cenario helps.

Please help.

Regards.

soumya_ranjan_patel
Participant
0 Kudos

Hii Lethabo Kgatla,

Dis you get the Answer, I am facing the same problem too. If you have the solution please share with me.

Thanks in advance.

Soumya Ranjan Patel.

former_member213204
Participant
0 Kudos

Please check the below link,

https://scn.sap.com/thread/1913934