Data: w_days TYPE i,
P_date type sy-datum.
IF wa_bsik-bukrs = 'SEPC'.
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
EXPORTING
beg_da = wa_bsik-zfbdt
end_da = p_date
IMPORTING
no_cal_day = w_days
EXCEPTIONS
dateint_error = 1
OTHERS = 2.
ELSE.
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
EXPORTING
beg_da = wa_bsik-budat
end_da = p_date
IMPORTING
no_cal_day = w_days
EXCEPTIONS
dateint_error = 1
OTHERS = 2.
endif.
No comments:
Post a Comment