Skip to content

/AWS1/IF_ORG=>UPDATERESPONSIBILITYTRANSFER()

About UpdateResponsibilityTransfer

Updates a transfer. A transfer is the arrangement between two management accounts where one account designates the other with specified responsibilities for their organization.

You can update the name assigned to a transfer.

Method Signature

METHODS /AWS1/IF_ORG~UPDATERESPONSIBILITYTRANSFER
  IMPORTING
    !IV_ID TYPE /AWS1/ORGRESPONSIBILITYXFERID OPTIONAL
    !IV_NAME TYPE /AWS1/ORGRESPONSIBILITYXFERN00 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_orgupresponsibility01
  RAISING
    /AWS1/CX_ORGACCESSDENIEDEX
    /AWS1/CX_ORGAWSORGSNOTINUSEEX
    /AWS1/CX_ORGCNSTRNTVIOLATIONEX
    /AWS1/CX_ORGINVALIDINPUTEX
    /AWS1/CX_ORGRESPONSIBILITYXF00
    /AWS1/CX_ORGSERVICEEXCEPTION
    /AWS1/CX_ORGTOOMANYREQUESTSEX
    /AWS1/CX_ORGUNSUPPEDAPIENDPTEX
    /AWS1/CX_ORGCLIENTEXC
    /AWS1/CX_ORGSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_id TYPE /AWS1/ORGRESPONSIBILITYXFERID /AWS1/ORGRESPONSIBILITYXFERID

ID for the transfer.

iv_name TYPE /AWS1/ORGRESPONSIBILITYXFERN00 /AWS1/ORGRESPONSIBILITYXFERN00

New name you want to assign to the transfer.

RETURNING

oo_output TYPE REF TO /aws1/cl_orgupresponsibility01 /AWS1/CL_ORGUPRESPONSIBILITY01

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->updateresponsibilitytransfer(
  iv_id = |string|
  iv_name = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_responsibilitytransfer = lo_result->get_responsibilitytransfer( ).
  IF lo_responsibilitytransfer IS NOT INITIAL.
    lv_responsibilitytransfera = lo_responsibilitytransfer->get_arn( ).
    lv_responsibilitytransfern = lo_responsibilitytransfer->get_name( ).
    lv_responsibilitytransferi = lo_responsibilitytransfer->get_id( ).
    lv_responsibilitytransfert = lo_responsibilitytransfer->get_type( ).
    lv_responsibilitytransfers = lo_responsibilitytransfer->get_status( ).
    lo_transferparticipant = lo_responsibilitytransfer->get_source( ).
    IF lo_transferparticipant IS NOT INITIAL.
      lv_accountid = lo_transferparticipant->get_managementaccountid( ).
      lv_email = lo_transferparticipant->get_managementaccountemail( ).
    ENDIF.
    lo_transferparticipant = lo_responsibilitytransfer->get_target( ).
    IF lo_transferparticipant IS NOT INITIAL.
      lv_accountid = lo_transferparticipant->get_managementaccountid( ).
      lv_email = lo_transferparticipant->get_managementaccountemail( ).
    ENDIF.
    lv_timestamp = lo_responsibilitytransfer->get_starttimestamp( ).
    lv_timestamp = lo_responsibilitytransfer->get_endtimestamp( ).
    lv_handshakeid = lo_responsibilitytransfer->get_activehandshakeid( ).
  ENDIF.
ENDIF.