/AWS1/IF_PTC=>UPDATERELATIONSHIP()¶
About UpdateRelationship¶
Updates the properties of a partner relationship.
Method Signature¶
METHODS /AWS1/IF_PTC~UPDATERELATIONSHIP
IMPORTING
!IV_CATALOG TYPE /AWS1/PTCCATALOG OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/PTCRELATIONSHIPID OPTIONAL
!IV_PROGRAMMNGMTACCOUNTID00 TYPE /AWS1/PTCPROGRAMMNGMTACCOUNTID OPTIONAL
!IV_REVISION TYPE /AWS1/PTCREVISION OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/PTCRELATIONSHIPDSPNAME OPTIONAL
!IO_REQUESTEDSUPPORTPLAN TYPE REF TO /AWS1/CL_PTCSUPPORTPLAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptcupdrelationshiprsp
RAISING
/AWS1/CX_PTCACCESSDENIEDEX
/AWS1/CX_PTCINTERNALSERVEREX
/AWS1/CX_PTCRESOURCENOTFOUNDEX
/AWS1/CX_PTCTHROTTLINGEX
/AWS1/CX_PTCVLDTNEXCEPTION
/AWS1/CX_PTCCONFLICTEXCEPTION
/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 relationship.
iv_identifier TYPE /AWS1/PTCRELATIONSHIPID /AWS1/PTCRELATIONSHIPID¶
The unique identifier of the relationship to update.
iv_programmngmtaccountid00 TYPE /AWS1/PTCPROGRAMMNGMTACCOUNTID /AWS1/PTCPROGRAMMNGMTACCOUNTID¶
The identifier of the program management account associated with the relationship.
Optional arguments:¶
iv_revision TYPE /AWS1/PTCREVISION /AWS1/PTCREVISION¶
The current revision number of the relationship.
iv_displayname TYPE /AWS1/PTCRELATIONSHIPDSPNAME /AWS1/PTCRELATIONSHIPDSPNAME¶
The new display name for the relationship.
io_requestedsupportplan TYPE REF TO /AWS1/CL_PTCSUPPORTPLAN /AWS1/CL_PTCSUPPORTPLAN¶
The updated support plan for the relationship.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ptcupdrelationshiprsp /AWS1/CL_PTCUPDRELATIONSHIPRSP¶
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->updaterelationship(
io_requestedsupportplan = new /aws1/cl_ptcsupportplan(
io_partnerledsupport = new /aws1/cl_ptcpartnerledsupport(
iv_coverage = |string|
iv_provider = |string|
iv_tamlocation = |string|
)
io_resoldbusiness = new /aws1/cl_ptcresoldbusiness( |string| )
io_resoldenterprise = new /aws1/cl_ptcresoldenterprise(
iv_chargeaccountid = |string|
iv_coverage = |string|
iv_tamlocation = |string|
)
)
iv_catalog = |string|
iv_displayname = |string|
iv_identifier = |string|
iv_programmngmtaccountid00 = |string|
iv_revision = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_updaterelationshipdetai = lo_result->get_relationshipdetail( ).
IF lo_updaterelationshipdetai IS NOT INITIAL.
lv_arn = lo_updaterelationshipdetai->get_arn( ).
lv_relationshipid = lo_updaterelationshipdetai->get_id( ).
lv_revision = lo_updaterelationshipdetai->get_revision( ).
lv_relationshipdisplayname = lo_updaterelationshipdetai->get_displayname( ).
ENDIF.
ENDIF.
Example for UpdateRelationship¶
Example for UpdateRelationship
DATA(lo_result) = lo_client->updaterelationship(
iv_catalog = |AWS|
iv_displayname = |TestDisplayName|
iv_identifier = |rs-l9o4fj3b5zb91|
iv_programmngmtaccountid00 = |pma-u8ic702rtzng8|
iv_revision = |3|
).