Fonction SAP BAPI_PRICECATALOGUE_SAVREPLICA - Store Price Catalog Instance

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PRICATHEADER BAPIPRICATHEADER u 180 Header data of the Price Catalog

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Confirmations

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
PRODCHARACT BAPIPRODCHARACT 121 X Characteristics of the Material
PRODCOMPONENT BAPIPRODCOMPONENT 111 X BOM Components of the Materials
PRODUCTADDS BAPIPRODUCTADDS 596 X Material Additional Data
PRODUCTGROUPINFO BAPIPRODGRPINFO 53 Product Group Information
PRODUCTLINE BAPIPRODUCTLINE 416 Material Basic Data
PRODUCTUNITS BAPIPRODUNITS 687 X Units of Measure of the Material
PRODUNITPRICE BAPIPRODUNITPRICE 117 X Prices and Taxes for the Units of Measure
PRODUNITPRICESCALES BAPIPRODUNITPRICESCALES 118 X PRICAT: Catalog Item Scales for the Condition for Each Customer
PRODUNITTEXT BAPIPRODUNITTEXT 202 X Texts for the Units of Measure

Functionality
Method SaveReplica allows you to create or enhance a catalog as aBusiness Object instance 'Price Catalogue'.
A catalog is created for each vendor with a unique catalog identifierand test indicator. If the catalog already exists, then it is enhancedwith the new data that has been transferred. Existing data may beoverwritten with the new data.

Notes
The assignment of the Pricat ILN to the SAP vendor number is done usingan automatic conversion. The purchasing group is also determined duringthis assignment. When you are processing the catalog, you can restrictthe article assignment to processors, and check the maintenanceauthorizations. Inbound catalogs whose ILN cannot be assigned to aunique vendor are not processed by the method.
Miantaining the ILN assignment to SAP vendors/
purchasing group
The Pricat merchandise category is also automatically converted to theSAP merchandise category.
Maintaining the merchandise category assignment to
SAP merchandise categories
You can make the purchasing group assignment to each SAP merchandisecategory more detailed. From a category management point of view, thisassignment is vendor-independent.
Maintaining the assignment of purchasing group toSAP merchandise category
The processing status of the catalog is documented using the catalogstatus.

  • Open catalogs contain materials that are to be processed. New and
  • enhanced catalogs are always given the status 'open' by the method.
    • Active catalogs no longer contain any open materials.

    • Closed catalogs can no longer be processed. This method, therefore,
    • cannot enhance the catalog.
      The materials in the Pricat message are identified by the EAN. The SAPmaterial number must then be identified using this identifier.
      There are 3 different cases:
      • The Pricat EAN was already assigned to a material during earlier
      • processing.
        The assignment is copied over. If the catalog has several entries forthe EAN with different validities, then the assignment is copied overfrom the EAN that was available at the time just before the new entry.
        • The EAN is not available or cannot be uniquely assigned.

        • The assignment has to be done manually in the catalog processing.
          • The EAN can be uniquely assigned to a material.

          • You should still check whether the SAP metrail corresponds to thePricat material. You can, however, change the assignment manually inthe catalog processing.
            In the method, the authorization object "W_PRICAT_IN" is checked forthe activity "Create and Enhance (1)".
            If error messages occur while the data is being processed, they can bestored in the application log. If you would like to look at the loggedmessages, it is necessary to execute a Commit after calling the methodso that the data in the application log can be written to the database.Even if structure RETURN in field TYPE returns a type E (error)message, a Commit has to be executed so the application log can bewritten off.
            INCLUDE BAPI_RET
            INCLUDE BAPI_TABLE OBJECT DOKU ID TX

            Value range
            Success messages
            Type,,ID,,Number,,Message
            S,,VJ,,303,,,,Price catalog <(>&<)>1 was created
            S,,VJ,,302,,,,Price catalog <(>&<)>1 was updated
            Error messages
            Type,,ID,,Number,,Message
            E,,VJ,,304,,,,Price catalog <(>&<)>1 has already been closed
            E,,VJ,,305,,,,In catalog <(>&<)>1, the OUn for UoM <(>&<)>2 could not
            be determined
            E,,VJ,,305,,,,The base unit of measure for unit of measure <(>&<)>2
            does not exist in catalog <(>&<)>1
            E,,VJ,,305,,,,Error adding price catalog <(>&<)>1 (table <(>&<)>2)
            E,,VJ,,305,,,,Error changing price catalog <(>&<)>1 (table <(>&<)>2)

            Description
            The catalog header contains information about the sender and recipientof a PRICAT message.
            The parameter is mandatory.
            The following fields are required entry fields:
            ILN_SENDER, UNIQUE_REFERENCE, ILN_RECIPIENT, DATE_MESSAGE, TIME_MESSAGE
            INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

            Description
            The characteristics assigned to a material.
            This parameter is optional.
            All fields are required entry fields.
            INCLUDE BAPI_DATAELEMENT

            Description
            Assortment units (BOM components).
            This paramter is optional.
            All fields are required entry fields.
            INCLUDE BAPI_DATAELEMENT

            Description
            Data in addition to the basic data of the catalog lines, which caneither be automatically processed or requires manual processing orconversion during material maintenance.
            This parameter is optional.
            The following fields are required entry fields:
            PRODUCTGROUP, EAN_UPC_BASE, VALIDITY_BASE
            INCLUDE BAPI_DATAELEMENT

            Description
            The product groups are used to group together catalog lines.
            The parameter is mandatory.
            The following fields are required entry fields:
            PRODUCTGROUP, PRODGROUP_TEXT
            INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

            Description
            Data from the catalog lines for processing the basic data of thematerial.
            This parameter is mandatory.
            The following fields are required entry fields:
            PRODUCTGROUP, EAN_UPC_BASE, EAN_UPC_TYPE, VALIDITY_BASE,MATERIAL_GROUP, MAT_ID_SENDER
            INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

            Description
            Units of measure of a material with its dimensions and weights.
            This parameter is optional.
            The following fields are required entry fields:
            PRODUCTGROUP, EAN_UPC_ALTUNIT, EAN_UPC_TYPE, VALIDITY_UNIT,ITEM_NUMBER, EAN_UPC_SUBLINE, QUANTITY_SUBLINE, QUANTITY_UNIT,ALT_UNIT(_ISO)
            INCLUDE BAPI_DATAELEMENT

            Description
            Taxes and prices for units of measure.
            This parameter is optional.
            All fields are required entry fields.
            INCLUDE BAPI_DATAELEMENT

            Description
            All short and long texts for a material, plus all till receipt texts ofthe units of measure.
            This parameter is optional.
            All fields are required entry fields.
            INCLUDE BAPI_DATAELEMENT