Fonction SAP BAPI_ASSORTMENTLIST_GETPOS - Select Assortment List Items

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ASSORTMENTLISTTYPE BAPI3032-ASSORTLIST_TYPE C 1
ASSORTMENTLISTVERSION BAPI3032_HEAD-VERSION_NO N 6
CUSTOMERSITE BAPI3032-CUSTOMER_SITE C 10
GROUP1 BAPI3032_GROUP-GROUP1 C 10 X Assortment List: Grouping Field 1
GROUP2 BAPI3032_GROUP-GROUP2 C 10 X Assortment List: Grouping Field 2
GROUP_NO BAPI3032_GROUP-GROUP_NO N 10 X Assortment List Group Number
GROUP_SELECTION BAPI3032_GROUP_SEL C 1 X Flag, whether selection wanted using GROUP1 and GROUP2
MATERIAL BAPI3032_POSITION-MATERIAL C 18 X
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number

Paramètre Reférence Type Long. Description
FIELD_CONTROL BAPI3032_FIELD_CONTROL u 41 Assortment List Field Control
RETURN BAPIRETURN1 u 470 Structure for Return Code

Paramètre Reférence Long. Facultatif Description
ASSORTMENTLISTPOS BAPI3032_POSITION 664 Assortment List Item

Functionality
This method can be used to select assortment list items (material).
An assortment list header record and assortment list group number areused to prepare all items. Sort sequence corresponds to the sort methodin the assortment list header. An individual item structure that iscreated in the assortment list item header ensures that only some ofthe fields in structure 'BAPI3032_POSITION' (reference structure) areprepared. As a result, the assortment list can be prepared morequickly.

Description
Assortment list item (materials in an assortment list group). Thestructure indicates which fields in the 'Assortment list item' table isto be filled using the BAPI. Not all available fields in the interface(material item) can be filled using the BAPI. When Customizing theassortment list type, a structure is defined. Fields in this structureare filled if they exist in the item structure of the relevant BAPI. If'X' is entered as the field value, the relevant item field is filled.If this is not the case, the field is left blank.

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
      Group number that clearly identifies an assortment list group. Theassortment list group contains, as part of an assortment list,innumerous materials.
      In Customizing for assortment list type, the possible assortment listgroups and their sorts are defined within the assortment list.
      For more information about the importance of group numbers, see thedocumentation for the relevant data element: Assortmentlist group number.

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

      Description
      Parameter for the long material number
      This parameter can be used transfer long material numbers whose maximumlength can be 40 characters.
      To be able to use this parameter, you must turn on the switch for thebusiness function LAMA (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
      Assortment list item (material in an assortment list group).

      Value range

      • Current number for an item in the assortment list

      • Dictionary data type: INT4 (field length 10, 4-byte integer)
        • Material number

        • Dictionary data type: CHAR (field length 18)
          Only materials without a deletion flag
          Only materials for which a listing condition exists at the chosen time
          • European Material Number

          • Dictionary data type: CHAR (field length 18)
            Only the main EAN is displayed if more than one EAN exists per orderunit (only one line per order unit)
            • Vendor material number

            • Dictionary data type: CHAR (field length 22)
              • Material text length 20 (reduced)

              • Dictionary data type: CHAR (field length 20)
                • Material text length 30 (reduced)

                • Dictionary data type: CHAR (field length 30)
                  • Material short text for unit of measure

                  • Dictionary data type: CHAR (field length 40)
                    • Order unit (SAP internal)

                    • Dictionary data type: UNIT (field length 3)
                      • ISO code for order units

                      • Dictionary data type: CHAR (field length 3)
                        • Sales unit (SAP internal)

                        • Dictionary data type: UNIT (field length 3)
                          If more than one sales unit exists for your material, only the firstsales unit is chosen. To simplify the assortment list for materialsplanning, only one line may be used per material and per order unit.
                          • ISO code sales unit

                          • Dictionary data type: CHAR (field length 3)
                            • Base unit of measure (SAP internal)

                            • Dictionary data type: UNIT (field length 3)
                              • ISO code base unit of measure

                              • Dictionary data type: CHAR (field length 3)
                                • Factor for converting order units into sales units

                                • Dictionary data type: CHAR (field length 6)
                                  • Sales price (10 characters)

                                  • Dictionary data type: CHAR (field length 10)
                                    • Sales price for assortment list output

                                    • Dictionary data type: DEC (field length 23)
                                      • Purchase price (10 characters)

                                      • Dictionary data type: CHAR (field length 10)
                                        • Purchase price for assortment list output

                                        • Dictionary data type: DEC (field length 23)
                                          • Currency key (SAP internal)

                                          • Dictionary data type: CUKY (field length 5)
                                            • ISO code currency

                                            • Dictionary data type: CHAR (field length 3)
                                              • Minimum purchase order quantity

                                              • Dictionary data type: QUAN (field length 13)
                                                If the merchandise is delivered by a vendor, the minimum purchase orderquantity is entered here, in accordance with the purchasing inforecord.
                                                If the merchandise is delivered by a distribution center, the unit ofmeasure for goods issue, in accordance with the master data fordistribution centers in Logistics, is entered here.
                                                If the material is delivered for a promotion, the minimum purchasequantity for the promotional material is entered here.
                                                • Planned delivery time, in days

                                                • Dictionary data type: DEC (field length 3)
                                                  • Comment for a material in the assortment list

                                                  • Dictionary data type: CHAR (field length 10)
                                                    • Promotions indicator J/N

                                                    • Dictionary data type: CHAR (field length 1)
                                                      • RP type

                                                      • Dictionary data type: CHAR (field length 2)
                                                        • Generic article number

                                                        • Dictionary data type: CHAR (field length 18)
                                                          • Material category

                                                          • Dictionary data type: CHAR (field length 2)
                                                            • Safety stock

                                                            • Dictionary data type: QUAN (field length 13)
                                                              • Reorder point

                                                              • Dictionary data type: QUAN (field length 13)
                                                                • Maximum stock level

                                                                • Dictionary data type: QUAN (field length 13)
                                                                  • Follow-up material

                                                                  • Dictionary data type: CHAR (field length 18)
                                                                    • Expiration date

                                                                    • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                      Date indicating when the material is no longer to be listed.
                                                                      • Available from

                                                                      • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                        • Available through

                                                                        • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                          • Earliest purchase order date at vendor

                                                                          • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                            • Latest purchase order dates at vendor

                                                                            • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                              • In sales promotion from

                                                                              • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                                • In sales promotion through

                                                                                • Dictionary data type: DATS (field length 8, stored as CHAR 8)
                                                                                  • Promotion number

                                                                                  • Dictionary data type: CHAR (field length 10)