Skip to Content
avatar image
Former Member

Function module for first day and last day for company code

Hi All,

Is there a single function module, which will return the Last day in Current period, First Day in previous period for a given company code and PERIV field.

I checked GET_CURRENT_YEAR, LAST_DAY_IN_PERIOD_GET and

FIRST_DAY_IN_PERIOD_GET. But I need a function module which will return all the these values based on BUKRS and PERIV values.

Thanks,

BK

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 04, 2017 at 08:45 AM

    Hi,

    Can you write a z function module ( like a wrapper) for all the different function modules with required export parameters?

    Sathya

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 04, 2017 at 01:30 PM

    You could call in sequence T001_READ, T009_READ and DATE_TO_PERIOD_CONVERT in a wrapper Method or FM. Else did you perform some where used search on last FM with some luck there is a tool in your version?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 11, 2017 at 08:28 AM

    Thanks a lot.. I used the same FM's that I mentioned and it served my purpose.

    Regards,

    BK

    Add comment
    10|10000 characters needed characters exceeded