09-25-2008 12:01 PM
Hi all,
The no of days in a month should be equal to the total no of days in all the weeks in that month. But i was not able to get that. This scenario comes when the same cal week is involved in two different months. Can anyone explain how to achieve this.
09-25-2008 12:04 PM
Hello,
Try FM NUMBER_OF_DAYS_PER_MONTH_GET
See if firs ur requirements.
-Rajat
09-25-2008 12:04 PM
Hello,
Try FM NUMBER_OF_DAYS_PER_MONTH_GET
See if firs ur requirements.
-Rajat
09-25-2008 12:08 PM
there is a stock on hand field which is used in the calculation for inventory carrying cost. the inventory carrying cost for a week/month is calculated using the stock on hand and no of days in that month. So in the report the total inventory carrying cost for all the weeks in that month should match with the monthly report carrying cost values which uses no of days as 28/30/31 depending on the month. But they are not matching.
I require your valuable inputs as to how to achieve this.
09-25-2008 12:04 PM
Hi,
you may use the function module
NUMBER_OF_DAYS_PER_MONTH_GET
IMPORTING
VALUE(PAR_MONTH) LIKE T009B-BUMON -
> Give Month
VALUE(PAR_YEAR) LIKE T009B-BDATJ -
> Give Year
EXPORTING
VALUE(PAR_DAYS) LIKE T009B-BUTAG
Regards,
Anirban
09-25-2008 12:11 PM
09-25-2008 12:28 PM
01-30-2009 3:13 PM