/AWS1/CL_PTS=>STRTENGAGEMENTBYACCINGINVI00()
¶
About StartEngagementByAcceptingInvitationTask¶
This action starts the engagement by accepting an EngagementInvitation
. The task is asynchronous and involves the following steps: accepting the invitation, creating an opportunity in the partner’s account from the AWS opportunity, and copying details for tracking. When completed, an Opportunity Created
event is generated, indicating that the opportunity has been successfully created in the partner's account.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_catalog
TYPE /AWS1/PTSCATALOGIDENTIFIER
/AWS1/PTSCATALOGIDENTIFIER
¶
Specifies the catalog related to the task. Use
AWS
for production engagements andSandbox
for testing scenarios.
iv_clienttoken
TYPE /AWS1/PTSCLIENTTOKEN
/AWS1/PTSCLIENTTOKEN
¶
A unique, case-sensitive identifier provided by the client that helps to ensure the idempotency of the request. This can be a random or meaningful string but must be unique for each request.
iv_identifier
TYPE /AWS1/PTSENGAGEMENTINVITATIO00
/AWS1/PTSENGAGEMENTINVITATIO00
¶
Specifies the unique identifier of the
EngagementInvitation
to be accepted. Providing the correct identifier helps ensure that the correct engagement is processed.
Optional arguments:¶
it_tags
TYPE /AWS1/CL_PTSTAG=>TT_TAGLIST
TT_TAGLIST
¶
A map of the key-value pairs of the tag or tags to assign.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ptsstrtengagementby01
/AWS1/CL_PTSSTRTENGAGEMENTBY01
¶
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_pts~strtengagementbyaccinginvi00(
it_tags = VALUE /aws1/cl_ptstag=>tt_taglist(
(
new /aws1/cl_ptstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_catalog = |string|
iv_clienttoken = |string|
iv_identifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_taskidentifier = lo_result->get_taskid( ).
lv_taskarn = lo_result->get_taskarn( ).
lv_datetime = lo_result->get_starttime( ).
lv_taskstatus = lo_result->get_taskstatus( ).
lv_string = lo_result->get_message( ).
lv_reasoncode = lo_result->get_reasoncode( ).
lv_opportunityidentifier = lo_result->get_opportunityid( ).
lv_resourcesnapshotjobiden = lo_result->get_resourcesnapshotjobid( ).
lv_engagementinvitationide = lo_result->get_engagementinvitationid( ).
ENDIF.