SAP Function /OSP/GETDATE_MONTHDAY - This fm will accept day and calculate the nearest start date of the job

Parameter Reference Type Length Default Optional Text
IV_DAY_OF_MONTH /OSP/DT_DAYOFMONTH b 1 1 X Duration period (in weeks) for a batch job
IV_START_DATE /OSP/DT_DATE D 8 X Date and Time, Current (Application Server) Date
IV_TIME /OSP/DT_TIME T 6 '23:59:00' X Time

Parameter Reference Type Length Text
EV_JOB_START_DATE /OSP/DT_DATE D 8 Date and Time, Current (Application Server) Date

Exception Text
INVALID_DAY_OF_MONTH Invalid day of month