/AWS1/IF_SSS=>STOPAPPLICATION()¶
About StopApplication¶
Request is an operation to stop an application.
Parameter ApplicationId is required. Parameters StopConnectedEntity and IncludeEc2InstanceShutdown are optional.
Method Signature¶
METHODS /AWS1/IF_SSS~STOPAPPLICATION
IMPORTING
!IV_APPLICATIONID TYPE /AWS1/SSSAPPLICATIONID OPTIONAL
!IV_STOPCONNECTEDENTITY TYPE /AWS1/SSSCONNECTEDENTITYTYPE OPTIONAL
!IV_INCLUDEEC2INSTSHUTDOWN TYPE /AWS1/SSSBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sssstopapplicationout
RAISING
/AWS1/CX_SSSCONFLICTEXCEPTION
/AWS1/CX_SSSINTERNALSERVEREX
/AWS1/CX_SSSRESOURCENOTFOUNDEX
/AWS1/CX_SSSVALIDATIONEX
/AWS1/CX_SSSCLIENTEXC
/AWS1/CX_SSSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationid TYPE /AWS1/SSSAPPLICATIONID /AWS1/SSSAPPLICATIONID¶
The ID of the application.
Optional arguments:¶
iv_stopconnectedentity TYPE /AWS1/SSSCONNECTEDENTITYTYPE /AWS1/SSSCONNECTEDENTITYTYPE¶
Specify the
ConnectedEntityType. Accepted type isDBMS.If this parameter is included, the connected DBMS (Database Management System) will be stopped.
iv_includeec2instshutdown TYPE /AWS1/SSSBOOLEAN /AWS1/SSSBOOLEAN¶
Boolean. If included and if set to
True, the StopApplication operation will shut down the associated Amazon EC2 instance in addition to the application.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sssstopapplicationout /AWS1/CL_SSSSTOPAPPLICATIONOUT¶
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->stopapplication(
iv_applicationid = |string|
iv_includeec2instshutdown = ABAP_TRUE
iv_stopconnectedentity = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_operationid = lo_result->get_operationid( ).
ENDIF.