/AWS1/IF_GLU=>PUTATTACHMENT()¶
About PutAttachment¶
Attaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.
Method Signature¶
METHODS /AWS1/IF_GLU~PUTATTACHMENT
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
!IV_CONTENT TYPE /AWS1/GLUFORMCONTENT OPTIONAL
!IV_FORMTYPEID TYPE /AWS1/GLUFORMTYPEID OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/GLUHASHSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gluputatchmtresponse
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 to attach the form to.
iv_attachmentname TYPE /AWS1/GLUATTACHMENTNAME /AWS1/GLUATTACHMENTNAME¶
The name of the attachment.
iv_content TYPE /AWS1/GLUFORMCONTENT /AWS1/GLUFORMCONTENT¶
The JSON content of the form, conforming to the schema of the specified form type.
iv_formtypeid TYPE /AWS1/GLUFORMTYPEID /AWS1/GLUFORMTYPEID¶
The identifier of the form type for this attachment.
Optional arguments:¶
iv_iterableformname TYPE /AWS1/GLUITERABLEFORMNAME /AWS1/GLUITERABLEFORMNAME¶
The name of the iterable form. When specified along with
itemIdentifier, the attachment targets an item within the iterable form rather than the asset itself.
iv_itemidentifier TYPE /AWS1/GLUITEMIDENTIFIER /AWS1/GLUITEMIDENTIFIER¶
The identifier of the item within the iterable form. Required when
iterableFormNameis specified.
iv_clienttoken TYPE /AWS1/GLUHASHSTRING /AWS1/GLUHASHSTRING¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gluputatchmtresponse /AWS1/CL_GLUPUTATCHMTRESPONSE¶
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->putattachment(
iv_assetidentifier = |string|
iv_attachmentname = |string|
iv_clienttoken = |string|
iv_content = |string|
iv_formtypeid = |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( ).
lv_iterableformname = lo_result->get_iterableformname( ).
lv_itemidentifier = lo_result->get_itemidentifier( ).
lv_attachmentname = lo_result->get_attachmentname( ).
lv_formtypeid = lo_result->get_formtypeid( ).
ENDIF.