/AWS1/IF_PTS=>LSTOPPORTUNITYFRMENGAGEMEN00()¶
About ListOpportunityFromEngagementTasks¶
Lists all in-progress, completed, or failed opportunity creation tasks from engagements that were initiated by the caller's account.
Method Signature¶
METHODS /AWS1/IF_PTS~LSTOPPORTUNITYFRMENGAGEMEN00
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/PTSINTEGER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/PTSSTRING OPTIONAL
!IO_SORT TYPE REF TO /AWS1/CL_PTSLISTTASKSSORTBASE OPTIONAL
!IV_CATALOG TYPE /AWS1/PTSCATALOGIDENTIFIER OPTIONAL
!IT_TASKSTATUS TYPE /AWS1/CL_PTSTASKSTATUSES_W=>TT_TASKSTATUSES OPTIONAL
!IT_TASKIDENTIFIER TYPE /AWS1/CL_PTSTASKIDENTIFIERS_W=>TT_TASKIDENTIFIERS OPTIONAL
!IT_OPPORTUNITYIDENTIFIER TYPE /AWS1/CL_PTSOPPORTUNITYIDS_W=>TT_OPPORTUNITYIDENTIFIERS OPTIONAL
!IT_ENGAGEMENTIDENTIFIER TYPE /AWS1/CL_PTSENGAGEMENTIDS_W=>TT_ENGAGEMENTIDENTIFIERS OPTIONAL
!IT_CONTEXTIDENTIFIER TYPE /AWS1/CL_PTSCONTEXTIDS_W=>TT_CONTEXTIDENTIFIERS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptslstopportunityfr01
RAISING
/AWS1/CX_PTSACCESSDENIEDEX
/AWS1/CX_PTSINTERNALSERVEREX
/AWS1/CX_PTSRESOURCENOTFOUNDEX
/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 related to the request. Valid values are
AWSfor production environments andSandboxfor testing or development purposes. The catalog determines which environment the task data is retrieved from.
Optional arguments:¶
iv_maxresults TYPE /AWS1/PTSINTEGER /AWS1/PTSINTEGER¶
Specifies the maximum number of results to return in a single page of the response. Use this parameter to control the number of items returned in each request, which can be useful for performance tuning and managing large result sets.
iv_nexttoken TYPE /AWS1/PTSSTRING /AWS1/PTSSTRING¶
The token for requesting the next page of results. This value is obtained from the NextToken field in the response of a previous call to this API. Use this parameter for pagination when the result set spans multiple pages.
io_sort TYPE REF TO /AWS1/CL_PTSLISTTASKSSORTBASE /AWS1/CL_PTSLISTTASKSSORTBASE¶
Defines the sorting parameters for listing tasks. This structure allows for specifying the field to sort by and the order of sorting.
it_taskstatus TYPE /AWS1/CL_PTSTASKSTATUSES_W=>TT_TASKSTATUSES TT_TASKSTATUSES¶
Filters the tasks based on their current status. This allows you to focus on tasks in specific states. Valid values are
COMPLETEfor tasks that have finished successfully,INPROGRESSfor tasks that are currently running, andFAILEDfor tasks that have encountered an error and failed to complete.
it_taskidentifier TYPE /AWS1/CL_PTSTASKIDENTIFIERS_W=>TT_TASKIDENTIFIERS TT_TASKIDENTIFIERS¶
Filters tasks by their unique identifiers. Use this when you want to retrieve information about specific tasks. Provide the task ID to get details about a particular opportunity creation task.
it_opportunityidentifier TYPE /AWS1/CL_PTSOPPORTUNITYIDS_W=>TT_OPPORTUNITYIDENTIFIERS TT_OPPORTUNITYIDENTIFIERS¶
Filters tasks by the identifiers of the opportunities they created or are associated with. Use this to find tasks related to specific opportunity creation processes.
it_engagementidentifier TYPE /AWS1/CL_PTSENGAGEMENTIDS_W=>TT_ENGAGEMENTIDENTIFIERS TT_ENGAGEMENTIDENTIFIERS¶
Filters tasks by the identifiers of the engagements from which opportunities are being created. Use this to find all opportunity creation tasks associated with a specific engagement.
it_contextidentifier TYPE /AWS1/CL_PTSCONTEXTIDS_W=>TT_CONTEXTIDENTIFIERS TT_CONTEXTIDENTIFIERS¶
Filters tasks by the identifiers of the engagement contexts associated with the opportunity creation. Use this to find tasks related to specific contextual information within engagements that are being converted to opportunities.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ptslstopportunityfr01 /AWS1/CL_PTSLSTOPPORTUNITYFR01¶
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->lstopportunityfrmengagemen00(
io_sort = new /aws1/cl_ptslisttaskssortbase(
iv_sortby = |string|
iv_sortorder = |string|
)
it_contextidentifier = VALUE /aws1/cl_ptscontextids_w=>tt_contextidentifiers(
( new /aws1/cl_ptscontextids_w( |string| ) )
)
it_engagementidentifier = VALUE /aws1/cl_ptsengagementids_w=>tt_engagementidentifiers(
( new /aws1/cl_ptsengagementids_w( |string| ) )
)
it_opportunityidentifier = VALUE /aws1/cl_ptsopportunityids_w=>tt_opportunityidentifiers(
( new /aws1/cl_ptsopportunityids_w( |string| ) )
)
it_taskidentifier = VALUE /aws1/cl_ptstaskidentifiers_w=>tt_taskidentifiers(
( new /aws1/cl_ptstaskidentifiers_w( |string| ) )
)
it_taskstatus = VALUE /aws1/cl_ptstaskstatuses_w=>tt_taskstatuses(
( new /aws1/cl_ptstaskstatuses_w( |string| ) )
)
iv_catalog = |string|
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_tasksummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_taskidentifier = lo_row_1->get_taskid( ).
lv_taskarn = lo_row_1->get_taskarn( ).
lv_datetime = lo_row_1->get_starttime( ).
lv_taskstatus = lo_row_1->get_taskstatus( ).
lv_string = lo_row_1->get_message( ).
lv_reasoncode = lo_row_1->get_reasoncode( ).
lv_opportunityidentifier = lo_row_1->get_opportunityid( ).
lv_resourcesnapshotjobiden = lo_row_1->get_resourcesnapshotjobid( ).
lv_engagementidentifier = lo_row_1->get_engagementid( ).
lv_contextidentifier = lo_row_1->get_contextid( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.