/AWS1/IF_GLU=>DELETEATTACHMENT()¶
About DeleteAttachment¶
Deletes a form attachment from an asset in Glue Data Catalog.
Method Signature¶
METHODS /AWS1/IF_GLU~DELETEATTACHMENT
IMPORTING
!IV_ASSETIDENTIFIER TYPE /AWS1/GLUASSETID OPTIONAL
!IV_ITERABLEFORMNAME TYPE /AWS1/GLUITERABLEFORMNAME OPTIONAL
!IV_ITEMIDENTIFIER TYPE /AWS1/GLUITEMIDENTIFIER OPTIONAL
!IV_ATTACHMENTNAME TYPE /AWS1/GLUATTACHMENTNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gludeleteatchmtrsp
RAISING
/AWS1/CX_GLUACCESSDENIEDEX
/AWS1/CX_GLUCONCURRENTMODEX
/AWS1/CX_GLUENTITYNOTFOUNDEX
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUTHROTTLINGEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_assetidentifier TYPE /AWS1/GLUASSETID /AWS1/GLUASSETID¶
The unique identifier of the asset from which to delete the attachment.
iv_attachmentname TYPE /AWS1/GLUATTACHMENTNAME /AWS1/GLUATTACHMENTNAME¶
The name of the attachment to delete.
Optional arguments:¶
iv_iterableformname TYPE /AWS1/GLUITERABLEFORMNAME /AWS1/GLUITERABLEFORMNAME¶
The name of the iterable form. When specified along with
itemIdentifier, the attachment is deleted from an item within the iterable form rather than from the asset itself.
iv_itemidentifier TYPE /AWS1/GLUITEMIDENTIFIER /AWS1/GLUITEMIDENTIFIER¶
The identifier of the item within the iterable form. Required when
iterableFormNameis specified.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gludeleteatchmtrsp /AWS1/CL_GLUDELETEATCHMTRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->deleteattachment(
iv_assetidentifier = |string|
iv_attachmentname = |string|
iv_itemidentifier = |string|
iv_iterableformname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_assetid = lo_result->get_assetidentifier( ).
ENDIF.