Skip to content

/AWS1/CL_PTS=>STRTENGAGEMENTFRMOPPORTUNI00()

About StartEngagementFromOpportunityTask

This action initiates the engagement process from an existing opportunity by accepting the engagement invitation and creating a corresponding opportunity in the partner’s system. Similar to StartEngagementByAcceptingInvitationTask, this action is asynchronous and performs multiple steps before completion.

Method Signature

IMPORTING

Required arguments:

iv_catalog TYPE /AWS1/PTSCATALOGIDENTIFIER /AWS1/PTSCATALOGIDENTIFIER

Specifies the catalog in which the engagement is tracked. Acceptable values include AWS for production and Sandbox for 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

AwsSubmission

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

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~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.