Skip to Content

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

ABAP routine for loading data of current month in InfoPackage

Hello experts,

I want to load data of current month. Therefore I implemented the following ABAP-Routine for field 0CALDAY in the InfoPackage's data selection:

data: lv_datum_l like sy-datum,

lv_datum_h like sy-datum.

concatenate sy-datum(6) '01' into lv_datum_l.

call function 'RP_LAST_DAY_OF_MONTHS'

exporting

day_in = sy-datum

importing

last_day_of_month = lv_datum_h.

l_t_range-sign = 'I'.

l_t_range-option = 'BT'.

l_t_range-low = lv_datum_l.

l_t_range-high = lv_datum_h.

But function 'RP_LAST_DAY_OF_MONTHS' cannot be found!

Any other suggestions for getting last day of current month?

regards

hiza

Former Member
Former Member replied

Hi,

you can use this FM SLS_MISC_GET_LAST_DAY_OF_MONTH to get the last day of the month..

Regards,

Siva

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