Ansicht
Dokumentation
BAPI_CRMCASE_CHANGECASEDOC - Change the metadata of a specifc document linked to the case.
rdisp/max_wprun_time - Maximum work process run time PERFORM Short ReferenceThis documentation is copyright by SAP AG.
Functionality
This BAPI is used to change a Content Management document's metadata.
Example
DATA:
ls_bo TYPE sibflporb,
ls_lo TYPE bapicasedoc,
lt_properties_attr TYPE STANDARD TABLE OF bapiattrprop,
lt_properties TYPE STANDARD TABLE OF bapisdokpropty,
lt_return TYPE STANDARD TABLE OF bapiret2,
lv_case_guid TYPE BAPISCMGCASE-CASE_GUID.
lv_case_guid = '
ls_io-objtype = 'P' or 'L'.
ls_io-class = 'CRM_P_CASE' or 'CRM_L_CASE'.
ls_io-objid = '
ls_property-name = 'DESCRIPTION'.
ls_property-value = '
ls_property-name = 'LANGUAGE'.
ls_property-value = '
APPEND ls_property TO lt_properties.
ls_property_attr-FIELD_NAME = '
ls_property_attr-FIELD_VALUE = '
APPEND ls_property_attr to lt_properties_attr.
CALL FUNCTION 'BAPI_BUS20900_CHANGECASEDOC'
EXPORTING
GUID = lv_case_guid
DOCUMENT = ls_io
TABLES
PROPERTIES = lt_properties
PROPERTIES_ATTR = lt_properties_attr
RETURN = lt_return.
IF NOT lt_return IS INITIAL.
WRITE:/ 'error'.
ENDIF.
Notes
The case and the document must exist prior to calling this BAPI.
GUIDis the Case GUID.
DOCUMENTis the Content Management document or the ArchiveLink document to be changed.
Provide either OBJTYPE and CLASS and OBJID, or ARCHIVELINKID.
PROPERTIESare the document's properties.
PROPERTIES_ATTRare the document attributes' properties.
RETURNis the result of the BAPI call.
Further information
Parameters
DOCUMENTGUID
PROPERTIES
PROPERTIES_ATTR
RETURN
Exceptions
Function Group
CRM_CMG_BAPIGeneral Material Data SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2982 Date: 20240523 Time: 110247 sap01-206 ( 27 ms )