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: 

Global class for date calculations

Former Member
0 Kudos

Are there any global classes for date calculations. i.e. date in future, date in past, etc.

I'm looking for something that would be similar to function modules RP_CALC_DATE_IN_INTERVAL and others.

Thanks

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

Check class CL_HRPT_DATE_TOOLS

Regards,

Naimesh Patel

Former Member

I browsed around and found this beauty.

CL_HRPAD_DATE_COMPUTATIONS

It has 19 versatile static methods.

Tip to other Forum members:

Try using table SEOCLASSTX to search for possible classes.

I've considered it a shame that SAP doesn't provide a better way to help new users find appropriate classes. There's 67,000 global classes and hardly any documentation about them. Amazing.

The other thing I find amazing is that when I try the "where used" tool, I get a 'not found' 99% of the time. Amazing.

Oh well, that's enough of my minor rant.

uwe_schieferstein
Active Contributor

Hello Ed

Thanks for your suggestion. Perhaps the following two classes (if available on your system) might be useful as well:

CL_RECA_DATE
CL_RECA_DATE_SLICES

Regards

Uwe