/AWS1/IF_PRN=>DELETEENVIRONMENTTMPLVERSION()¶
About DeleteEnvironmentTemplateVersion¶
If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the
Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions
of the environment template exist. A major version of an environment template is a version that's not backward compatible.
Delete a minor version of an environment template if it isn't the Recommended version. Delete a
Recommended minor version of the environment template if no other minor versions of the environment template exist. A minor version of an
environment template is a version that's backward compatible.
Method Signature¶
METHODS /AWS1/IF_PRN~DELETEENVIRONMENTTMPLVERSION
IMPORTING
!IV_TEMPLATENAME TYPE /AWS1/PRNRESOURCENAME OPTIONAL
!IV_MAJORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART OPTIONAL
!IV_MINORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_prndelenvironmenttm03
RAISING
/AWS1/CX_PRNACCESSDENIEDEX
/AWS1/CX_PRNCONFLICTEXCEPTION
/AWS1/CX_PRNINTERNALSERVEREX
/AWS1/CX_PRNRESOURCENOTFOUNDEX
/AWS1/CX_PRNTHROTTLINGEX
/AWS1/CX_PRNVALIDATIONEX
/AWS1/CX_PRNCLIENTEXC
/AWS1/CX_PRNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_templatename TYPE /AWS1/PRNRESOURCENAME /AWS1/PRNRESOURCENAME¶
The name of the environment template.
iv_majorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
The environment template major version to delete.
iv_minorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
The environment template minor version to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_prndelenvironmenttm03 /AWS1/CL_PRNDELENVIRONMENTTM03¶
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->deleteenvironmenttmplversion(
iv_majorversion = |string|
iv_minorversion = |string|
iv_templatename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_environmenttemplatevers = lo_result->get_environmenttmplversion( ).
IF lo_environmenttemplatevers IS NOT INITIAL.
lv_resourcename = lo_environmenttemplatevers->get_templatename( ).
lv_templateversionpart = lo_environmenttemplatevers->get_majorversion( ).
lv_templateversionpart = lo_environmenttemplatevers->get_minorversion( ).
lv_templateversionpart = lo_environmenttemplatevers->get_recommendedminorversion( ).
lv_templateversionstatus = lo_environmenttemplatevers->get_status( ).
lv_statusmessage = lo_environmenttemplatevers->get_statusmessage( ).
lv_description = lo_environmenttemplatevers->get_description( ).
lv_environmenttemplatevers_1 = lo_environmenttemplatevers->get_arn( ).
lv_timestamp = lo_environmenttemplatevers->get_createdat( ).
lv_timestamp = lo_environmenttemplatevers->get_lastmodifiedat( ).
lv_templateschema = lo_environmenttemplatevers->get_schema( ).
ENDIF.
ENDIF.