/AWS1/IF_SGM=>DESCRTRAININGPLANEXTNHISTORY()¶
About DescribeTrainingPlanExtensionHistory¶
Retrieves the extension history for a specified training plan. The response includes details about each extension, such as the offering ID, start and end dates, status, payment status, and cost information.
Method Signature¶
METHODS /AWS1/IF_SGM~DESCRTRAININGPLANEXTNHISTORY
IMPORTING
!IV_TRAININGPLANARN TYPE /AWS1/SGMTRAININGPLANARN OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmdsctrnplanexthst01
RAISING
/AWS1/CX_SGMRESOURCENOTFOUND
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_trainingplanarn TYPE /AWS1/SGMTRAININGPLANARN /AWS1/SGMTRAININGPLANARN¶
The Amazon Resource Name (ARN); of the training plan to retrieve extension history for.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN¶
A token to continue pagination if more results are available.
iv_maxresults TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS¶
The maximum number of extensions to return in the response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmdsctrnplanexthst01 /AWS1/CL_SGMDSCTRNPLANEXTHST01¶
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->descrtrainingplanextnhistory(
iv_maxresults = 123
iv_nexttoken = |string|
iv_trainingplanarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_trainingplanextensions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_trainingplanextensionof = lo_row_1->get_trainingplanextnofferid( ).
lv_timestamp = lo_row_1->get_extendedat( ).
lv_timestamp = lo_row_1->get_startdate( ).
lv_timestamp = lo_row_1->get_enddate( ).
lv_string256 = lo_row_1->get_status( ).
lv_string256 = lo_row_1->get_paymentstatus( ).
lv_string256 = lo_row_1->get_availabilityzone( ).
lv_availabilityzoneid = lo_row_1->get_availabilityzoneid( ).
lv_trainingplanextensiondu = lo_row_1->get_durationhours( ).
lv_string256 = lo_row_1->get_upfrontfee( ).
lv_currencycode = lo_row_1->get_currencycode( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.