Skip to content

/AWS1/IF_DRS=>PUTLAUNCHACTION()

About PutLaunchAction

Puts a resource launch action.

Method Signature

METHODS /AWS1/IF_DRS~PUTLAUNCHACTION
  IMPORTING
    !IV_RESOURCEID TYPE /AWS1/DRSLAUNCHACTIONRESRCID OPTIONAL
    !IV_ACTIONCODE TYPE /AWS1/DRSSSMDOCUMENTNAME OPTIONAL
    !IV_ORDER TYPE /AWS1/DRSLAUNCHACTIONORDER OPTIONAL
    !IV_ACTIONID TYPE /AWS1/DRSLAUNCHACTIONID OPTIONAL
    !IV_OPTIONAL TYPE /AWS1/DRSBOOLEAN OPTIONAL
    !IV_ACTIVE TYPE /AWS1/DRSBOOLEAN OPTIONAL
    !IV_NAME TYPE /AWS1/DRSLAUNCHACTIONNAME OPTIONAL
    !IV_ACTIONVERSION TYPE /AWS1/DRSLAUNCHACTIONVERSION OPTIONAL
    !IV_CATEGORY TYPE /AWS1/DRSLAUNCHACTIONCATEGORY OPTIONAL
    !IT_PARAMETERS TYPE /AWS1/CL_DRSLAUNCHACTIONPARAM=>TT_LAUNCHACTIONPARAMETERS OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/DRSLAUNCHACTIONDESC OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_drsputlaunchactionrsp
  RAISING
    /AWS1/CX_DRSCONFLICTEXCEPTION
    /AWS1/CX_DRSINTERNALSERVEREX
    /AWS1/CX_DRSRESOURCENOTFOUNDEX
    /AWS1/CX_DRSTHROTTLINGEX
    /AWS1/CX_DRSUNINITIALIZEDACEX
    /AWS1/CX_DRSVALIDATIONEX
    /AWS1/CX_DRSCLIENTEXC
    /AWS1/CX_DRSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_resourceid TYPE /AWS1/DRSLAUNCHACTIONRESRCID /AWS1/DRSLAUNCHACTIONRESRCID

Launch configuration template Id or Source Server Id

iv_actioncode TYPE /AWS1/DRSSSMDOCUMENTNAME /AWS1/DRSSSMDOCUMENTNAME

Launch action code.

iv_order TYPE /AWS1/DRSLAUNCHACTIONORDER /AWS1/DRSLAUNCHACTIONORDER

Launch action order.

iv_actionid TYPE /AWS1/DRSLAUNCHACTIONID /AWS1/DRSLAUNCHACTIONID

Launch action Id.

iv_optional TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN

Whether the launch will not be marked as failed if this action fails.

iv_active TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN

Whether the launch action is active.

iv_name TYPE /AWS1/DRSLAUNCHACTIONNAME /AWS1/DRSLAUNCHACTIONNAME

Launch action name.

iv_actionversion TYPE /AWS1/DRSLAUNCHACTIONVERSION /AWS1/DRSLAUNCHACTIONVERSION

Launch action version.

iv_category TYPE /AWS1/DRSLAUNCHACTIONCATEGORY /AWS1/DRSLAUNCHACTIONCATEGORY

Launch action category.

iv_description TYPE /AWS1/DRSLAUNCHACTIONDESC /AWS1/DRSLAUNCHACTIONDESC

Launch action description.

Optional arguments:

it_parameters TYPE /AWS1/CL_DRSLAUNCHACTIONPARAM=>TT_LAUNCHACTIONPARAMETERS TT_LAUNCHACTIONPARAMETERS

Launch action parameters.

RETURNING

oo_output TYPE REF TO /aws1/cl_drsputlaunchactionrsp /AWS1/CL_DRSPUTLAUNCHACTIONRSP

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->putlaunchaction(
  it_parameters = VALUE /aws1/cl_drslaunchactionparam=>tt_launchactionparameters(
    (
      VALUE /aws1/cl_drslaunchactionparam=>ts_launchactionparams_maprow(
        key = |string|
        value = new /aws1/cl_drslaunchactionparam(
          iv_type = |string|
          iv_value = |string|
        )
      )
    )
  )
  iv_actioncode = |string|
  iv_actionid = |string|
  iv_actionversion = |string|
  iv_active = ABAP_TRUE
  iv_category = |string|
  iv_description = |string|
  iv_name = |string|
  iv_optional = ABAP_TRUE
  iv_order = 123
  iv_resourceid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_launchactionresourceid = lo_result->get_resourceid( ).
  lv_launchactionid = lo_result->get_actionid( ).
  lv_ssmdocumentname = lo_result->get_actioncode( ).
  lv_launchactiontype = lo_result->get_type( ).
  lv_launchactionname = lo_result->get_name( ).
  lv_boolean = lo_result->get_active( ).
  lv_launchactionorder = lo_result->get_order( ).
  lv_launchactionversion = lo_result->get_actionversion( ).
  lv_boolean = lo_result->get_optional( ).
  LOOP AT lo_result->get_parameters( ) into ls_row.
    lv_key = ls_row-key.
    lo_value = ls_row-value.
    IF lo_value IS NOT INITIAL.
      lv_launchactionparameterva = lo_value->get_value( ).
      lv_launchactionparameterty = lo_value->get_type( ).
    ENDIF.
  ENDLOOP.
  lv_launchactiondescription = lo_result->get_description( ).
  lv_launchactioncategory = lo_result->get_category( ).
ENDIF.