SAP Function BAPI_EQMT_MODIFY - Change equipment

Parameter Reference Type Length Default Optional Text
EQUILOCATION BAPI_ILOA u 71 X Structure for equipment ILOA data
EQUILOCATION_X BAPI_ILOA_X u 8 X Flag structure for ILOA data to be changed
EQUIMASTER BAPI_EQUI u 315 X Structure for equipment EQUI data
EQUIMASTER_X BAPI_EQUI_X u 11 X Flag structure for EQUI data to be changed
EQUIPMENT BAPI_EQUI-EQUIPMENT C 18 Number of equipment to be changed
EQUISALES BAPI_EQSD u 38 X Structure for equipment sales data
EQUISALES_X BAPI_EQSD_X u 6 X Flag structure for sales data to be changed
EQUITEXT BAPI_EQKT u 40 X Structure for equipment EQKT data
EQUITEXT_X BAPI_EQKT_X u 1 X Flag structure for EQKT data to be changed
EQUITIME BAPI_EQUZ u 7 X Structure for equipment EQUZ data
EQUITIME_X BAPI_EQUZ_X u 2 X Flag structure for EQUZ data to be changed
INT_ALL_X BAPI_EQPRM-INDICATE C 1 X Indicator for the transfer of all data

Parameter Reference Type Length Text
EQUILOCATION BAPI_ILOA u 71 Structure for equipment ILOA data
EQUIMASTER BAPI_EQUI u 315 Structure for equipment EQUI data
EQUISALES BAPI_EQSD u 38 Structure for equipment sales data
EQUITEXT BAPI_EQKT u 40 Structure for equipment EQKT data
EQUITIME BAPI_EQUZ u 7 Structure for equipment EQUZ data
RETURN BAPIRETURN u 452 Structure for Return Parameters (Code, Text)

Functionality
You can use this method to change a piece of equipment. All data forthe piece of equipment to be changed can be found in the followingstructures:

  • EQUIMASTER

  • Structure with the master data (EQUI) of the piece of equipment
    • EQUITIME

    • Structure with the usage periods (EQUZ) of the piece of equipment
      • EQUITEXT

      • Structure with the short texts (EQKT) of the piece of equipment
        • EQUILOCATION

        • Structure with the location data (ILOA) of the piece of equipment
          • EQUISALES

          • Structure with the sales data (ILOA) of the piece of equipment
            The indicator INT_ALL_X shows whether all data fields should beconsidered for the updates (INT_ALL_X = 'X') or just those in thecorresponding flag structures that are indicated as being relevant forupdating (INT_ALL_X = ' ').

            Example
            Situation:
            In the structure EQUIMASTER the data fields EQUICATGRY, EQUITYPE andINVENTORY are assigned values and all other fields are blank.
            IN the corresponding flag structure EQUIMASTER_X the flags QUICATGRY,EQUITYPE and MANFACTURE are set to 'X' and all other flags are blank
            (' ').
            Case distinction:

            • If the indicator INT_ALL_X is transferred blank, the data fields

            • EQUICATGRY and EQUITYPE are copied (INVENTORY remains unchanged!)
              the previous content of MANUFACTURE deleted.
              from the structure EQUIMASTER.
              • If the indicator INT_ALL_X is set to 'X', all data fields are
              • considered and the flag structures are therefore ignored. For thestructure EQUIMASTER, this means that the data fields
                EQUICATGRY, EQUITYPE and INVENTORY are copied
                and all other fields of the structure are deleted.

                Notes
                Messages are returned in the parameter RETURN.

                Description
                This structure contains all equipment location data that can be createdusing a BAPI call. The data is part of the database table ILOA.
                Note
                The structure BAPI_ILOA does not include the following data:

                • Location data from table ILOA. Structure BAPI_EQHR is provided for
                • location data.
                  • Sales data from table; Structure BAPI_EQSD is provided for sales data.
                  • Default
                    None.

                    Description
                    This structure contains all equipment master data that can be createdusing a BAPI call. The data is part of the database table EQUI.

                    Default
                    None.

                    Description
                    This structure contains all equipment sales/customer data that can becreated using a BAPI call. The sales data is part of database tableILOA, the customer data part of table EQUZ.

                    Maintenance
                    None.

                    Description
                    This structure contains all equipmet text data that can be createdusing a BAPI call. The data is part of the database table EQKT.

                    Default
                    None.

                    Description
                    This structure contains all equipment usage data that can be createdusing a BAPI call. The data is part of the database table EQUZ.
                    Note
                    The structure BAPI_EQUZ does not contain the following data:

                    • The hierarchy data from table EQUZ; structure BAPI_EQHR is provided for
                    • the hierarchy data.
                      • The sales data from EQUZ; structure BAPI_EQSD is provided for the sales
                      • data.

                        Default
                        None.

                        Description
                        INCLUDE PM_TX_BAPI_RETURN OBJECT DOKU ID TX

                        Description
                        This structure contains all equipment location data that can be createdusing a BAPI call. The data is part of the database table ILOA.
                        Note
                        The structure BAPI_ILOA does not include the following data:

                        • Location data from table ILOA. Structure BAPI_EQHR is provided for
                        • location data.
                          • Sales data from table; Structure BAPI_EQSD is provided for sales data.
                          • Default
                            None.

                            Description
                            This structure contains all equipment master data that can be createdusing a BAPI call. The data is part of the database table EQUI.

                            Default
                            None.

                            Description
                            Number that implicitly identifies the piece ofequipment to be changed.

                            Default
                            None.

                            Description
                            This structure contains all equipment sales/customer data that can becreated using a BAPI call. The sales data is part of database tableILOA, the customer data part of table EQUZ.

                            Maintenance
                            None.

                            Description
                            This structure contains all equipmet text data that can be createdusing a BAPI call. The data is part of the database table EQKT.

                            Default
                            None.

                            Description
                            This structure contains all equipment usage data that can be createdusing a BAPI call. The data is part of the database table EQUZ.
                            Note
                            The structure BAPI_EQUZ does not contain the following data:

                            • The hierarchy data from table EQUZ; structure BAPI_EQHR is provided for
                            • the hierarchy data.
                              • The sales data from EQUZ; structure BAPI_EQSD is provided for the sales
                              • data.

                                Default
                                None.

                                Description
                                This parameter determines whether from the structures copied, allfields or just those that are maintained should be considered.
                                If a parameter contains a value, all fields are considered; this meansthat the previous values are deleted when the field content is empty.

                                Default
                                Default is ' ', meaning that only maintained fields are considered.