/AWS1/IF_DZN=>GETFORMTYPE()
¶
About GetFormType¶
Gets a metadata form type in Amazon DataZone.
Form types define the structure and validation rules for collecting metadata about assets in Amazon DataZone. They act as templates that ensure consistent metadata capture across similar types of assets, while allowing for customization to meet specific organizational needs. Form types can include required fields, validation rules, and dependencies, helping maintain high-quality metadata that makes data assets more discoverable and usable.
-
The form type with the specified identifier must exist in the given domain.
-
The domain must be valid and active.
-
User must have permission on the form type.
-
The form type should not be deleted or in an invalid state.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_domainidentifier
TYPE /AWS1/DZNDOMAINID
/AWS1/DZNDOMAINID
¶
The ID of the Amazon DataZone domain in which this metadata form type exists.
iv_formtypeidentifier
TYPE /AWS1/DZNFORMTYPEIDENTIFIER
/AWS1/DZNFORMTYPEIDENTIFIER
¶
The ID of the metadata form type.
Optional arguments:¶
iv_revision
TYPE /AWS1/DZNREVISION
/AWS1/DZNREVISION
¶
The revision of this metadata form type.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dzngetformtypeoutput
/AWS1/CL_DZNGETFORMTYPEOUTPUT
¶
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->/aws1/if_dzn~getformtype(
iv_domainidentifier = |string|
iv_formtypeidentifier = |string|
iv_revision = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_domainid = lo_result->get_domainid( ).
lv_formtypename = lo_result->get_name( ).
lv_revision = lo_result->get_revision( ).
lo_model = lo_result->get_model( ).
IF lo_model IS NOT INITIAL.
lv_smithy = lo_model->get_smithy( ).
ENDIF.
lv_projectid = lo_result->get_owningprojectid( ).
lv_domainid = lo_result->get_origindomainid( ).
lv_projectid = lo_result->get_originprojectid( ).
lv_formtypestatus = lo_result->get_status( ).
lv_createdat = lo_result->get_createdat( ).
lv_createdby = lo_result->get_createdby( ).
lv_description = lo_result->get_description( ).
LOOP AT lo_result->get_imports( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_formtypename = lo_row_1->get_name( ).
lv_revision = lo_row_1->get_revision( ).
ENDIF.
ENDLOOP.
ENDIF.