/AWS1/IF_FND=>CREATEDATAVIEW()¶
About CreateDataView¶
Creates a Dataview for a Dataset.
Method Signature¶
METHODS /AWS1/IF_FND~CREATEDATAVIEW
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/FNDCLIENTTOKEN OPTIONAL
!IV_DATASETID TYPE /AWS1/FNDDATASETID OPTIONAL
!IV_AUTOUPDATE TYPE /AWS1/FNDBOOLEAN OPTIONAL
!IT_SORTCOLUMNS TYPE /AWS1/CL_FNDSORTCOLUMNLIST_W=>TT_SORTCOLUMNLIST OPTIONAL
!IT_PARTITIONCOLUMNS TYPE /AWS1/CL_FNDPARTITIONCOLUMNL00=>TT_PARTITIONCOLUMNLIST OPTIONAL
!IV_ASOFTIMESTAMP TYPE /AWS1/FNDTIMESTAMPEPOCH OPTIONAL
!IO_DESTINATIONTYPEPARAMS TYPE REF TO /AWS1/CL_FNDDATAVIEWDSTTYPEP00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fndcreatedataviewrsp
RAISING
/AWS1/CX_FNDCONFLICTEXCEPTION
/AWS1/CX_FNDINTERNALSERVEREX
/AWS1/CX_FNDLIMITEXCEEDEDEX
/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¶
Required arguments:¶
iv_datasetid TYPE /AWS1/FNDDATASETID /AWS1/FNDDATASETID¶
The unique Dataset identifier that is used to create a Dataview.
io_destinationtypeparams TYPE REF TO /AWS1/CL_FNDDATAVIEWDSTTYPEP00 /AWS1/CL_FNDDATAVIEWDSTTYPEP00¶
Options that define the destination type for the Dataview.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/FNDCLIENTTOKEN /AWS1/FNDCLIENTTOKEN¶
A token that ensures idempotency. This token expires in 10 minutes.
iv_autoupdate TYPE /AWS1/FNDBOOLEAN /AWS1/FNDBOOLEAN¶
Flag to indicate Dataview should be updated automatically.
it_sortcolumns TYPE /AWS1/CL_FNDSORTCOLUMNLIST_W=>TT_SORTCOLUMNLIST TT_SORTCOLUMNLIST¶
Columns to be used for sorting the data.
it_partitioncolumns TYPE /AWS1/CL_FNDPARTITIONCOLUMNL00=>TT_PARTITIONCOLUMNLIST TT_PARTITIONCOLUMNLIST¶
Ordered set of column names used to partition data.
iv_asoftimestamp TYPE /AWS1/FNDTIMESTAMPEPOCH /AWS1/FNDTIMESTAMPEPOCH¶
Beginning time to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fndcreatedataviewrsp /AWS1/CL_FNDCREATEDATAVIEWRSP¶
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->createdataview(
io_destinationtypeparams = new /aws1/cl_fnddataviewdsttypep00(
it_s3dstexportfileformatopts = VALUE /aws1/cl_fnds3dstformatopts_w=>tt_s3destinationformatoptions(
(
VALUE /aws1/cl_fnds3dstformatopts_w=>ts_s3dstformatoptions_maprow(
value = new /aws1/cl_fnds3dstformatopts_w( |string| )
key = |string|
)
)
)
iv_destinationtype = |string|
iv_s3dstexportfileformat = |string|
)
it_partitioncolumns = VALUE /aws1/cl_fndpartitioncolumnl00=>tt_partitioncolumnlist(
( new /aws1/cl_fndpartitioncolumnl00( |string| ) )
)
it_sortcolumns = VALUE /aws1/cl_fndsortcolumnlist_w=>tt_sortcolumnlist(
( new /aws1/cl_fndsortcolumnlist_w( |string| ) )
)
iv_asoftimestamp = 123
iv_autoupdate = ABAP_TRUE
iv_clienttoken = |string|
iv_datasetid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_datasetid = lo_result->get_datasetid( ).
lv_dataviewid = lo_result->get_dataviewid( ).
ENDIF.