Application Development and Automation 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: 
Read only

ageing bucket

Former Member
0 Likes
1,061

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'.

5 REPLIES 5
Read only

0 Likes
1,029

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

Read only

0 Likes
1,029

i used FIMA_DAYS_AND_MONTHS_AND_YEARS and it works.

how to get 1st 30days , next 30days data in output

Read only

0 Likes
1,029

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

Read only

0 Likes
1,029

hi jorg wulf,

could u please elaborate explanation..

thanks & regards,

srikanth

Read only

0 Likes
1,029

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