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. Maintaining 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 toSAP 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 defined 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 material 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 TXValue range Success messages Type,,ID,,Number,,Message S,,VJ,,303,,,,Price catalog &v1& was created S,,VJ,,302,,,,Price catalog &v1& was updated Error messages Type,,ID,,Number,,Message E,,VJ,,304,,,,Price catalog &v1& is already closed E,,VJ,,305,,,,The base unit of measure for unit &v2& could not bedetermined in catalog &v1& E,,VJ,,305,,,,The base unit of measure for unit &v2& does not exist incatalog &v1& E,,VJ,,305,,,,Error during entry in price catalog &v1& (table &v2&) E,,VJ,,305,,,,Error during change to price catalog &v1& (table &v2&)
|