/AWS1/IF_EBN=>UPDATEAPPLICATIONRESOURCELC()¶
About UpdateApplicationResourceLifecycle¶
Modifies lifecycle settings for an application.
Method Signature¶
METHODS /AWS1/IF_EBN~UPDATEAPPLICATIONRESOURCELC
IMPORTING
!IV_APPLICATIONNAME TYPE /AWS1/EBNAPPLICATIONNAME OPTIONAL
!IO_RESOURCELIFECYCLECONFIG TYPE REF TO /AWS1/CL_EBNAPPLICATIONRESRC00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ebnapplicationresrc01
RAISING
/AWS1/CX_EBNINSUFFICIENTPRIV00
/AWS1/CX_EBNCLIENTEXC
/AWS1/CX_EBNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationname TYPE /AWS1/EBNAPPLICATIONNAME /AWS1/EBNAPPLICATIONNAME¶
The name of the application.
io_resourcelifecycleconfig TYPE REF TO /AWS1/CL_EBNAPPLICATIONRESRC00 /AWS1/CL_EBNAPPLICATIONRESRC00¶
The lifecycle configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ebnapplicationresrc01 /AWS1/CL_EBNAPPLICATIONRESRC01¶
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->updateapplicationresourcelc(
io_resourcelifecycleconfig = new /aws1/cl_ebnapplicationresrc00(
io_versionlifecycleconfig = new /aws1/cl_ebnapplicationvrslc00(
io_maxagerule = new /aws1/cl_ebnmaxagerule(
iv_deletesourcefroms3 = ABAP_TRUE
iv_enabled = ABAP_TRUE
iv_maxageindays = 123
)
io_maxcountrule = new /aws1/cl_ebnmaxcountrule(
iv_deletesourcefroms3 = ABAP_TRUE
iv_enabled = ABAP_TRUE
iv_maxcount = 123
)
)
iv_servicerole = |string|
)
iv_applicationname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_applicationname = lo_result->get_applicationname( ).
lo_applicationresourcelife = lo_result->get_resourcelifecycleconfig( ).
IF lo_applicationresourcelife IS NOT INITIAL.
lv_string = lo_applicationresourcelife->get_servicerole( ).
lo_applicationversionlifec = lo_applicationresourcelife->get_versionlifecycleconfig( ).
IF lo_applicationversionlifec IS NOT INITIAL.
lo_maxcountrule = lo_applicationversionlifec->get_maxcountrule( ).
IF lo_maxcountrule IS NOT INITIAL.
lv_boxedboolean = lo_maxcountrule->get_enabled( ).
lv_boxedint = lo_maxcountrule->get_maxcount( ).
lv_boxedboolean = lo_maxcountrule->get_deletesourcefroms3( ).
ENDIF.
lo_maxagerule = lo_applicationversionlifec->get_maxagerule( ).
IF lo_maxagerule IS NOT INITIAL.
lv_boxedboolean = lo_maxagerule->get_enabled( ).
lv_boxedint = lo_maxagerule->get_maxageindays( ).
lv_boxedboolean = lo_maxagerule->get_deletesourcefroms3( ).
ENDIF.
ENDIF.
ENDIF.
ENDIF.