Application Development 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: 

Function module for first day and last day for company code

Bharath84
Participant
0 Kudos

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

3 REPLIES 3

sathyags
Active Participant
0 Kudos

Hi,

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

Sathya

raymond_giuseppi
Active Contributor
0 Kudos

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?

Bharath84
Participant
0 Kudos

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

Regards,

BK