Ansicht
Dokumentation

COM_PRODUCT_HISTORY_GET -

COM_PRODUCT_HISTORY_GET -

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module reads the history for a product or individual object to the internal buffer and returns all changes at attribute level (field level) in the parameter ET_HISTORY.
By implementing the BAdI PRODUCT_GET_HISTORY, you can extend, reduce, or modify the result ET_HISTORY. You can use it, for example, to hide the field SHTEXT_LARGE (product description in uppercase) in the description history in the result ET_HISTORY.

Parameters

When the function is called again, the history is read from the internal buffer, provided the parameters used for the call have not changed. The parameter IV_BYPASS_BUFFER = X is used to read data from the database, instead of the internal buffer.

The import parameters IV_HISTORY_FROM and IV_HISTORY_TO can be used to restrict the time period of the history, the parameters IT_REQUESTED_COMPONENTS and IT_REQUESTED_SEGMENTS, on the other hand, to restrict the contents of the history. Histories are then determined only for the specified components or segments. For example, the entry 00 in the parameter IT_REQUESTED_COMPONENTS will cause the histories of all set types of a product to be read. If only the history of one particular set type is required, the set type ID would be specified instead or additionally in the parameter IT_REQUESTED_SEGMENTS.

  • Components
  • 00 = Single-Line Set Type

  • 01 = Multiline Set Type

  • 10 = Multiline Extension

  • 11 = Single-Line Extension

  • 20 = Long Text

  • 30 = Product Header Data

  • 50 = Product Status

  • 51 = Conditions

  • 52 = Documents

  • 53 = Configurable Attributes

  • 55 = R/3 Configuration

  • 90 = Relationship (Interlinkage)

  • Segments
The names of the segments for set types are contained in field FRGTYPE_ID in table COMC_SETTYPE. The names of the relationships are contained in field RELTYPE in table COMC_PRWB_IL.

Error messages that occur when reading the history data are returned in the parameter CT_BAPIRETURN.

Restrictions

Histories are only read for those set types or relationships for which a read module was registered in Customizing. For relationships this module must be registered in table COMC_PRWB_IL in the field FUNC_READ_HIST, and for set types in the table COMC_SETTYPE in the field FUNC_GET_HISTORY.

Example

Notes

Further information





Parameters

CT_BAPIRETURN
ET_HISTORY
ET_HISTORY_INT
IT_REQUESTED_COMPONENTS
IT_REQUESTED_SEGMENTS
IV_BYPASS_BUFFER
IV_CHECK_ONLY
IV_CONVERT_KEY
IV_HISTORY_FROM
IV_HISTORY_TO
IV_LANGUAGE
IV_PRODUCT_GUID

Exceptions

INTERNAL_ERROR
NOT_FOUND
WRONG_CALL

Function Group

COM_PRODUCT_API

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3781 Date: 20240523 Time: 103243     sap01-206 ( 75 ms )