Skip to content

/AWS1/IF_PTC=>CREATEPROGRAMMNGMTACCOUNT()

About CreateProgramManagementAccount

Creates a new program management account for managing partner relationships.

Method Signature

METHODS /AWS1/IF_PTC~CREATEPROGRAMMNGMTACCOUNT
  IMPORTING
    !IV_CATALOG TYPE /AWS1/PTCCATALOG OPTIONAL
    !IV_PROGRAM TYPE /AWS1/PTCPROGRAM OPTIONAL
    !IV_DISPLAYNAME TYPE /AWS1/PTCPROGRAMMGMTACCDSPNAME OPTIONAL
    !IV_ACCOUNTID TYPE /AWS1/PTCACCOUNTID OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/PTCCLIENTTOKEN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_PTCTAG=>TT_TAGLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptccreprogrammgtacrsp
  RAISING
    /AWS1/CX_PTCACCESSDENIEDEX
    /AWS1/CX_PTCINTERNALSERVEREX
    /AWS1/CX_PTCRESOURCENOTFOUNDEX
    /AWS1/CX_PTCTHROTTLINGEX
    /AWS1/CX_PTCVLDTNEXCEPTION
    /AWS1/CX_PTCCONFLICTEXCEPTION
    /AWS1/CX_PTCSERVICEQUOTAEXCDEX
    /AWS1/CX_PTCCLIENTEXC
    /AWS1/CX_PTCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_catalog TYPE /AWS1/PTCCATALOG /AWS1/PTCCATALOG

The catalog identifier for the program management account.

iv_program TYPE /AWS1/PTCPROGRAM /AWS1/PTCPROGRAM

The program type for the management account.

iv_displayname TYPE /AWS1/PTCPROGRAMMGMTACCDSPNAME /AWS1/PTCPROGRAMMGMTACCDSPNAME

A human-readable name for the program management account.

iv_accountid TYPE /AWS1/PTCACCOUNTID /AWS1/PTCACCOUNTID

The AWS account ID to associate with the program management account.

Optional arguments:

iv_clienttoken TYPE /AWS1/PTCCLIENTTOKEN /AWS1/PTCCLIENTTOKEN

A unique, case-sensitive identifier to ensure idempotency of the request.

it_tags TYPE /AWS1/CL_PTCTAG=>TT_TAGLIST TT_TAGLIST

Key-value pairs to associate with the program management account.

RETURNING

oo_output TYPE REF TO /aws1/cl_ptccreprogrammgtacrsp /AWS1/CL_PTCCREPROGRAMMGTACRSP

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->createprogrammngmtaccount(
  it_tags = VALUE /aws1/cl_ptctag=>tt_taglist(
    (
      new /aws1/cl_ptctag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_accountid = |string|
  iv_catalog = |string|
  iv_clienttoken = |string|
  iv_displayname = |string|
  iv_program = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_createprogrammanagement = lo_result->get_programmngmtacctdetail( ).
  IF lo_createprogrammanagement IS NOT INITIAL.
    lv_programmanagementaccoun = lo_createprogrammanagement->get_id( ).
    lv_arn = lo_createprogrammanagement->get_arn( ).
  ENDIF.
ENDIF.

Example for CreateProgramManagementAccount

Example for CreateProgramManagementAccount

DATA(lo_result) = lo_client->createprogrammngmtaccount(
  iv_accountid = |111122223333|
  iv_catalog = |AWS|
  iv_clienttoken = |clientToken|
  iv_displayname = |TestDisplayName|
  iv_program = |SOLUTION_PROVIDER|
).