|
Functionality The method "SaveReplica" is used to create or add to a catalog as aninstance of the business object "Price Catalogue". A catalog is created for each combination of vendor, catalog ID andtext indicator. If the catalog already exists, an error message isissued. Notes In the method, authorization object "W_PRICAT_OUT" is checked for theactivity "Create and add to (1)". If error messages occur during processing of the data, these arerecorded in an application log. If you want to display the loggedmessages, you need to execute a Commit after calling this method, sothat the data in the application log is written to the database. Evenif the structure "RETURN" returns a message of type "E" in the field"TYPE", a Commit must be executed so that the application log is saved. INCLUDE BAPI_RET INCLUDE BAPI_TABLE OBJECT DOKU ID TX Value 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 for unit of meas. &2 could not bedetermined in catalog &v1& E,,VJ,,306,,,,Base unit of measure for unit of measure &V2& does notexist in catalog &V1& E,,VJ,,300,,,,Error during entry in price catalog &V1& (table &V2&) E,,VJ,,301,,,,Error during change to price catalog &V1& (table &V2&) |