/AWS1/IF_PTC=>GETRELATIONSHIP()¶
About GetRelationship¶
Retrieves details of a specific partner relationship.
Method Signature¶
METHODS /AWS1/IF_PTC~GETRELATIONSHIP
IMPORTING
!IV_CATALOG TYPE /AWS1/PTCCATALOG OPTIONAL
!IV_PROGRAMMNGMTACCOUNTID00 TYPE /AWS1/PTCPROGRAMMNGMTACCOUNTID OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/PTCRELATIONSHIPID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptcgetrelationshiprsp
RAISING
/AWS1/CX_PTCACCESSDENIEDEX
/AWS1/CX_PTCINTERNALSERVEREX
/AWS1/CX_PTCRESOURCENOTFOUNDEX
/AWS1/CX_PTCTHROTTLINGEX
/AWS1/CX_PTCVLDTNEXCEPTION
/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_programmngmtaccountid00 TYPE /AWS1/PTCPROGRAMMNGMTACCOUNTID /AWS1/PTCPROGRAMMNGMTACCOUNTID¶
The identifier of the program management account associated with the relationship.
iv_identifier TYPE /AWS1/PTCRELATIONSHIPID /AWS1/PTCRELATIONSHIPID¶
The unique identifier of the relationship to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ptcgetrelationshiprsp /AWS1/CL_PTCGETRELATIONSHIPRSP¶
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->getrelationship(
iv_catalog = |string|
iv_identifier = |string|
iv_programmngmtaccountid00 = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_relationshipdetail = lo_result->get_relationshipdetail( ).
IF lo_relationshipdetail IS NOT INITIAL.
lv_arn = lo_relationshipdetail->get_arn( ).
lv_relationshipid = lo_relationshipdetail->get_id( ).
lv_revision = lo_relationshipdetail->get_revision( ).
lv_catalog = lo_relationshipdetail->get_catalog( ).
lv_associationtype = lo_relationshipdetail->get_associationtype( ).
lv_programmanagementaccoun = lo_relationshipdetail->get_programmngmtaccountid( ).
lv_accountid = lo_relationshipdetail->get_associatedaccountid( ).
lv_relationshipdisplayname = lo_relationshipdetail->get_displayname( ).
lv_resaleaccountmodel = lo_relationshipdetail->get_resaleaccountmodel( ).
lv_sector = lo_relationshipdetail->get_sector( ).
lv_datetime = lo_relationshipdetail->get_createdat( ).
lv_datetime = lo_relationshipdetail->get_updatedat( ).
lv_datetime = lo_relationshipdetail->get_startdate( ).
ENDIF.
ENDIF.
Example for GetRelationship¶
Example for GetRelationship
DATA(lo_result) = lo_client->getrelationship(
iv_catalog = |AWS|
iv_identifier = |rs-l9o4fj3b5zb91|
iv_programmngmtaccountid00 = |pma-u8ic702rtzng8|
).