Skip to Content
avatar image
Former Member

MIRO Document to have different number ranges for a particular document type

Hi ,

I have a requirement to have a different MIRO document number series for a particular PO document Type.

The rest of the MIRO document can be posted in the current running series.

Is it possible to have a z Table with SM30 Authorization with the following columns


And in the MIRO standard program modify the BADI Invoice_update to pick the number range from the Z table when the particular PO Type ( with a distinct series) is entered and at the time of saving the MIRO to use number range from this table.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 31, 2017 at 08:23 AM

    Hi Kumaresh,

    Check this note 1156325

    Definition name: INVOICE_UPDATE

    Usage: The BAdI 'INVOICE_UPDATE' was only designed to execute checks during document entry or document posting in transaction MIRO.

    Therefore, it has only import parameters. There are no export parameters. This means that the data changed in the BAdI is not processed further in the standard program MIRO. More information Note that no system messages can be sent in the methods. The method CHANGE_AT_SAVE is an exception. A system message can be issued in this method if the exception ERROR_WITH_MESSAGE is triggered at the same time. DO NOT ENTER THE STATEMENTS "COMMIT-WORK" or "ROLLBACK" SINCE THIS CAN CAUSE DATA INCONSISTENCIES ON THE DATABASE. ____________________________________________________

    I think you can try this user exit LMR1M003 for MIRO number range. Check note 452127.


    Add comment
    10|10000 characters needed characters exceeded