Skip to Content
0
Feb 24, 2009 at 03:12 PM

BAPI_ALM_ORDER_MAINTAIN not possible to link objects to multiple operations

183 Views

I have serviceorders that I want to copy using the bapi BAPI_ALM_ORDER_MAINTAIN

it works fine but I can not link the objects to the corresponding operations. it works with 1 object to 1 operation but when I have multiple operations linked to the same object I get error E124.

I have traced the error back to the inlcude LIBAPI_ALM_ORDER_PROCESSINGF17

at line 354 th next code starts

* Check whether OBZAE is already linked to any operation
      loop at lt_OPROL_BI  transporting no fields
        where  AUFPL = ls_OPROL-AUFPL
        and    OBKNR = ls_OPROL-OBKNR
        and    OBZAE = ls_OPROL-OBZAE.
        exit.
      endloop.
      if sy-subrc is initial.
        MESSAGE e124(iwo_bapi2)
           WITH ls_oprol-obzae INTO mess.
        bapi_message.
        RAISE error_in_processing.
      endif.

Very strange that a bapi has different rules for processing that a serviceorder has where I can link an object to multiple operations ?

Is there a way to link multiple operations to the same object automatically ?

kind regards

arthur de smidt