/AWS1/IF_FND=>LISTDATASETS()¶
About ListDatasets¶
Lists all of the active Datasets that a user has access to.
Method Signature¶
METHODS /AWS1/IF_FND~LISTDATASETS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/FNDPAGINATIONTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/FNDRESULTLIMIT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fndlistdatasetsrsp
RAISING
/AWS1/CX_FNDCONFLICTEXCEPTION
/AWS1/CX_FNDINTERNALSERVEREX
/AWS1/CX_FNDRESOURCENOTFOUNDEX
/AWS1/CX_FNDTHROTTLINGEX
/AWS1/CX_FNDVALIDATIONEX
/AWS1/CX_FNDCLIENTEXC
/AWS1/CX_FNDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/FNDPAGINATIONTOKEN /AWS1/FNDPAGINATIONTOKEN¶
A token that indicates where a results page should begin.
iv_maxresults TYPE /AWS1/FNDRESULTLIMIT /AWS1/FNDRESULTLIMIT¶
The maximum number of results per page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fndlistdatasetsrsp /AWS1/CL_FNDLISTDATASETSRSP¶
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->listdatasets(
iv_maxresults = 123
iv_nexttoken = |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_datasets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_datasetid = lo_row_1->get_datasetid( ).
lv_datasetarn = lo_row_1->get_datasetarn( ).
lv_datasettitle = lo_row_1->get_datasettitle( ).
lv_datasetkind = lo_row_1->get_kind( ).
lv_datasetdescription = lo_row_1->get_datasetdescription( ).
lo_datasetownerinfo = lo_row_1->get_ownerinfo( ).
IF lo_datasetownerinfo IS NOT INITIAL.
lv_ownername = lo_datasetownerinfo->get_name( ).
lv_phonenumber = lo_datasetownerinfo->get_phonenumber( ).
lv_email = lo_datasetownerinfo->get_email( ).
ENDIF.
lv_timestampepoch = lo_row_1->get_createtime( ).
lv_timestampepoch = lo_row_1->get_lastmodifiedtime( ).
lo_schemaunion = lo_row_1->get_schemadefinition( ).
IF lo_schemaunion IS NOT INITIAL.
lo_schemadefinition = lo_schemaunion->get_tabularschemaconfig( ).
IF lo_schemadefinition IS NOT INITIAL.
LOOP AT lo_schemadefinition->get_columns( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_columndatatype = lo_row_3->get_datatype( ).
lv_columnname = lo_row_3->get_columnname( ).
lv_columndescription = lo_row_3->get_columndescription( ).
ENDIF.
ENDLOOP.
LOOP AT lo_schemadefinition->get_primarykeycolumns( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_columnname = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_aliasstring = lo_row_1->get_alias( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.