Creating number range objects for BAPI error handling

You can configure the correct assignment of error message numbers on transactions you send from Maximo® to SAP with BAPI programs. To configure the assignment of error messages, you must add a Number Range Object.

About this task

Procedure

  1. In the SAP Easy Access menu, expand the Tools > ABAP Workbench > Development >Other Tools >Number Ranges and select Enter.
  2. Specify ZMXESERROR in the Object field, and click Create.
  3. Specify the following values and save your entries:
    Table 1. Field values for number range objects

    Field

    Value

    Short Text

    Transaction Number

    Long Text

    Transaction Number for BAPI Errors

    Number length domain

    NUM10

    Warning %

    2.0

  4. Click Yes.
  5. Specify the name of the package and save.
  6. Click Continue.
  7. Click Number Ranges.
  8. In the Transaction Errors for BAPI Errors window, click Intervals. The Maintain Number Range Intervals window appears.
  9. Click Interval and specify the following values:
    Table 2. Interval field values

    Field

    Value

    Interval No

    01

    From Number

    0000000001

    To Number

    9999999999

    Current® Number

    value = maximum value of ZBC_BAPI_ADMIN.MINDEX + 1

    To find the value of the Current Number field, complete the following steps:

    1. Type SE16 in the field of the SAP Easy Access menu.
    2. Select the ZBC_BAPI_ADMIN table.
    3. Sort the output by MINDEX to determine the last number assigned.
    4. Increase this value by 1 and use the new value as the current number. If there are no numbers in the ZBC_BAPI_ADMIN table yet, set the current number to 1.
  10. Click Insert and Save.

What to do next

For more information about SAP transaction codes used for this integration, see the IBM® Maximo Enterprise Adapter for SAP Applications 7.6.1 System Administrator Guide.