Skip to content

/AWS1/IF_HLL=>CREATEDATAXFORMTNPROFILE()

About CreateDataTransformationProfile

Creates a data transformation profile in DRAFT state. Specify a built-in starter profile, an existing profile version, raw profile content, or a sample data file as the source.

Method Signature

METHODS /AWS1/IF_HLL~CREATEDATAXFORMTNPROFILE
  IMPORTING
    !IV_SOURCEFORMAT TYPE /AWS1/HLLSOURCEFORMAT OPTIONAL
    !IO_SOURCE TYPE REF TO /AWS1/CL_HLLCRTDATXFRMTNPFLSRC OPTIONAL
    !IV_KMSKEYID TYPE /AWS1/HLLKMSKEYID OPTIONAL
    !IV_PROFILEDESCRIPTION TYPE /AWS1/HLLPROFILEDESCRIPTION OPTIONAL
    !IV_PROFILENAME TYPE /AWS1/HLLPROFILENAMESTRING OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_HLLTAGMAP_W=>TT_TAGMAP OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/HLLCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hllcrtdatxfrmtnpflrsp
  RAISING
    /AWS1/CX_HLLACCESSDENIEDEX
    /AWS1/CX_HLLCONFLICTEXCEPTION
    /AWS1/CX_HLLINTERNALSERVEREX
    /AWS1/CX_HLLRESOURCENOTFOUNDEX
    /AWS1/CX_HLLSERVICEQUOTAEXCDEX
    /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_sourceformat TYPE /AWS1/HLLSOURCEFORMAT /AWS1/HLLSOURCEFORMAT

The source data format that this profile converts from (Consolidated Clinical Document Architecture (C-CDA) or Comma-separated values (CSV)).

io_source TYPE REF TO /AWS1/CL_HLLCRTDATXFRMTNPFLSRC /AWS1/CL_HLLCRTDATXFRMTNPFLSRC

The source for the initial profile content. Specify a built-in starter profile, an existing profile version to clone, raw profile content for CI/CD workflows, or a sample data file in Amazon S3.

iv_profilename TYPE /AWS1/HLLPROFILENAMESTRING /AWS1/HLLPROFILENAMESTRING

A name for the data transformation profile.

Optional arguments:

iv_kmskeyid TYPE /AWS1/HLLKMSKEYID /AWS1/HLLKMSKEYID

The AWS Key Management Service (AWS KMS) key identifier used to encrypt the profile content at rest.

iv_profiledescription TYPE /AWS1/HLLPROFILEDESCRIPTION /AWS1/HLLPROFILEDESCRIPTION

A human-readable description of the profile's purpose.

it_tags TYPE /AWS1/CL_HLLTAGMAP_W=>TT_TAGMAP TT_TAGMAP

The tags to associate with the profile at creation time.

iv_clienttoken TYPE /AWS1/HLLCLIENTTOKEN /AWS1/HLLCLIENTTOKEN

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.

RETURNING

oo_output TYPE REF TO /aws1/cl_hllcrtdatxfrmtnpflrsp /AWS1/CL_HLLCRTDATXFRMTNPFLRSP

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->createdataxformtnprofile(
  io_source = new /aws1/cl_hllcrtdatxfrmtnpflsrc(
    io_exstversionedprofileid = new /aws1/cl_hllexstvrsedpflsource(
      iv_profileid = |string|
      iv_version = 123
    )
    io_profilemapping = new /aws1/cl_hllpflmappngsource(
      it_profilemapping = VALUE /aws1/cl_hllstringmap_w=>tt_stringmap(
        (
          VALUE /aws1/cl_hllstringmap_w=>ts_stringmap_maprow(
            key = |string|
            value = new /aws1/cl_hllstringmap_w( |string| )
          )
        )
      )
    )
    io_sampledata = new /aws1/cl_hllsampledatasource( |string| )
    io_starterprofile = new /aws1/cl_hllstarterpflsource( |string| )
  )
  it_tags = VALUE /aws1/cl_hlltagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_hlltagmap_w=>ts_tagmap_maprow(
        key = |string|
        value = new /aws1/cl_hlltagmap_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_kmskeyid = |string|
  iv_profiledescription = |string|
  iv_profilename = |string|
  iv_sourceformat = |string|
).

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( ).
  lv_profilenamestring = lo_result->get_profilename( ).
  lv_datetime = lo_result->get_lastupdatedat( ).
ENDIF.