/AWS1/IF_BDO=>GETCONFBUNDLEVERSION()¶
About GetConfigurationBundleVersion¶
Gets a specific version of a configuration bundle by its version identifier.
Method Signature¶
METHODS /AWS1/IF_BDO~GETCONFBUNDLEVERSION
IMPORTING
!IV_BUNDLEID TYPE /AWS1/BDOCONFIGURATIONBUNDLEID OPTIONAL
!IV_VERSIONID TYPE /AWS1/BDOCONFBUNDLEVERSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdogetconfbndlvrsrsp
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.
iv_versionid TYPE /AWS1/BDOCONFBUNDLEVERSION /AWS1/BDOCONFBUNDLEVERSION¶
The version identifier of the configuration bundle version to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdogetconfbndlvrsrsp /AWS1/CL_BDOGETCONFBNDLVRSRSP¶
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->getconfbundleversion(
iv_bundleid = |string|
iv_versionid = |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_versioncreatedat( ).
ENDIF.