/AWS1/IF_FDT=>UPDATELIST()¶
About UpdateList¶
Updates a list.
Method Signature¶
METHODS /AWS1/IF_FDT~UPDATELIST
IMPORTING
!IV_NAME TYPE /AWS1/FDTNODASHIDENTIFIER OPTIONAL
!IT_ELEMENTS TYPE /AWS1/CL_FDTELEMENTSLIST_W=>TT_ELEMENTSLIST OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/FDTDESCRIPTION OPTIONAL
!IV_UPDATEMODE TYPE /AWS1/FDTLISTUPDATEMODE OPTIONAL
!IV_VARIABLETYPE TYPE /AWS1/FDTVARIABLETYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fdtupdatelistresult
RAISING
/AWS1/CX_FDTACCESSDENIEDEX
/AWS1/CX_FDTCONFLICTEXCEPTION
/AWS1/CX_FDTINTERNALSERVEREX
/AWS1/CX_FDTRESOURCENOTFOUNDEX
/AWS1/CX_FDTTHROTTLINGEX
/AWS1/CX_FDTVALIDATIONEX
/AWS1/CX_FDTCLIENTEXC
/AWS1/CX_FDTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/FDTNODASHIDENTIFIER /AWS1/FDTNODASHIDENTIFIER¶
The name of the list to update.
Optional arguments:¶
it_elements TYPE /AWS1/CL_FDTELEMENTSLIST_W=>TT_ELEMENTSLIST TT_ELEMENTSLIST¶
One or more list elements to add or replace. If you are providing the elements, make sure to specify the
updateModeto use.If you are deleting all elements from the list, use
REPLACEfor theupdateModeand provide an empty list (0 elements).
iv_description TYPE /AWS1/FDTDESCRIPTION /AWS1/FDTDESCRIPTION¶
The new description.
iv_updatemode TYPE /AWS1/FDTLISTUPDATEMODE /AWS1/FDTLISTUPDATEMODE¶
The update mode (type).
Use
APPENDif you are adding elements to the list.Use
REPLACEif you replacing existing elements in the list.Use
REMOVEif you are removing elements from the list.
iv_variabletype TYPE /AWS1/FDTVARIABLETYPE /AWS1/FDTVARIABLETYPE¶
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fdtupdatelistresult /AWS1/CL_FDTUPDATELISTRESULT¶
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->updatelist(
it_elements = VALUE /aws1/cl_fdtelementslist_w=>tt_elementslist(
( new /aws1/cl_fdtelementslist_w( |string| ) )
)
iv_description = |string|
iv_name = |string|
iv_updatemode = |string|
iv_variabletype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.