Skip to content

/AWS1/IF_BDO=>GETCONFIGURATIONBUNDLE()

About GetConfigurationBundle

Gets the latest version of a configuration bundle. By default, returns the latest version on the mainline branch. Use GetConfigurationBundleVersion to retrieve a specific historical version.

Method Signature

METHODS /AWS1/IF_BDO~GETCONFIGURATIONBUNDLE
  IMPORTING
    !IV_BUNDLEID TYPE /AWS1/BDOCONFIGURATIONBUNDLEID OPTIONAL
    !IV_BRANCHNAME TYPE /AWS1/BDOBRANCHNAME OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdogetconfbundlersp
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDORESOURCENOTFOUNDEX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_bundleid TYPE /AWS1/BDOCONFIGURATIONBUNDLEID /AWS1/BDOCONFIGURATIONBUNDLEID

The unique identifier of the configuration bundle to retrieve.

Optional arguments:

iv_branchname TYPE /AWS1/BDOBRANCHNAME /AWS1/BDOBRANCHNAME

The branch name to get the latest version from. If not specified, returns the latest version on the mainline branch.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdogetconfbundlersp /AWS1/CL_BDOGETCONFBUNDLERSP

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->getconfigurationbundle(
  iv_branchname = |string|
  iv_bundleid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_configurationbundlearn = lo_result->get_bundlearn( ).
  lv_configurationbundleid = lo_result->get_bundleid( ).
  lv_configurationbundlename = lo_result->get_bundlename( ).
  lv_configurationbundledesc = lo_result->get_description( ).
  lv_configurationbundlevers = lo_result->get_versionid( ).
  LOOP AT lo_result->get_components( ) into ls_row.
    lv_key = ls_row-key.
    lo_value = ls_row-value.
    IF lo_value IS NOT INITIAL.
      lo_value_1 = lo_value->get_configuration( ).
      IF lo_value_1 IS NOT INITIAL.
      ENDIF.
    ENDIF.
  ENDLOOP.
  lo_versionlineagemetadata = lo_result->get_lineagemetadata( ).
  IF lo_versionlineagemetadata IS NOT INITIAL.
    LOOP AT lo_versionlineagemetadata->get_parentversionids( ) into lo_row_1.
      lo_row_2 = lo_row_1.
      IF lo_row_2 IS NOT INITIAL.
        lv_configurationbundlevers = lo_row_2->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_branchname = lo_versionlineagemetadata->get_branchname( ).
    lo_versioncreatedbysource = lo_versionlineagemetadata->get_createdby( ).
    IF lo_versioncreatedbysource IS NOT INITIAL.
      lv_string = lo_versioncreatedbysource->get_name( ).
      lv_string = lo_versioncreatedbysource->get_arn( ).
    ENDIF.
    lv_string = lo_versionlineagemetadata->get_commitmessage( ).
  ENDIF.
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_updatedat( ).
ENDIF.