/AWS1/CL_PTS=>GETENGAGEMENT()
¶
About GetEngagement¶
Use this action to retrieve the engagement record for a given EngagementIdentifier
.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_catalog
TYPE /AWS1/PTSCATALOGIDENTIFIER
/AWS1/PTSCATALOGIDENTIFIER
¶
Specifies the catalog related to the engagement request. Valid values are
AWS
andSandbox
.
iv_identifier
TYPE /AWS1/PTSENGAGEMENTARNORID
/AWS1/PTSENGAGEMENTARNORID
¶
Specifies the identifier of the Engagement record to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ptsgetengagementrsp
/AWS1/CL_PTSGETENGAGEMENTRSP
¶
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~getengagement(
iv_catalog = |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_engagementidentifier = lo_result->get_id( ).
lv_engagementarn = lo_result->get_arn( ).
lv_engagementtitle = lo_result->get_title( ).
lv_engagementdescription = lo_result->get_description( ).
lv_datetime = lo_result->get_createdat( ).
lv_awsaccount = lo_result->get_createdby( ).
lv_integer = lo_result->get_membercount( ).
LOOP AT lo_result->get_contexts( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_engagementcontexttype = lo_row_1->get_type( ).
lo_engagementcontextpayloa = lo_row_1->get_payload( ).
IF lo_engagementcontextpayloa IS NOT INITIAL.
lo_customerprojectscontext = lo_engagementcontextpayloa->get_customerproject( ).
IF lo_customerprojectscontext IS NOT INITIAL.
lo_engagementcustomer = lo_customerprojectscontext->get_customer( ).
IF lo_engagementcustomer IS NOT INITIAL.
lv_industry = lo_engagementcustomer->get_industry( ).
lv_companyname = lo_engagementcustomer->get_companyname( ).
lv_companywebsiteurl = lo_engagementcustomer->get_websiteurl( ).
lv_countrycode = lo_engagementcustomer->get_countrycode( ).
ENDIF.
lo_engagementcustomerproje = lo_customerprojectscontext->get_project( ).
IF lo_engagementcustomerproje IS NOT INITIAL.
lv_engagementcustomerproje_1 = lo_engagementcustomerproje->get_title( ).
lv_engagementcustomerbusin = lo_engagementcustomerproje->get_businessproblem( ).
lv_string = lo_engagementcustomerproje->get_targetcompletiondate( ).
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.