Hi,
I need to create a object to bring recent 3 of data from a date object.
Actual Data
Report_Year_Month |
---|
201212 |
201301 |
201302 |
201303 |
201304 |
201305 |
201306 |
201307 |
Expecting
Recent 3 Months |
---|
201305 |
201306 |
201307 |
I tried to get hte expected by floowing way of no use.
Recent 3 Month==> add_months(to_date(Report_Year_Month ,'YYYYMM'),-1)
What i am getting is "201305"
Please give some sugessions to get recent 3 months.
Environment BO XI R3
Thanks.