Fonction SAP BAPI_PRODCAT_GETPRICES - Read Product Catalog Item Prices

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CATALOG BAPIADMID-PRODCAT C 10 Product Catalog
CUSTOMER BAPIADMCU-CUSTOMER C 10 X Customer Number
VARIANT BAPIADMVID-VARIANT C 3 Variant

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return Value

Paramètre Reférence Long. Facultatif Description
MATERIALS BAPIADMM 116 Materials
PRICES BAPIPCMP 188 Prices

Functionality
The method supplies prices for selected materials of a product catalog.

Notes
You use the variant (parameter VARIANT) to define the currency in whichthe prices are returned in PRICES.
The system does not check whether the products transferred in MATERIALSare actually contained in product catalog CATALOG. As a result, theproduct catalog price determination logic can also be applied tomaterials that are not contained in the transferred catalog.
Messages are returned in parameter RETURN. The return values and theirmeanings can be found in the parameter documentation.

Description
Return value for errors

Value range
TYPE = "E" CODE = "W+402" 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+409" Error in price determination
TYPE = "E" CODE = "W+401" Unknown error
TYPE = "E" CODE = "W+418" ISO code & is not assigend to a unit of
measure
TYPE = "E" CODE = "W+544" No authoriatzion to read the catalog
TYPE = "I" CODE = "W+416" Currency key & does not have an ISO code
TYPE = "I" CODE = "W+417" Unit of measure & does not have an ISO code

Description
For further information, see the data elementdocumentation.

Description
For further information, see the data elementdocumentation.

Description
In this table, materials and units of measure for which prices are tobe determined are transferred.
The material/unit-of-measure combinations do not necessarily have to becontained in the catalog. Even if they are not, the price determinationlogic of catalog CATALOG is still applied to them.
The table consists of the following fields

  • Product catalog (data does not have to be entered in
  • this field)
    • Material

    • UNIT:,,,,Unit of measure

    • UNIT_ISO:,,Unit of measure in ISO format

    • If UNIT_ISO is blank, the unit in UNIT is used.

      Description
      This table contains the returned prices for the selected materials.
      It consists of the following fields:

      • ADVMED

      • MATERIAL

      • UNIT:,,,,,,Unit of measure

      • CURRNCY:,,,,Currency of the price transferred in CONDVAL

      • CONDVAL:,,,,Price

      • PRICE_NOT_FOUND

      • CURRNCY_ISO:,,Currency (ISO format) of the price transferred in

      • ,,,,,,,,CONDVAL
        • UNIT_ISO:,,Unit of measure in ISO format

        • The records are sorted by MATERIAL, UNIT and CURRNCY.