Skip to content

/AWS1/IF_HLL=>PUBLISHDATAXFORMTNPROFILE()

About PublishDataTransformationProfile

Promotes the current DRAFT version of a data transformation profile to a new immutable published version. Also supports rollback by publishing from a previously published version.

Method Signature

METHODS /AWS1/IF_HLL~PUBLISHDATAXFORMTNPROFILE
  IMPORTING
    !IV_PROFILEID TYPE /AWS1/HLLPROFILEIDSTRING OPTIONAL
    !IV_SOURCEFORMAT TYPE /AWS1/HLLSOURCEFORMAT OPTIONAL
    !IV_FROMEXISTINGVERSION TYPE /AWS1/HLLPROFILEVERSION OPTIONAL
    !IV_CHANGEDESCRIPTION TYPE /AWS1/HLLCHANGEDESCRIPTION OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hllpubdatxfrmtnpflrsp
  RAISING
    /AWS1/CX_HLLACCESSDENIEDEX
    /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_profileid TYPE /AWS1/HLLPROFILEIDSTRING /AWS1/HLLPROFILEIDSTRING

The unique identifier of the profile to publish.

iv_sourceformat TYPE /AWS1/HLLSOURCEFORMAT /AWS1/HLLSOURCEFORMAT

The source data format of the profile.

Optional arguments:

iv_fromexistingversion TYPE /AWS1/HLLPROFILEVERSION /AWS1/HLLPROFILEVERSION

The version number of a previously published version to republish as the new latest version. Use this parameter for rollback scenarios. If you omit this parameter, the service publishes the current DRAFT version.

iv_changedescription TYPE /AWS1/HLLCHANGEDESCRIPTION /AWS1/HLLCHANGEDESCRIPTION

A description of what changed or why this version is being published.

RETURNING

oo_output TYPE REF TO /aws1/cl_hllpubdatxfrmtnpflrsp /AWS1/CL_HLLPUBDATXFRMTNPFLRSP

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->publishdataxformtnprofile(
  iv_changedescription = |string|
  iv_fromexistingversion = 123
  iv_profileid = |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.