Ansicht
Dokumentation
COM_PRODUCT_GETHISTORY_API -
RFUMSV00 - Advance Return for Tax on Sales/Purchases rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
Functionality
The function module reads the history for a product or individual object to the internal buffer and returns all changes to the product at set level (record level) in the parameter 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 in the parameter IT_REQUESTED_SEGMENTS instead of the component.
- 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_BAPIRETURNET_HISTORY_INT
ET_HISTORY_MV
IT_REQUESTED_COMPONENTS
IT_REQUESTED_SEGMENTS
IV_BYPASS_BUFFER
IV_CHECK_ONLY
IV_HISTORY_FROM
IV_HISTORY_TO
IV_LANGUAGE
IV_PRODUCT_GUID
Exceptions
INTERNAL_ERRORNOT_CHANGED
NOT_FOUND
WRONG_CALL
Function Group
COM_PRODUCT_GETHISTORY_APIVendor Master (General Section) SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 3545 Date: 20240523 Time: 110340 sap01-206 ( 63 ms )