Skip to Content
avatar image
Former Member

Billing Creation/Cancellation Issue due to accounting interface error

Hi,

Standard SAP process always allows to cancel invoice even after period closing. .There is a requirement related to Invoice Creation & Cancellation ,for any acounting interface error( period closing) there should be warning or error message triggerd.ICould you please share valuable suggestion.

Regards,

Shachi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 25, 2013 at 11:48 AM

    Hi,

    you can use the Function module-EXIT_SAPLV60A_002 and ask your Abaper to write the logic based on the erdat if the billing month is previous do not allow to cancel the invoice.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 26, 2013 at 02:21 PM

    Hi shachi johari,

    it is not fully clear what is done, and what is the requirement.

    In a standard cancellation process with transaction VF11 the billing date VBRK-FKDAT is copied from the original invoice.

    This date is taken as the document date of the accounting document.

    If you do not modify the date and the period is closed then for the cancellation the accounting document can not be created.

    There is an information message "document saved - no accounting document created" issued at the bottom of the screen.

    Then the user can either have the period opened, or change the billing date manually in VF02.

    Why and where should be an additional warning message be issued?

    The problem in cancellation is that with the new cancellation procedure (see note 1259505) no user-exits are available. Even if you force the old cancellation (note 339928) then the question is what do you want to achieve with a user-exit?

    The one mentioned (EXIT_SAPLV60A_002) is as far as I know executed in the creation phase with transaction VF01, not in case of cancellation with VF11.

    If only the date (VBRK-FKDAT) should be checked, then I would suggest to use a requirement in VOFA in section "Cancellation" - Field "Copying requirements" (V_TVFK-GRBED_S) for the invoice type you cancel. Therein you could check if VBRK-FKDAT is equal to current date sy-datum.

    More complicated would be if you want to post in the accounting period which is closed.

    Standard copy requirement 29 is available for a check if the accounting document of the original invoice is cleared already.


    But for a check billing date in the past - accounting period closed - something else would have to be defined.


    However it remains unclear, what for is the requirement? The standard information message is in my opinion already enough.


    Best regards,
    Tobias



    Add comment
    10|10000 characters needed characters exceeded

    • Hi shachi johari,

      in such general form this is not possible.

      The problem is, that the posting status for transfer to accounting, field VBRK-RFBSK, is determined during the saving process.

      If the field remains blank " " then you have the status "Error in Accounting Interface".

      But the invoice document itself will be saved, only the accounting document is not yet created.

      Usually you want to create an invoice, so the standard behavior does not prevent the saving to the database. To release to accounting, you have then the possibilities described in my previous reply. Either change the billing date or open the period.

      Best regards,

      Tobias