/AWS1/IF_PRN=>GETENVIRONMENTTMPLVERSION()¶
About GetEnvironmentTemplateVersion¶
Get detailed data for a major or minor version of an environment template.
Method Signature¶
METHODS /AWS1/IF_PRN~GETENVIRONMENTTMPLVERSION
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_prngetenvironmenttm03
RAISING
/AWS1/CX_PRNACCESSDENIEDEX
/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 a version of which you want to get detailed data for.
iv_majorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
To get environment template major version detail data, include
major Version.
iv_minorversion TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART¶
To get environment template minor version detail data, include
minorVersion.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_prngetenvironmenttm03 /AWS1/CL_PRNGETENVIRONMENTTM03¶
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->getenvironmenttmplversion(
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.