/AWS1/IF_HLL=>GETDATATRANSFORMATIONPROFILE()¶
About GetDataTransformationProfile¶
Retrieves a data transformation profile's metadata and profile content at a specific version. Specify version 0 to retrieve the DRAFT, a version number between 1 and 99 to retrieve a specific published version, or omit the version to retrieve the latest published version.
Method Signature¶
METHODS /AWS1/IF_HLL~GETDATATRANSFORMATIONPROFILE
IMPORTING
!IV_PROFILEID TYPE /AWS1/HLLPROFILEIDSTRING OPTIONAL
!IV_PROFILEVERSION TYPE /AWS1/HLLPROFILEVERSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hllgetdatxfrmtnpflrsp
RAISING
/AWS1/CX_HLLACCESSDENIEDEX
/AWS1/CX_HLLINTERNALSERVEREX
/AWS1/CX_HLLRESOURCENOTFOUNDEX
/AWS1/CX_HLLTHROTTLINGEX
/AWS1/CX_HLLVALIDATIONEX
/AWS1/CX_HLLCLIENTEXC
/AWS1/CX_HLLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_profileid TYPE /AWS1/HLLPROFILEIDSTRING /AWS1/HLLPROFILEIDSTRING¶
The unique identifier of the profile to retrieve.
Optional arguments:¶
iv_profileversion TYPE /AWS1/HLLPROFILEVERSION /AWS1/HLLPROFILEVERSION¶
The version number to retrieve. Specify 0 to retrieve the DRAFT version. If you omit this parameter, the service returns the latest published version.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hllgetdatxfrmtnpflrsp /AWS1/CL_HLLGETDATXFRMTNPFLRSP¶
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->getdatatransformationprofile(
iv_profileid = |string|
iv_profileversion = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_profileidstring = lo_result->get_profileid( ).
lv_profileversion = lo_result->get_version( ).
lv_sourceformat = lo_result->get_sourceformat( ).
lv_targetformat = lo_result->get_targetformat( ).
LOOP AT lo_result->get_profilemapping( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_profilemappingvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_profilenamestring = lo_result->get_profilename( ).
lv_profiledescription = lo_result->get_profiledescription( ).
lv_changedescription = lo_result->get_changedescription( ).
lv_datetime = lo_result->get_lastupdatedat( ).
ENDIF.