SAP Function BAPI_EQUI_CHANGE - PM BAPI: Change Equipment

Parameter Reference Type Length Default Optional Text
DATA_FLEET BAPI_FLEET u 424 X Vehicle-Specific Data
DATA_FLEETX BAPI_FLEETX u 50 X Flag Structure Belonging to BAPI_FLEET (for Change BAPIs)
DATA_GENERAL BAPI_ITOB u 815 General Data for Technical Objects
DATA_GENERALX BAPI_ITOBX u 77 Flag Structure for BAPI_ITOB for Fields to be Copied
DATA_SPECIFIC BAPI_ITOB_EQ_ONLY u 674 Equipment-Specific data
DATA_SPECIFICX BAPI_ITOB_EQ_ONLYX u 36 Flag Structure for BAPI_ITOB_EQ_ONLY for Fields to be Copied
EQUIPMENT BAPI_ITOB_PARMS-EQUIPMENT C 18 Number of Equipment to be Changed
VALID_DATE BAPI_ITOB_PARMS-INST_DATE D 8 SY-DATUM X Date for Validity of an Equipment Usage Period Relevant Change
VALID_TIME BAPI_ITOB_PARMS-INST_TIME T 6 SY-UZEIT X Time for Validity of a Equipment Usage Period Relevant Change

Parameter Reference Type Length Text
DATA_FLEET_EXP BAPI_FLEET u 424 Vehicle-Specific Data
DATA_GENERAL_EXP BAPI_ITOB u 815 General Data for Technical Objects
DATA_SPECIFIC_EXP BAPI_ITOB_EQ_ONLY u 674 Equipment-Specific data
RETURN BAPIRET2 u 548 Return Parameter

Functionality
This module is used for changing an existing piece of equipment.
INCLUDE 'ITOB_BAPI_HINTS' OBJECT DOKU ID TX LANGUAGE E
Special notes on the module BAPI_EQUI_CHANGE:

  • If the changed piece of equipment has sub-equipment, the module supports
  • the standard transfer of inheritance-relevant data.
    • You can use the DATA_FLEET parameter to include vehicle-specific data.
    • This data is returned to the caller via the DATA_FLEET_EXP parameter.
      IF &[SWITCH]EAM_SFWS_SC2& = 'X'.
      If you call the BAPI to change the material and/or serial number of theequipment, a Commit Work and Wait must be run after each BAPIcall.
      This special case is a direct master data change with master datafunctions. It should not be confused with a Material to Materialposting that can be done during the document assignment of serializedequipment.
      ENDIF.

      Description
      Output structure for vehicle-specific data.
      INCLUDE BAPI_ITOB OBJECT DOKU ID TX
      INCLUDE 'ITOB_BAPI_DATA_GENERAL_EXP' OBJECT DOKU ID TX LANGUAGE EN

      Default
      INCLUDE 'ITOB_BAPI_DATA_SPECIFIC_EXP' OBJECT DOKU ID TX LANGUAGE EN

      Default
      INCLUDE BAPI_RETURN OBJECT DOKU ID TX

      Default

      Description
      This structure contains vehicle-specific data that can be created bycalling up a BAPI.
      INCLUDE BAPI_ITOB OBJECT DOKU ID TX

      Description
      Identifies the change-relevant parameters. There is a 'selectionparameter' for every parameter in DATA_FLEET. Only the fields markedhere with X are used for changing the data.
      INCLUDE 'ITOB_BAPI_DATA_GENERAL' OBJECT DOKU ID TX LANGUAGE EN

      Default
      INCLUDE 'ITOB_BAPI_DATA_FLAGX' OBJECT DOKU ID TX LANGUAGE EN

      Default
      INCLUDE 'ITOB_BAPI_DATA_SPECIFIC' OBJECT DOKU ID TX LANGUAGE EN

      Default
      INCLUDE 'ITOB_BAPI_DATA_FLAGX' OBJECT DOKU ID TX LANGUAGE EN

      Default

      Description
      Number of the equipment to be processed.

      Default

      Description
      If changing the equipment leads to the creation of a new equipment usageperiod, then the date for its validity can be determined using theVALID_DATE parameter.

      Default
      If the VALID_DATE parameter is not maintained, then the validity of thenew equipment usage period is determined using the current system dateSY_DATUM.

      Description
      If changing a piece of equipment leads to the creation of a newequipment usage period, then the time for its validity can be determinedusing the VALID_TIME parameter.
      The date for the validity of the new equipment usage period isdetermined using the VALID_DATE parameter.

      Default
      If the VALID_TIME parameter is not maintained, then the validity of thenew equipment usage period is determined using the current system timeSY_TIME.

745693Change BAPI equipment: Installation position can be changed
687825Change BAPI Equipment: Validity date individually selectable
489696Technical object: Authorization checks in new 4.6C BAPIs