2013 Feb 11 4:22 AM
hi,
i have implemented customized program for material ageing and getiing o/p in required format. task is to add bucket specifications for period of every 30days.for which i have used FModule: FIMA_DAYS_AND_MONTHS_AND_YEARS, from this i got 'difference days'.
could any one provide me a similar logic to get first 30days data in output from 'difference days'.
hi,
i have implemented customized program for material ageing and getiing o/p in required format. task is to add bucket specifications for period of every 30days.for which i have used FModule: FIMA_DAYS_AND_MONTHS_AND_YEARS, from this i got 'difference days'.
could any one provide me a similar logic to get first 30days data in output from 'difference days'.
2013 Feb 11 4:45 AM
Hi
Use the function module to get day,month,year and no of days in particular month based on inputs
HR_SGPBS_YRS_MTHS_DAYS
2013 Feb 11 4:53 AM
i used FIMA_DAYS_AND_MONTHS_AND_YEARS and it works.
how to get 1st 30days , next 30days data in output
2013 Feb 11 10:25 AM
Maybe i got your requirement wrong, since the answer i see is too simple.
Number_of_30 = difference_days MOD 30
result will be
1 for the first 30 days
2 for the 2nd
...
Regards
Jörg
2013 Feb 11 12:43 PM
hi jorg wulf,
could u please elaborate explanation..
thanks & regards,
srikanth
2013 Feb 11 3:02 PM
Hi,
first, let me apologize for having mixed things up. Obviously, I meant to suggest operation DIV.
i understood, that you already have the age as difference days from FM FIMA_DAYS_AND_MONTHS_AND_YEARS, assumingly from "D.O.B" to SY-DATUM and now you want to know, how many times 30 days has passed.
So my suggestion was to take advantage of a simple division, which woud give you the number of completed 30 days intervals.
Regards - Jörg
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |