/AWS1/IF_SAR=>LISTAPPLICATIONVERSIONS()¶
About ListApplicationVersions¶
Lists versions for the specified application.
Method Signature¶
METHODS /AWS1/IF_SAR~LISTAPPLICATIONVERSIONS
IMPORTING
!IV_APPLICATIONID TYPE /AWS1/SAR__STRING OPTIONAL
!IV_MAXITEMS TYPE /AWS1/SARMAXITEMS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SAR__STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sarlstapplicationvr01
RAISING
/AWS1/CX_SARBADREQUESTEX
/AWS1/CX_SARFORBIDDENEXCEPTION
/AWS1/CX_SARINTERNALSERVERER00
/AWS1/CX_SARNOTFOUNDEXCEPTION
/AWS1/CX_SARTOOMANYREQUESTSEX
/AWS1/CX_SARCLIENTEXC
/AWS1/CX_SARSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationid TYPE /AWS1/SAR__STRING /AWS1/SAR__STRING¶
The Amazon Resource Name (ARN) of the application.
Optional arguments:¶
iv_maxitems TYPE /AWS1/SARMAXITEMS /AWS1/SARMAXITEMS¶
The total number of items to return.
iv_nexttoken TYPE /AWS1/SAR__STRING /AWS1/SAR__STRING¶
A token to specify where to start paginating.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sarlstapplicationvr01 /AWS1/CL_SARLSTAPPLICATIONVR01¶
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->listapplicationversions(
iv_applicationid = |string|
iv_maxitems = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_versions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_applicationid( ).
lv___string = lo_row_1->get_creationtime( ).
lv___string = lo_row_1->get_semanticversion( ).
lv___string = lo_row_1->get_sourcecodeurl( ).
ENDIF.
ENDLOOP.
ENDIF.