/AWS1/IF_PTS=>STRTENGAGEMENTFRMOPPORTUNI00()¶
About StartEngagementFromOpportunityTask¶
Similar to StartEngagementByAcceptingInvitationTask, this action is asynchronous and performs multiple steps before completion. This action orchestrates a comprehensive workflow that combines multiple API operations into a single task to create and initiate an engagement from an existing opportunity. It automatically executes a sequence of operations including GetOpportunity, CreateEngagement (if it doesn't exist), CreateResourceSnapshot, CreateResourceSnapshotJob, CreateEngagementInvitation (if not already invited/accepted), and SubmitOpportunity.
Method Signature¶
METHODS /AWS1/IF_PTS~STRTENGAGEMENTFRMOPPORTUNI00
IMPORTING
!IV_CATALOG TYPE /AWS1/PTSCATALOGIDENTIFIER OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/PTSCLIENTTOKEN OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/PTSOPPORTUNITYIDENTIFIER OPTIONAL
!IO_AWSSUBMISSION TYPE REF TO /AWS1/CL_PTSAWSSUBMISSION OPTIONAL
!IT_TAGS TYPE /AWS1/CL_PTSTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptsstrtengagementfr01
RAISING
/AWS1/CX_PTSACCESSDENIEDEX
/AWS1/CX_PTSCONFLICTEXCEPTION
/AWS1/CX_PTSINTERNALSERVEREX
/AWS1/CX_PTSRESOURCENOTFOUNDEX
/AWS1/CX_PTSSERVICEQUOTAEXCDEX
/AWS1/CX_PTSTHROTTLINGEX
/AWS1/CX_PTSVALIDATIONEX
/AWS1/CX_PTSCLIENTEXC
/AWS1/CX_PTSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_catalog TYPE /AWS1/PTSCATALOGIDENTIFIER /AWS1/PTSCATALOGIDENTIFIER¶
Specifies the catalog in which the engagement is tracked. Acceptable values include
AWSfor production andSandboxfor testing environments.
iv_clienttoken TYPE /AWS1/PTSCLIENTTOKEN /AWS1/PTSCLIENTTOKEN¶
A unique token provided by the client to help ensure the idempotency of the request. It helps prevent the same task from being performed multiple times.
iv_identifier TYPE /AWS1/PTSOPPORTUNITYIDENTIFIER /AWS1/PTSOPPORTUNITYIDENTIFIER¶
The unique identifier of the opportunity from which the engagement task is to be initiated. This helps ensure that the task is applied to the correct opportunity.
io_awssubmission TYPE REF TO /AWS1/CL_PTSAWSSUBMISSION /AWS1/CL_PTSAWSSUBMISSION¶
Indicates the level of AWS involvement in the opportunity. This field helps track AWS participation throughout the engagement, such as providing technical support, deal assistance, and sales support.
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_ptsstrtengagementfr01 /AWS1/CL_PTSSTRTENGAGEMENTFR01¶
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->strtengagementfrmopportuni00(
io_awssubmission = new /aws1/cl_ptsawssubmission(
iv_involvementtype = |string|
iv_visibility = |string|
)
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_engagementidentifier = lo_result->get_engagementid( ).
lv_engagementinvitationide = lo_result->get_engagementinvitationid( ).
ENDIF.