Skip to content

/AWS1/CL_PPT=>UPDATEAPPLICATIONSETTINGS()

About UpdateApplicationSettings

Updates the settings for an application.

Method Signature

IMPORTING

Required arguments:

iv_applicationid TYPE /AWS1/PPT__STRING /AWS1/PPT__STRING

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

io_writeapplicationstgsreq TYPE REF TO /AWS1/CL_PPTWRITEAPPLICATION00 /AWS1/CL_PPTWRITEAPPLICATION00

WriteApplicationSettingsRequest

RETURNING

oo_output TYPE REF TO /aws1/cl_pptupapplicationstg01 /AWS1/CL_PPTUPAPPLICATIONSTG01

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_ppt~updateapplicationsettings(
  io_writeapplicationstgsreq = new /aws1/cl_pptwriteapplication00(
    io_campaignhook = new /aws1/cl_pptcampaignhook(
      iv_lambdafunctionname = |string|
      iv_mode = |string|
      iv_weburl = |string|
    )
    io_journeylimits = new /aws1/cl_pptapplicationstgsj00(
      io_timeframecap = new /aws1/cl_pptjourneytimeframe00(
        iv_cap = 123
        iv_days = 123
      )
      iv_dailycap = 123
      iv_totalcap = 123
    )
    io_limits = new /aws1/cl_pptcampaignlimits(
      iv_daily = 123
      iv_maximumduration = 123
      iv_messagespersecond = 123
      iv_session = 123
      iv_total = 123
    )
    io_quiettime = new /aws1/cl_pptquiettime(
      iv_end = |string|
      iv_start = |string|
    )
    iv_cloudwatchmetricsenabled = ABAP_TRUE
    iv_eventtaggingenabled = ABAP_TRUE
  )
  iv_applicationid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_applicationsettingsreso = lo_result->get_applicationstgsresource( ).
  IF lo_applicationsettingsreso IS NOT INITIAL.
    lv___string = lo_applicationsettingsreso->get_applicationid( ).
    lo_campaignhook = lo_applicationsettingsreso->get_campaignhook( ).
    IF lo_campaignhook IS NOT INITIAL.
      lv___string = lo_campaignhook->get_lambdafunctionname( ).
      lv_mode = lo_campaignhook->get_mode( ).
      lv___string = lo_campaignhook->get_weburl( ).
    ENDIF.
    lv___string = lo_applicationsettingsreso->get_lastmodifieddate( ).
    lo_campaignlimits = lo_applicationsettingsreso->get_limits( ).
    IF lo_campaignlimits IS NOT INITIAL.
      lv___integer = lo_campaignlimits->get_daily( ).
      lv___integer = lo_campaignlimits->get_maximumduration( ).
      lv___integer = lo_campaignlimits->get_messagespersecond( ).
      lv___integer = lo_campaignlimits->get_total( ).
      lv___integer = lo_campaignlimits->get_session( ).
    ENDIF.
    lo_quiettime = lo_applicationsettingsreso->get_quiettime( ).
    IF lo_quiettime IS NOT INITIAL.
      lv___string = lo_quiettime->get_end( ).
      lv___string = lo_quiettime->get_start( ).
    ENDIF.
    lo_applicationsettingsjour = lo_applicationsettingsreso->get_journeylimits( ).
    IF lo_applicationsettingsjour IS NOT INITIAL.
      lv___integer = lo_applicationsettingsjour->get_dailycap( ).
      lo_journeytimeframecap = lo_applicationsettingsjour->get_timeframecap( ).
      IF lo_journeytimeframecap IS NOT INITIAL.
        lv___integer = lo_journeytimeframecap->get_cap( ).
        lv___integer = lo_journeytimeframecap->get_days( ).
      ENDIF.
      lv___integer = lo_applicationsettingsjour->get_totalcap( ).
    ENDIF.
  ENDIF.
ENDIF.