Skip to content

/AWS1/CL_FRM=>CREATESTACKREFACTOR()

About CreateStackRefactor

Creates a refactor across multiple stacks, with the list of stacks and resources that are affected.

Method Signature

IMPORTING

Required arguments:

it_stackdefinitions TYPE /AWS1/CL_FRMSTACKDEFINITION=>TT_STACKDEFINITIONS TT_STACKDEFINITIONS

The stacks being refactored.

Optional arguments:

iv_description TYPE /AWS1/FRMDESCRIPTION /AWS1/FRMDESCRIPTION

A description to help you identify the stack refactor.

iv_enablestackcreation TYPE /AWS1/FRMENABLESTACKCREATION /AWS1/FRMENABLESTACKCREATION

Determines if a new stack is created with the refactor.

it_resourcemappings TYPE /AWS1/CL_FRMRESOURCEMAPPING=>TT_RESOURCEMAPPINGS TT_RESOURCEMAPPINGS

The mappings for the stack resource Source and stack resource Destination.

RETURNING

oo_output TYPE REF TO /aws1/cl_frmcrestackrefactor01 /AWS1/CL_FRMCRESTACKREFACTOR01

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->/aws1/if_frm~createstackrefactor(
  it_resourcemappings = VALUE /aws1/cl_frmresourcemapping=>tt_resourcemappings(
    (
      new /aws1/cl_frmresourcemapping(
        io_destination = new /aws1/cl_frmresourcelocation(
          iv_logicalresourceid = |string|
          iv_stackname = |string|
        )
        io_source = new /aws1/cl_frmresourcelocation(
          iv_logicalresourceid = |string|
          iv_stackname = |string|
        )
      )
    )
  )
  it_stackdefinitions = VALUE /aws1/cl_frmstackdefinition=>tt_stackdefinitions(
    (
      new /aws1/cl_frmstackdefinition(
        iv_stackname = |string|
        iv_templatebody = |string|
        iv_templateurl = |string|
      )
    )
  )
  iv_description = |string|
  iv_enablestackcreation = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_stackrefactorid = lo_result->get_stackrefactorid( ).
ENDIF.