Ansicht
Dokumentation

BAPI_PRICECATALOGUE_GETNUMBER - Determine Unique Number for BO PriceCatalogue

BAPI_PRICECATALOGUE_GETNUMBER - Determine Unique Number for BO PriceCatalogue

Vendor Master (General Section)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Method SaveReplica allows you to create or enhance a catalog as a Business object instance 'Price Catalogue'.

A catalog is created for each vendor with a unique catalog identifier and test indicator. If the catalog already exists, then it is enhanced with the new data that has been transferred. Existing data may be overwritten with the new data.

Notes

The assignment of the Pricat ILN to the SAP vendor number is done using an automatic conversion. The purchasing group is also determined during this assignment. When you are processing the catalog, you can restrict the article assignment to processors, and check the maintenance authorizations. Inbound catalogs whose ILN cannot be assigned to a unique vendor are not processed by the method.

The Pricat merchandise category is also automatically converted to the SAP merchandise category.

You can make the purchasing group assignment to each SAP merchandise category more detailed. From a category management point of view, this assignment is vendor-independent.

The processing status of the catalog is documented using the catalog status.

  • 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 SAP material 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 for the EAN with different validities, then the assignment is copied over from 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 the Pricat material. You can, however, change the assignment manually in the catalog processing.

In the method, the authorization object "W_PRICAT_IN" is checked for the activity "Create and Enhance (1)".

If error messages occur while the data is being processed, they can be stored in the application log. If you would like to look at the logged messages, it is necessary to execute a Commit after calling the method so 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 be written off.

Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.





Parameters

PRICECATALOGUE
RETURN

Exceptions

Function Group

1171

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.

Length: 3505 Date: 20240523 Time: 165155     sap01-206 ( 69 ms )