/AWS1/IF_DZN=>UPDATEGLOSSARYTERM()¶
About UpdateGlossaryTerm¶
Updates a business glossary term in Amazon DataZone.
Prerequisites:
-
Glossary term must exist in the specified domain.
-
New name must not conflict with existing terms in the same glossary.
-
User must have permissions on the term.
-
The term must not be in DELETED status.
Method Signature¶
METHODS /AWS1/IF_DZN~UPDATEGLOSSARYTERM
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_GLOSSARYIDENTIFIER TYPE /AWS1/DZNGLOSSARYTERMID OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/DZNGLOSSARYTERMID OPTIONAL
!IV_NAME TYPE /AWS1/DZNGLOSSARYTERMNAME OPTIONAL
!IV_SHORTDESCRIPTION TYPE /AWS1/DZNSHORTDESCRIPTION OPTIONAL
!IV_LONGDESCRIPTION TYPE /AWS1/DZNLONGDESCRIPTION OPTIONAL
!IO_TERMRELATIONS TYPE REF TO /AWS1/CL_DZNTERMRELATIONS OPTIONAL
!IV_STATUS TYPE /AWS1/DZNGLOSSARYTERMSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dznupdglossarytermout
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNCONFLICTEXCEPTION
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID¶
The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.
iv_identifier TYPE /AWS1/DZNGLOSSARYTERMID /AWS1/DZNGLOSSARYTERMID¶
The identifier of the business glossary term that is to be updated.
Optional arguments:¶
iv_glossaryidentifier TYPE /AWS1/DZNGLOSSARYTERMID /AWS1/DZNGLOSSARYTERMID¶
The identifier of the business glossary in which a term is to be updated.
iv_name TYPE /AWS1/DZNGLOSSARYTERMNAME /AWS1/DZNGLOSSARYTERMNAME¶
The name to be updated as part of the
UpdateGlossaryTermaction.
iv_shortdescription TYPE /AWS1/DZNSHORTDESCRIPTION /AWS1/DZNSHORTDESCRIPTION¶
The short description to be updated as part of the
UpdateGlossaryTermaction.
iv_longdescription TYPE /AWS1/DZNLONGDESCRIPTION /AWS1/DZNLONGDESCRIPTION¶
The long description to be updated as part of the
UpdateGlossaryTermaction.
io_termrelations TYPE REF TO /AWS1/CL_DZNTERMRELATIONS /AWS1/CL_DZNTERMRELATIONS¶
The term relations to be updated as part of the
UpdateGlossaryTermaction.
iv_status TYPE /AWS1/DZNGLOSSARYTERMSTATUS /AWS1/DZNGLOSSARYTERMSTATUS¶
The status to be updated as part of the
UpdateGlossaryTermaction.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dznupdglossarytermout /AWS1/CL_DZNUPDGLOSSARYTERMOUT¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->updateglossaryterm(
io_termrelations = new /aws1/cl_dzntermrelations(
it_classifies = VALUE /aws1/cl_dznglossaryterms_w=>tt_glossaryterms(
( new /aws1/cl_dznglossaryterms_w( |string| ) )
)
it_isa = VALUE /aws1/cl_dznglossaryterms_w=>tt_glossaryterms(
( new /aws1/cl_dznglossaryterms_w( |string| ) )
)
)
iv_domainidentifier = |string|
iv_glossaryidentifier = |string|
iv_identifier = |string|
iv_longdescription = |string|
iv_name = |string|
iv_shortdescription = |string|
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_glossarytermid = lo_result->get_id( ).
lv_domainid = lo_result->get_domainid( ).
lv_glossaryid = lo_result->get_glossaryid( ).
lv_glossarytermname = lo_result->get_name( ).
lv_glossarytermstatus = lo_result->get_status( ).
lv_shortdescription = lo_result->get_shortdescription( ).
lv_longdescription = lo_result->get_longdescription( ).
lo_termrelations = lo_result->get_termrelations( ).
IF lo_termrelations IS NOT INITIAL.
LOOP AT lo_termrelations->get_isa( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_glossarytermid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_termrelations->get_classifies( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_glossarytermid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_result->get_usagerestrictions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_glossaryusagerestrictio = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.