/AWS1/IF_SSW=>STARTAPP()¶
About StartApp¶
Starts a custom app with the configuration specified in the simulation schema.
Method Signature¶
METHODS /AWS1/IF_SSW~STARTAPP
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/SSWCLIENTTOKEN OPTIONAL
!IV_SIMULATION TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 OPTIONAL
!IV_DOMAIN TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 OPTIONAL
!IV_NAME TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/SSWDESCRIPTION OPTIONAL
!IO_LAUNCHOVERRIDES TYPE REF TO /AWS1/CL_SSWLAUNCHOVERRIDES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sswstartappoutput
RAISING
/AWS1/CX_SSWACCESSDENIEDEX
/AWS1/CX_SSWCONFLICTEXCEPTION
/AWS1/CX_SSWINTERNALSERVEREX
/AWS1/CX_SSWSERVICEQUOTAEXCDEX
/AWS1/CX_SSWVALIDATIONEX
/AWS1/CX_SSWCLIENTEXC
/AWS1/CX_SSWSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_simulation TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 /AWS1/SSWSIMSPACEWEAVERRESRC00¶
The name of the simulation of the app.
iv_domain TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 /AWS1/SSWSIMSPACEWEAVERRESRC00¶
The name of the domain of the app.
iv_name TYPE /AWS1/SSWSIMSPACEWEAVERRESRC00 /AWS1/SSWSIMSPACEWEAVERRESRC00¶
The name of the app.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SSWCLIENTTOKEN /AWS1/SSWCLIENTTOKEN¶
A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A
ClientTokenis also known as an idempotency token. AClientTokenexpires after 24 hours.
iv_description TYPE /AWS1/SSWDESCRIPTION /AWS1/SSWDESCRIPTION¶
The description of the app.
io_launchoverrides TYPE REF TO /AWS1/CL_SSWLAUNCHOVERRIDES /AWS1/CL_SSWLAUNCHOVERRIDES¶
LaunchOverrides
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sswstartappoutput /AWS1/CL_SSWSTARTAPPOUTPUT¶
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->startapp(
io_launchoverrides = new /aws1/cl_sswlaunchoverrides(
it_launchcommands = VALUE /aws1/cl_sswlaunchcmdlist_w=>tt_launchcommandlist(
( new /aws1/cl_sswlaunchcmdlist_w( |string| ) )
)
)
iv_clienttoken = |string|
iv_description = |string|
iv_domain = |string|
iv_name = |string|
iv_simulation = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_simspaceweaverresourcen = lo_result->get_name( ).
lv_simspaceweaverresourcen = lo_result->get_domain( ).
lv_simspaceweaverresourcen = lo_result->get_simulation( ).
ENDIF.