Fonction SAP BAPI_MATERIAL_GETLIST - Supply List of Materials for Search Criteria Transferred

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAXROWS BAPIF4A-MAX_ROWS I 4 0 X Maximum number of materials to be selected

Paramètre Reférence Long. Facultatif Description
DISTRIBUTIONCHANNELSELECTION BAPIMATRADC 7 X Selection options for distribution channel
MANUFACTURERPARTNUMB BAPIMATMFRPN 50 X Manufacturer and manufacturer part number
MATERIALSHORTDESCSEL BAPIMATRAS 83 X Selection options for material description
MATNRLIST BAPIMATLST 140 X List of material numbers with material description
MATNRSELECTION BAPIMATRAM 39 X Selection options for material number
PLANTSELECTION BAPIMATRAW 11 X Selection options for plants
RETURN BAPIRET2 548 X Return Parameter
SALESORGANISATIONSELECTION BAPIMATRASO 11 X Selection options for sales organization
STORAGELOCATIONSELECT BAPIMATRAL 11 X Selection options for storage locations

Functionality
For the selection parameters specified, this method supplies a list ofmaterials with material description for the logon language.

Example
Selection of ALL given materials in plant 0001, storage location 0001or storage location 002:
MATNRSELECTION : 'I', 'CP', '*' , ' '
PLANTSELECTION : 'I', 'EQ', '0001', ' '
STORAGELOCATIONSELECT : 'I', 'EQ', '0001', ' '
'I', 'EQ', '0002', ' '
Selection of all given materials in plant 0001 and whose descriptionbegins with 'XY':
MATERIALSHORTDESCSEL : 'I', 'CP', 'XY*' , ' '
PLANTSELECTION : 'I', 'EQ', '0001', ' '

Notes
Messages are returned in the parameter RETURN. The return codes andtheir meanings are contained in this parameter documentation.
The relationship between the selection parameters follows this schema:

  • A material is selected if it satisfies the selection criteria for
  • material number (MATNRSELECTION) OR for the material description(MATERIALSHORTDESCSEL) for the logon language.
    • Additionally, it must comply with the selection criteria for plant
    • (PLANTSELECTION) and storage location (STORAGELOCATIONSELECT) ifspecified
      • or it has the manfacturer part number specified
      • (MANUFACTURERPARTNUMB) - in this case the plant/storage location isignored.

        Description
        You use this parameter to limit the number of materials selected.

        Default
        0 = All materials found are returned.

        Description
        You use this parameter to transfer selection criteria for thedistribution channel (100 lines max.).
        INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
        INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

        Description
        This parameter is used to determine a material from thenumber of a manufacturer and manufacturerpart number.
        To use this parameter for selection, activate the corresponding indexin the table MARA.

        Value range

        • The field MANU_MAT must contain the manufacturer part number.

        • The field MFR_NO must contain the number of a manufacturer.

        • A value must always be entered in both fields. It is not possible tosearch generically.

          Description
          You can use this parameter to transfer selection criteria for thematerial description (100 lines max.). The system searches fordescriptions in the logon language.
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

          Description
          List of material numbers with material description.
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN

          Description
          You use this parameter to transfer selection criteria for the materialnumber (100 lines max.).
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

          Description
          You use this parameter to transfer selection criteria for the plant(100 lines max.).
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

          Description
          INCLUDE STRUKTUR OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN

          Value range
          Type,,ID,,Number,,Message
          W,,MM,,354,,More entries exist
          E,,HV,,026,,Invalid SIGN entry
          E,,HV,,027,,Invalid OPTION entry
          E,,MM,,352,,No internal material number could be found for
          ,,,,,,the manufacturer part number
          E,,MM,,353,,No entries could be determined for the selection
          ,,,,,,criteria specified

          Description
          You use this parameter to transfer selection criteria for the salesorganization (100 lines max.).
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

          Description
          You can use this parameter to transfer selection criteria for thestorage location (100 lines max.).
          INCLUDE DE_DOKU OBJECT DOKU ID TX LANGUAGE EN
          INCLUDE AUFBAU_SEL OBJECT DOKU ID TX LANGUAGE EN

910874Supporting ABAP Conversion Exits