/AWS1/CL_PTS=>GETENGAGEMENTINVITATION()
¶
About GetEngagementInvitation¶
Retrieves the details of an engagement invitation shared by AWS with a partner. The information includes aspects such as customer, project details, and lifecycle information. To connect an engagement invitation with an opportunity, match the invitation’s Payload.Project.Title
with opportunity Project.Title
.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_catalog
TYPE /AWS1/PTSCATALOGIDENTIFIER
/AWS1/PTSCATALOGIDENTIFIER
¶
Specifies the catalog associated with the request. The field accepts values from the predefined set:
AWS
for live operations orSandbox
for testing environments.
iv_identifier
TYPE /AWS1/PTSENGAGEMENTINVITATIO00
/AWS1/PTSENGAGEMENTINVITATIO00
¶
Specifies the unique identifier for the retrieved engagement invitation.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ptsgetengagementinv01
/AWS1/CL_PTSGETENGAGEMENTINV01
¶
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~getengagementinvitation(
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_string = lo_result->get_arn( ).
lv_engagementinvitationpay = lo_result->get_payloadtype( ).
lv_engagementinvitationarn = lo_result->get_id( ).
lv_engagementidentifier = lo_result->get_engagementid( ).
lv_engagementtitle = lo_result->get_engagementtitle( ).
lv_invitationstatus = lo_result->get_status( ).
lv_datetime = lo_result->get_invitationdate( ).
lv_datetime = lo_result->get_expirationdate( ).
lv_awsaccount = lo_result->get_senderawsaccountid( ).
lv_string = lo_result->get_sendercompanyname( ).
lo_receiver = lo_result->get_receiver( ).
IF lo_receiver IS NOT INITIAL.
lo_accountreceiver = lo_receiver->get_account( ).
IF lo_accountreceiver IS NOT INITIAL.
lv_alias = lo_accountreceiver->get_alias( ).
lv_awsaccount = lo_accountreceiver->get_awsaccountid( ).
ENDIF.
ENDIF.
lv_catalogidentifier = lo_result->get_catalog( ).
lv_rejectionreasonstring = lo_result->get_rejectionreason( ).
lo_payload = lo_result->get_payload( ).
IF lo_payload IS NOT INITIAL.
lo_opportunityinvitationpa = lo_payload->get_opportunityinvitation( ).
IF lo_opportunityinvitationpa IS NOT INITIAL.
LOOP AT lo_opportunityinvitationpa->get_sendercontacts( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_sendercontactemail = lo_row_1->get_email( ).
lv_name = lo_row_1->get_firstname( ).
lv_name = lo_row_1->get_lastname( ).
lv_jobtitle = lo_row_1->get_businesstitle( ).
lv_phonenumber = lo_row_1->get_phone( ).
ENDIF.
ENDLOOP.
LOOP AT lo_opportunityinvitationpa->get_receiverresponsibilities( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_receiverresponsibility = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_engagementcustomer = lo_opportunityinvitationpa->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_projectdetails = lo_opportunityinvitationpa->get_project( ).
IF lo_projectdetails IS NOT INITIAL.
lv_engagementcustomerbusin = lo_projectdetails->get_businessproblem( ).
lv_string = lo_projectdetails->get_title( ).
lv_date = lo_projectdetails->get_targetcompletiondate( ).
LOOP AT lo_projectdetails->get_expectedcustomerspend( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_amount( ).
lv_currencycode = lo_row_5->get_currencycode( ).
lv_paymentfrequency = lo_row_5->get_frequency( ).
lv_string = lo_row_5->get_targetcompany( ).
lv_websiteurl = lo_row_5->get_estimationurl( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
lv_invitationmessage = lo_result->get_invitationmessage( ).
lv_engagementdescription = lo_result->get_engagementdescription( ).
LOOP AT lo_result->get_existingmembers( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_membercompanyname = lo_row_7->get_companyname( ).
lv_string = lo_row_7->get_websiteurl( ).
ENDIF.
ENDLOOP.
ENDIF.