Fonction SAP BAPI_ASSORTMENTLIST_GETHEAD - Select Assortment List Header

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ASSORTMENTLISTTYPE BAPI3032-ASSORTLIST_TYPE C 1 X Assortment List Type
CUSTOMERSITE BAPI3032-CUSTOMER_SITE C 10 X Company Number
QUALIFYINGDATE BAPI3032-QUALIFYING_DATE D 8 SY-DATUM X Key Date

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Structure for Return Code

Paramètre Reférence Long. Facultatif Description
ASSORTMENTLISTHEAD BAPI3032_HEAD 55 Assortment List Header

Functionality
This method can be used to read versions of assortment lists (headerinformation).
A customer number for the plant, a key date and an assortment list typeare used to read valid assortment lists. The latest full version ormerged version with a validity date prior to the key date is selected.New change versions with dates prior to the key date are also selected.
If no full version is found for the key date, this means that olderversions continue to be used. If a version is found that is not validuntil a future date, the key date must be set in the validity interval.This method means that a complete list of versions is not read.
In particular, manual requirements are not taken into consideration.

Notes
Messages are returned in parameter RETURN. The return values and theirmeanings are included in the return parameter documentation.

Further information
See user documentation on the assortment list.

Description
Method return code

Value range
If an error occurs, this structure contains the following information:

  • Message type (field TYPE), dictionary data type: CHAR (field length 1)

  • Message-ID (field ID), dictionary data type: CHAR (field length 20)

  • Message number (field NUMBER), dictionary data type: NUMC (field length
  • 3)
    • Message text (field MESSAGE), dictionary data type: CHAR (field length
    • 220)
      If no error occurs, the structure remains blank.

      Description
      For more information about the importance of the assortment list type,see the documentation for the relevant data element:Assortment list type

      Value range
      Dictionary data type: CHAR (field length 1)

      Description
      Plant or site number used to restrict your selection of assortmentlists. If this parameter does not exist, assortment lists that havealready been prepared are selected for all plants. For more informationabout the importance of the plant number, see the documentation for therelevant data element: Plant-related customer number.

      Value range
      Dictionary data type: CHAR (field length 10)

      Description
      For information about the importance of key dates, see thedocumentation for the relevant data element: Keydates.

      Value range
      Dictionary data type: DATS (field length 8, YYYYMMDD, stored as CHAR)

      Description
      Assortment list header (selected assortment lists)

      Value range

      • Plant-related customer number

      • Dictionary data type: CHAR (field length 10)
        • Assortment list version number

        • Dictionary data type: NUMC (field length 6)
          • Assortment list type

          • Dictionary data type: CHAR (field length 1)
            • Assortment list type name

            • Dictionary data type: CHAR (field length 20)