02-18-2014 1:45 PM
Hi,
I need to park vendor invoices. Sometimes the period is closed. Then I need to get the next open period. Is there some functionality like that?
So far I found: BAPI_COMPANYCODE_GET_PERIOD and FI_PERIOD_DETERMINE but nothing to get the next open period?
Thanks, Vanessa
02-18-2014 2:01 PM
Hi,
Try with "ACEPS_OPEN_PERIOD_DETERMINE".
Thanks & Regards
Bala Krishna
02-18-2014 2:02 PM
If DATE_TO_PERIOD_CONVERT gives a closed period, use of LAST_DAY_IN_PERIOD_GET, ADD 1 to date and DATE_TO_PERIOD_CONVERT you should get next period.
Raymond,
Regards
02-18-2014 2:09 PM
Hi,
call function 'MR_PERIOD_DETERMINE'
exporting
i_bukrs = 'UM'
i_budat = dat_ord
exceptions
invalid_posting_period = 1
marv_no_entry = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.