Wednesday, December 31, 2025

ABAP CL_RSAR_FUNCTION class in BW4/HANA

I wrote about the ABAP class CL_RSAR_FUNCTION a long time ago here. In a nutshell it provides a collection of static utility methods for common data transformations and calculations, particularly focused on date and string operations. The methods can be called directly without instantiating the class.

Now in a BW4/HANA based BW system there are few more methods added into the class.

ALPHA                                       ALPHA conversion

FISCPER_FISCPER3                       Date -> Fiscal Period 3

GET_LOGICAL_SYSTEM                 Get Logical System

GET_SOURCE_SYSTEM_ID             Get Source System ID

L_TRIM                                      Left Trim (string)

QUARTER_QUARTER1                    Month -> Quarter1

RTRIM                                        Right Trim (string, string)

SECONDS_BETWEEN_TIMESTAMPS Difference between 2 timestamps in seconds

SECONDS_TO_DAYS                     Convert seconds to days

SECONDS_TO_HOURS                   Convert seconds to hours

SECONDS_TO_MINUTES                Convert seconds to minutes

SET_REQUEST                             Set request

SET_REQUEST_CLOUD                  Set request for cloud based BW4

UTC_LONG_TO_LOCAL_DATE         UTC Timestamp -> Local Date

UTC_LONG_TO_LOCAL_TIME          UTC Timestamp -> Local Time

UTC_SHORT_TO_LOCAL_DATE        UTC Timestamp -> Local Date

UTC_SHORT_TO_LOCAL_TIME        UTC Timestamp -> Local Time


No comments: