/AWS1/IF_PRN=>UPDATESERVICETEMPLATEVERSION()¶
About UpdateServiceTemplateVersion¶
Update a major or minor version of a service template.
Method Signature¶
METHODS /AWS1/IF_PRN~UPDATESERVICETEMPLATEVERSION
IMPORTING
!IV_TEMPLATENAME TYPE /AWS1/PRNRESOURCENAME OPTIONAL
!IV_MAJORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART OPTIONAL
!IV_MINORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/PRNDESCRIPTION OPTIONAL
!IV_STATUS TYPE /AWS1/PRNTEMPLATEVERSIONSTATUS OPTIONAL
!IT_COMPATIBLEENVIRONMENTTM00 TYPE /AWS1/CL_PRNCOMPATIBLEENVIRO01=>TT_COMPATIBLEENVIRONMENTTMPL01 OPTIONAL
!IT_SUPPORTEDCOMPONENTSOURCES TYPE /AWS1/CL_PRNSVCTMPLSUPPEDCOM00=>TT_SVCTMPLSUPPEDCOMPONENTSRC00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_prnupdsvctmplvrsout
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 service template.
iv_majorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
To update a major version of a service template, include
major Version.
iv_minorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
To update a minor version of a service template, include
minorVersion.
Optional arguments:¶
iv_description TYPE /AWS1/PRNDESCRIPTION /AWS1/PRNDESCRIPTION¶
A description of a service template version to update.
iv_status TYPE /AWS1/PRNTEMPLATEVERSIONSTATUS /AWS1/PRNTEMPLATEVERSIONSTATUS¶
The status of the service template minor version to update.
it_compatibleenvironmenttm00 TYPE /AWS1/CL_PRNCOMPATIBLEENVIRO01=>TT_COMPATIBLEENVIRONMENTTMPL01 TT_COMPATIBLEENVIRONMENTTMPL01¶
An array of environment template objects that are compatible with this service template version. A service instance based on this service template version can run in environments based on compatible templates.
it_supportedcomponentsources TYPE /AWS1/CL_PRNSVCTMPLSUPPEDCOM00=>TT_SVCTMPLSUPPEDCOMPONENTSRC00 TT_SVCTMPLSUPPEDCOMPONENTSRC00¶
An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
A change to
supportedComponentSourcesdoesn't impact existing component attachments to instances based on this template version. A change only affects later associations.For more information about components, see Proton components in the Proton User Guide.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_prnupdsvctmplvrsout /AWS1/CL_PRNUPDSVCTMPLVRSOUT¶
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->updateservicetemplateversion(
it_compatibleenvironmenttm00 = VALUE /aws1/cl_prncompatibleenviro01=>tt_compatibleenvironmenttmpl01(
(
new /aws1/cl_prncompatibleenviro01(
iv_majorversion = |string|
iv_templatename = |string|
)
)
)
it_supportedcomponentsources = VALUE /aws1/cl_prnsvctmplsuppedcom00=>tt_svctmplsuppedcomponentsrc00(
( new /aws1/cl_prnsvctmplsuppedcom00( |string| ) )
)
iv_description = |string|
iv_majorversion = |string|
iv_minorversion = |string|
iv_status = |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_servicetemplateversion = lo_result->get_servicetemplateversion( ).
IF lo_servicetemplateversion IS NOT INITIAL.
lv_resourcename = lo_servicetemplateversion->get_templatename( ).
lv_templateversionpart = lo_servicetemplateversion->get_majorversion( ).
lv_templateversionpart = lo_servicetemplateversion->get_minorversion( ).
lv_templateversionpart = lo_servicetemplateversion->get_recommendedminorversion( ).
lv_templateversionstatus = lo_servicetemplateversion->get_status( ).
lv_statusmessage = lo_servicetemplateversion->get_statusmessage( ).
lv_description = lo_servicetemplateversion->get_description( ).
lv_servicetemplateversiona = lo_servicetemplateversion->get_arn( ).
lv_timestamp = lo_servicetemplateversion->get_createdat( ).
lv_timestamp = lo_servicetemplateversion->get_lastmodifiedat( ).
LOOP AT lo_servicetemplateversion->get_compatibleenvironmentt00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourcename = lo_row_1->get_templatename( ).
lv_templateversionpart = lo_row_1->get_majorversion( ).
ENDIF.
ENDLOOP.
lv_templateschema = lo_servicetemplateversion->get_schema( ).
LOOP AT lo_servicetemplateversion->get_suppedcomponentsources( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_servicetemplatesupporte = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.