Ansicht
Dokumentation

BAPI_CRMCASE_DELETERECDOC - Add an existing document to the record.

BAPI_CRMCASE_DELETERECDOC - Add an existing document to the record.

ABAP Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this BAPI to delete an existing Content Management document from the record.

Example

DATA:

ls_io ,,,,TYPE bapicasedoc,

ls_property ,,TYPE bapisdokpropty,

ls_property_attr ,,TYPE bapiattrprop,

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_model_node ,,TYPE string.

* Fill the business object

lv_case_guid = ''.

lv_model_node = ''.

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 = 'changed by BAPI'.

APPEND ls_property TO lt_properties.

ls_property-name = 'LANGUAGE'.

ls_property-value = 'FR'.

APPEND ls_property TO lt_properties.

ls_property_attr-FIELD_NAME = 'XOG_INT'.

ls_property_attr-FIELD_VALUE = '9999'.

APPEND ls_property_attr to lt_properties_attr.

CALL FUNCTION 'BAPI_BUS20900_DELETERECDOC'

EXPORTING

guid,,,,= lv_case_guid

document,,= ls_io

model_node ,,= lv_model_node

TABLES

return,,= lt_return.

Notes

The case and the document must exist prior to calling this BAPI, and the document must be linked to the record.

GUID is the Case GUID.

BOR_KEYis the Business Object Key of the document..

DOCUMENT is a Content Management document.

,,Note: Provide only OBJTYPE and CLASS and OBJID.

,,Note: provide either BOR_KEY or DOCUMENT.

MODEL_NODEis the target model node where the document is attached.

Further information





Parameters

BOR_KEY
DOCUMENT
GUID
MODEL_NODE
RETURN

Exceptions

Function Group

CRM_CMG_BAPI

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3137 Date: 20240523 Time: 115534     sap01-206 ( 30 ms )