Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

need Function Module Name

CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'

EXPORTING

i_date_old = SY-DATUM

IMPORTING

E_DATE_NEW = T.

Using this function module name i calculated the previous month last date i want previous month first date

so for that which function module can i use...

Thanks,

Thiru.,

Tags:
Former Member
Former Member replied

Hi,

Just copy paste the below code and check

parameters : date1 like sy-datum.

data: date2 like sy-datum.

CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'

EXPORTING

I_DATE_OLD = date1

IMPORTING

E_DATE_NEW = date1.

date2 = date1.

date2+6(2) = '01'.

write:/ 'First date is :', date2.

write:/ 'Last date is :',date1.

Regards,

Surinder

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question