Ansicht
Dokumentation
BAPI_SRM_DOC_CHANGEPROPERTIES - SRM BAPI: Set Document Attributes
ABAP Short Reference rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
Functionality
Set/change/delete attribute values of a document
You can use this function to change specific attribute values of a document. Any non-specified attribute values remain the same. The specified values are added to any attributes that can have multiple values (such as keywords). Old values are not deleted.
Example
* Add new keyword 'BAPI' to a document
wa_properties-NAME = 'SRM_KEYWORD'.
wa_properties-VALUE = 'BAPI'.
APPEND wa_properties TO lt_properties.
* delete keyword of value 'Test'
wa_properties-NAME = 'SRM_KEYWORD'.
wa_properties-VALUE = 'Test'.
APPEND wa_properties TO props_delete.
CALL FUNCTION BAPI_RECORD_CHANGEPROPERTIES
EXPORTING
OBJECTID = 'FE55793BA8182177E10000000A1148F5'
DOCUMENTCLASS = 'SRM_DOC04'
WHOLE_DOCUMENT = ' '
IMPORTING
RETURN = bapi_return
TABLES
PROPERTIES = lt_properties
PROPS_DELETE = props_delete.
Notes
Some attributes are defined for the whole document and are valid for all versions. Some attributes are only defined and are valid for a specific version. If you want to set attribute values for a whole document, the import parameter must be set to 'X'.
Further information
Parameters
DOCUMENTCLASSDOC_CONTEXT
DO_COMMIT
OBJECTID
PROPERTIES
PROPS_DELETE
RETURN
WHOLE_DOCUMENT
Exceptions
Function Group
SRM_BAPI_DOCUMENTABAP Short Reference rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 2514 Date: 20240523 Time: 182034 sap01-206 ( 34 ms )