Skip to content

/AWS1/CL_FND=>GETDATASET()

About GetDataset

Returns information about a Dataset.

Method Signature

IMPORTING

Required arguments:

iv_datasetid TYPE /AWS1/FNDSTRVALUELENGTH1TO255 /AWS1/FNDSTRVALUELENGTH1TO255

The unique identifier for a Dataset.

RETURNING

oo_output TYPE REF TO /aws1/cl_fndgetdatasetresponse /AWS1/CL_FNDGETDATASETRESPONSE

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->/aws1/if_fnd~getdataset( |string| ).

This is an example of reading all possible response values

lv_datasetid = lo_result->get_datasetid( ).
lv_datasetarn = lo_result->get_datasetarn( ).
lv_datasettitle = lo_result->get_datasettitle( ).
lv_datasetkind = lo_result->get_kind( ).
lv_datasetdescription = lo_result->get_datasetdescription( ).
lv_timestampepoch = lo_result->get_createtime( ).
lv_timestampepoch = lo_result->get_lastmodifiedtime( ).
LOOP AT lo_schemadefinition->get_columns( ) into lo_row.
  lv_columndatatype = lo_row_1->get_datatype( ).
  lv_columnname = lo_row_1->get_columnname( ).
  lv_columndescription = lo_row_1->get_columndescription( ).
ENDLOOP.
LOOP AT lo_schemadefinition->get_primarykeycolumns( ) into lo_row_2.
  lv_columnname = lo_row_3->get_value( ).
ENDLOOP.
lv_aliasstring = lo_result->get_alias( ).
lv_datasetstatus = lo_result->get_status( ).