Fonction SAP BAPI_EQMT_GETLISTFORCUSTOMER - Select customer equipment

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMERNO BAPIKNVVKY-CUSTOMER C 10 Customer number
EQUITYPE BAPIEQKT-EQUITYPE C 10 X Object Type
INT_CUSTMODE BAPI_EQPRM-CUSTMODE C 1 'P' X Interpretation of customer number
MATERIALFROM BAPIEQKT-MATERIAL C 18 X Material number (lower interval limit)
MATERIALFROM_EVG BAPIMGVMATNR u 82 X
MATERIALTO BAPIEQKT-MATERIAL C 18 X Material number (upper interval limit)
MATERIALTO_EVG BAPIMGVMATNR u 82 X
SERIALNOFROM BAPIEQKT-SERIALNO C 18 X Serial number (lower interval limit)
SERIALNOTO BAPIEQKT-SERIALNO C 18 X Serial number (upper interval limit)

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Structure for Return Parameters (Code, Text)

Paramètre Reférence Long. Facultatif Description
EQUIPMENTS BAPIEQKT 186 Equipment table

Functionality
This method returns a list of all pieces of equipment for a customer.
Only the pieces of equipment that have the transferred customer number(CUSTOMERNO) maintained in their master data are considered. TheParameter INT_CUSTMODE controls which of the customer fields arecompared.
You also have the option of limiting the selection by the equipmenttype (EQUITYPE), as well as by the material number and serial number(MATERIALFROM, MATERIALTO, SERIALNOFROM, SERIALNOTO).
In the table EQUIPMENT, only the selected pieces of equipments forwhich you have display authorization are returned.

Notes
Notifications are returned in the parameter RETURN.

Description
In the event of an error, this structure can contain the followinginformation:

  • Message type (Field TYPE)

  • Message code (Field CODE)

  • Message text (Field MESSAGE)

  • In the event of no errors, the message type is set to 'S'. Otherwisethe structure is empty.

    Description
    This parameter specifies the number of the customer for whom the listof equipment should be selected.
    A piece of equipment can then only be included in the list if theappropriate customer has already been maintained in its master data.The parameter INT_CUSTMODE controls which of the fields are included inthe comparison.

    Default
    None.

    Description
    This (optional) parameter specifies what equipment type the pieces ofequipment included in the list should have.

    Default
    None.

    Description
    This parameter determines how the customer number transferred in theparameter CUSTOMERNO should be interpreted within the piece ofequipment:

    • 'S' : Interpretated as the current (SD)customer (serial data)

    • 'C' : Interpretated as customer (Sales data)

    • 'E' : Interpretated as the end customer (Sales data)

    • 'P' : Interpretated as the operator (Sales data)

    • All other signs are interpreted as 'P'.

      Technical note
      It is checked according to the interpretation, whether the transferredcustomer number is maintained in one of the following fields of theindividual piece of equipment:

      • EQUI-KUNDE (INT_CUSTMODE = 'S')

      • EQUZ-KUND1 (INT_CUSTMODE = 'C')

      • EQUZ-KUND2 (INT_CUSTMODE = 'E')

      • EQUZ-KUND3 (INT_CUSTMODE = 'P')

      • The piece of equipment can only be included in the selection list ifthis is the case.

        Default
        The default is 'P', meaning that the customer number is interpreted asthe operator.

        Description
        This (optional) parameter specifies what lower interval limit should bevalid for the material numbers of the piece of equipment to beselected.
        The upper interval limit is specified by the parameter MATERIALTO. Ifthis parameter is blank, the upper interval limit will equal the lowerone.

        Default
        None.

        Description
        Parameter for the lower interval limit for the long material number
        This parameter can be used to transfer long material numbers. Themaximum length of these long material numbers is 40 characters.
        To use this parameter, you must set the switch for the business functionLAMA (long material number) in the system.
        The business function LAMA is available as part of the business functionset for DIMP.

        Value range
        Keine

        Default
        Keine

        Description
        This (optional) parameter specifies which upper interval limit shouldbe valid for the material numbers of the piece if equipment to beselected.
        The lower interval limit is specified by the parameter MATERIALFROM. Ifthis parameter is blank, the lower interval limit will equal the upperone.

        Default
        None.

        Description
        Parameter for the upper interval limit for the long material number
        This parameter can be used to transfer long material numbers. Themaximum length of these long material numbers is 40 characters.
        To use this parameter, you must set the switch for the business functionLAMA (long material number) in the system.
        The business function LAMA is available as part of the business functionset for DIMP.

        Value range
        Keine

        Default
        Keine

        Description
        This (optional) parameter specifies which lower interval limit shouldbe valid for the serial numbers of the pieces of equipment to beselected.
        The upper interval limit is specified by the parameter SERIALNOTO. Ifthis parameter is blank, the upper interval limit will equal the lowerone.

        Default
        None.

        Description
        This (optional) parameter specifies which upper interval limi should bevalid for the serial numbers of the piece of equipment to be selected.
        The lower interval limit is specified by the parameter SERIALNOFROM. Ifthis parameter is blank, the lower interval limit will equal the upperone.

        Default
        None.

        Description
        This table returns the list of all pieces of equipment that satisfy theselection criteria.