\n'; document.write(barra); } } changePage();
Função para cálculo do próximo dia útil : Z_POSTING_DERIVE
Parâmetros de entrada da função :
v_empresa = empresa
v_nucleo = unidade contábil
v_date_ultimo = último dia do mês
Call
Function 'Z_POSTINGDATE_DERIVE'
exporting
bukrs = v_empresa
profit_center = v_nucleo
posting_date = v_date_ultimo
correct_option = '+'
importing
next_working_date = i_z13fit046-dtproc
fiscal_variant = v_fiscal_variant
original_period = v_original_period
new_period = v_new_period
original_year = v_original_year
new_year = v_new_year
diff_periods = v_diff_periods
exceptions
no_calids = 1
fail = 2
invalid_data = 3
other = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.