Fonction SAP BAPI_ADV_MED_GET_ITEMS - Read Product Catalog Items

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AREA BAPILAYA-AREA N 10 SPACE X Layout Area
CATALOG BAPIADMID-PRODCAT C 10 Product Catalog
VARIANT BAPIADMVID-VARIANT C 3 Variant
WITH_KZKFG BAPILAYHLP-XFELD C 1 SPACE X Indicator for Reading Material Configuration Indicator
WITH_PRICES BAPILAYHLP-XFELD C 1 SPACE X Flag for Reading Prices

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Value

Paramètre Reférence Long. Facultatif Description
ITEMS BAPILAYIT 182 Layout Area Items
PRICES BAPIADMIP 51 X Prices
TEXTS BAPILAYTX 153 Texts for Layout Area Items

Functionality
This method returns items for an advertising medium.

Notes
The variant (parameter VARIANT) determines the language in which thetexts in TEXTS and the currency in which the prices in PRICESare returned.
If the parameter AREA is initial, all items in the advertising mediumare determined; otherwise only the items of the layout area passed on inAREA are returned.
If the parameter WITH_PRICES is set ('X'), the table PRICES is
filled.
Prices can be determined separately with the method GetPrices.
Messages are returned in the parameter RETURN. The return values andtheir meaning can be found in the parameter documentation.

Description
Return values for errors

Value range
TYPE = "E" CODE = "W+402" Product catalog does not exist
TYPE = "E" CODE = "W+403" Variant does not exist
TYPE = "E" CODE = "W+404" Layout does not exist
TYPE = "E" CODE = "W+408" Layout area does not exist
TYPE = "E" CODE = "W+409" Error during pricing
TYPE = "E" CODE = "W+401" Unknown error
TYPE = "E" CODE = "W+544" No authorization to read catalog
TYPE = "E" CODE = "W+254" No authorization to read layout area
(not set if AREA is filled)
TYPE = "I" CODE = "W+415" Language key & has no ISO code
TYPE = "I" CODE = "W+416" Currency key & has no ISO code
TYPE = "I" CODE = "W+417" Unit of measure & has no ISO code

Description
Number of layout area

Description
For further information, please see the data elementdocumentation.

Description
For further information, see the data elementdocumentation.
Value range


Default

Description
If set ('X'), prices for the layout area items are transferred to tablePRICES.

Description
This table contains the returned layout area items.
It consists of the following fields:

  • LAYOUT:,,,,Layout of the catalog

  • AREA: Layout area

  • ITEM

  • MATERIAL

  • UNIT:,,,,Unit of measure

  • SORTNR

  • MATTYPE

  • PARENT

  • UNIT_ISO:,,Unit of measure in ISO format

  • The entries are sorted by components AREA and ITEM.
    If the materials are to appear as they were entered in the maintenancetransaction, the items must be sorted by SORTNR in the layout areaafter the method is called.
    Additional information can be obtained for materials with specialcharacteristics of the material category with additional functionmodules:
    For sales sets (MATTYPE='10'), function module'BAPI_MATERIAL_GETCOMPONENTS' provides all materials in the BOMtogether with the quantities of these materials in the BOM.
    For variants of a generic material (MATTYPE='02'), function module'BAPI_MATERIAL_GETCHARMERCHHIER' provides characteristics andcharacteristic values.

    Description
    This table contains the returned prices for the layout area items.
    It consists of the fields:

    • LAYOUT:,,Layout of advertising medium

    • AREA:,,Layout area

    • ITEM

    • CURRNCY:,,Currency of the price passed on in CONDVAL

    • CONDVAL:,,Price of the layout area item

    • The records are sorted by the components AREA, ITEM und CURRNCY.

      Description
      In this table short texts for items are returned.The table has the following components:

      • LAYOUT:,,Layout of the advertising medium

      • AREA:,,Layout area

      • ITEM

      • LANGU:,,Language of the texts in NAME and TITLE

      • NAME:,,Material short text from R/3

      • TITLE:,,Title from advertising media maintenance

      • The returned records are sorted by the components AREA, ITEM andLANGU.