/AWS1/IF_DPL=>GETAPPLICATIONREVISION()¶
About GetApplicationRevision¶
Gets information about an application revision.
Method Signature¶
METHODS /AWS1/IF_DPL~GETAPPLICATIONREVISION
  IMPORTING
    !IV_APPLICATIONNAME TYPE /AWS1/DPLAPPLICATIONNAME OPTIONAL
    !IO_REVISION TYPE REF TO /AWS1/CL_DPLREVISIONLOCATION OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dplgetapplicationre01
  RAISING
    /AWS1/CX_DPLAPPLICATIONDOESN00
    /AWS1/CX_DPLAPPLICATIONNAMER00
    /AWS1/CX_DPLINVAPPLICATIONNA00
    /AWS1/CX_DPLINVALIDREVISIONEX
    /AWS1/CX_DPLREVISIONDOESNOTE00
    /AWS1/CX_DPLREVISIONREQUIREDEX
    /AWS1/CX_DPLCLIENTEXC
    /AWS1/CX_DPLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationname TYPE /AWS1/DPLAPPLICATIONNAME /AWS1/DPLAPPLICATIONNAME¶
The name of the application that corresponds to the revision.
io_revision TYPE REF TO /AWS1/CL_DPLREVISIONLOCATION /AWS1/CL_DPLREVISIONLOCATION¶
Information about the application revision to get, including type and location.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dplgetapplicationre01 /AWS1/CL_DPLGETAPPLICATIONRE01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC 
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->getapplicationrevision(
  io_revision = new /aws1/cl_dplrevisionlocation(
    io_appspeccontent = new /aws1/cl_dplappspeccontent(
      iv_content = |string|
      iv_sha256 = |string|
    )
    io_githublocation = new /aws1/cl_dplgithublocation(
      iv_commitid = |string|
      iv_repository = |string|
    )
    io_s3location = new /aws1/cl_dpls3location(
      iv_bucket = |string|
      iv_bundletype = |string|
      iv_etag = |string|
      iv_key = |string|
      iv_version = |string|
    )
    io_string = new /aws1/cl_dplrawstring(
      iv_content = |string|
      iv_sha256 = |string|
    )
    iv_revisiontype = |string|
  )
  iv_applicationname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_applicationname = lo_result->get_applicationname( ).
  lo_revisionlocation = lo_result->get_revision( ).
  IF lo_revisionlocation IS NOT INITIAL.
    lv_revisionlocationtype = lo_revisionlocation->get_revisiontype( ).
    lo_s3location = lo_revisionlocation->get_s3location( ).
    IF lo_s3location IS NOT INITIAL.
      lv_s3bucket = lo_s3location->get_bucket( ).
      lv_s3key = lo_s3location->get_key( ).
      lv_bundletype = lo_s3location->get_bundletype( ).
      lv_versionid = lo_s3location->get_version( ).
      lv_etag = lo_s3location->get_etag( ).
    ENDIF.
    lo_githublocation = lo_revisionlocation->get_githublocation( ).
    IF lo_githublocation IS NOT INITIAL.
      lv_repository = lo_githublocation->get_repository( ).
      lv_commitid = lo_githublocation->get_commitid( ).
    ENDIF.
    lo_rawstring = lo_revisionlocation->get_string( ).
    IF lo_rawstring IS NOT INITIAL.
      lv_rawstringcontent = lo_rawstring->get_content( ).
      lv_rawstringsha256 = lo_rawstring->get_sha256( ).
    ENDIF.
    lo_appspeccontent = lo_revisionlocation->get_appspeccontent( ).
    IF lo_appspeccontent IS NOT INITIAL.
      lv_rawstringcontent = lo_appspeccontent->get_content( ).
      lv_rawstringsha256 = lo_appspeccontent->get_sha256( ).
    ENDIF.
  ENDIF.
  lo_genericrevisioninfo = lo_result->get_revisioninfo( ).
  IF lo_genericrevisioninfo IS NOT INITIAL.
    lv_description = lo_genericrevisioninfo->get_description( ).
    LOOP AT lo_genericrevisioninfo->get_deploymentgroups( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_deploymentgroupname = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_timestamp = lo_genericrevisioninfo->get_firstusedtime( ).
    lv_timestamp = lo_genericrevisioninfo->get_lastusedtime( ).
    lv_timestamp = lo_genericrevisioninfo->get_registertime( ).
  ENDIF.
ENDIF.