Skip to Content

BAPI / FM to find next open period

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 18, 2014 at 02:01 PM

    Hi,

    Try with "ACEPS_OPEN_PERIOD_DETERMINE".

    Thanks & Regards

    Bala Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 18, 2014 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2014 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.