Fonction SAP BAPI_MATERIALGROUP_GET_LIST - BAPI Read Material Group(s)/Material Group Description(s)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGUAGE BAPIWWG5_LANGUAGE-LANGU C 1 X Language key
LANGUAGEISO BAPIWWG5_LANGUAGE-LANGU_ISO C 2 X Language according to ISO 639
SHORTDESCRIPTIONFLAG BAPIWWG5_MG_DESCR_SHORT-FLAG C 1 Indicator for Requesting Material Group Descriptions

Paramètre Reférence Long. Facultatif Description
MATERIALGROUPRANGE BAPIWWG5_MATERIAL_GROUP_RANGE 21 BAPI Range Table Material Groups
MATERIALGROUPS BAPIWWG5_MATERIAL_GROUP 9 BAPI Output Table Material Groups
RETURN BAPIRET2 548 X Return Parameters (Event/Error Log)
SHORTDESCRIPTIONS BAPIWWG5_MATL_GROUPS_AND_DESCR 29 X BAPI Output Table - Material Group Descriptions

Functionality
The GetList method

  • uses the intervals or selection templates (for example 'B*') specified
  • in the obligatory range table MaterialGroupRange to selectmaterial groups that are available in the SAP System and
    • checks whether these material groups are available in the SAP
    • System for individual values of the obligatory range tableMaterialGroupRange
      .
      If the MaterialGroupRange table contains no entries, then all
      the base material groups available in the SAP System areselected.
      If the obligatory entry parameter ShortDescriptionFlag
      • is not selected, all the selected material groups MaterialGroups
      • are displayed in the obligatory table,
        • If it is selected,

        • all the selected material groups MaterialGroups are displayed inthe obligatory table, and
          the descriptions of the selected material groups are displayed inthe optional table ShortDescriptions in the languageselected using the language key Language or language key ISO codeLanguageIso.

          Import Parameters
          The following obligatory import parameters must be specified in order toselect material groups and their descriptions:

          • ShortDescriptionFlag and

          • MaterialGroupRange.

          • If the parameter ShortDescriptionFlag is selected (using 'X'),either the language key Language or the language key ISO codeLanguageIso must be entered as well.

            Export Parameters
            The selected material groups are displayed in the obligatory exportparameter table MaterialGroups. If the material group description
            s are also requested using the ShortDescriptionFlag, these aredisplayed in the optional export parameter table ShortDescriptions
            .

            Event/Error logs
            The event/error logs for the method are returned in the obligatoryReturn export parameter.

            Description
            Language key for selecting the language in which the requested materialgroup descriptions should be displayed.
            Optional input parameter.

            Value range
            You can specify any of the values defined and stored in the system forthe language key.

            Description
            ISO code for the language key that determines the language in which therequested material group description is displayed.
            Optional input parameter.

            Value range
            Any ISO that has been defined and stored in the system can be speci fiedas the ISO code for the language key.

            Description
            Indicator for requesting the descriptions of selected material groups.
            Obligatory input parameter for the method.

            Value range
            The indicator can have the values ' X' or ' '.

            Description
            Obligatory range table (input parameters) for the material groups to beselected.,,,,

            Value range
            A line in the range table contains the following four fields:

            • Sign (possible values 'I' (inclusive) or 'E' (exclusive)),

            • Option (see fixed values for domain BAPIOPTION in Data
            • Dictionary),
              • Low (individual value or lower interval limit) and

              • High (individual value or upper interval limit).
              • Description
                Obligatory output table for this method. It contains the materialgroups selected.

                Description
                This obligatory output table contains the event and error logs fromcalling up the method.

                Value range
                A number of different error messages are possible, which are notdescribed here.
                If errors occur when this method is used, the obligatory Returntable is filled. If the method is run successfully, the appropriateevent messages are returned in the Return table.

                Description
                Optional output table for the method containing the descriptions of theMaterial groups in the obligatory output table.
                The material group descriptions are displayed in the language selectedusing the language (optional input parameter) or the languageISO code LanguageIso (optional input parameter).