/AWS1/IF_CRM=>UPDATECONFIGUREDTABLE()¶
About UpdateConfiguredTable¶
Updates a configured table.
Method Signature¶
METHODS /AWS1/IF_CRM~UPDATECONFIGUREDTABLE
IMPORTING
!IV_CONFIGUREDTABLEIDENTIFIER TYPE /AWS1/CRMCONFIGUREDTABLEID OPTIONAL
!IV_NAME TYPE /AWS1/CRMDISPLAYNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CRMTABLEDESCRIPTION OPTIONAL
!IO_TABLEREFERENCE TYPE REF TO /AWS1/CL_CRMTABLEREFERENCE OPTIONAL
!IT_ALLOWEDCOLUMNS TYPE /AWS1/CL_CRMALLOWEDCOLUMNLST_W=>TT_ALLOWEDCOLUMNLIST OPTIONAL
!IV_ANALYSISMETHOD TYPE /AWS1/CRMANALYSISMETHOD OPTIONAL
!IT_SELECTEDANALYSISMETHODS TYPE /AWS1/CL_CRMSELEDALYMETHODS_W=>TT_SELECTEDANALYSISMETHODS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_crmupdcfguredtableout
RAISING
/AWS1/CX_CRMACCESSDENIEDEX
/AWS1/CX_CRMCONFLICTEXCEPTION
/AWS1/CX_CRMINTERNALSERVEREX
/AWS1/CX_CRMRESOURCENOTFOUNDEX
/AWS1/CX_CRMSERVICEQUOTAEXCDEX
/AWS1/CX_CRMTHROTTLINGEX
/AWS1/CX_CRMVALIDATIONEX
/AWS1/CX_CRMCLIENTEXC
/AWS1/CX_CRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_configuredtableidentifier TYPE /AWS1/CRMCONFIGUREDTABLEID /AWS1/CRMCONFIGUREDTABLEID¶
The identifier for the configured table to update. Currently accepts the configured table ID.
Optional arguments:¶
iv_name TYPE /AWS1/CRMDISPLAYNAME /AWS1/CRMDISPLAYNAME¶
A new name for the configured table.
iv_description TYPE /AWS1/CRMTABLEDESCRIPTION /AWS1/CRMTABLEDESCRIPTION¶
A new description for the configured table.
io_tablereference TYPE REF TO /AWS1/CL_CRMTABLEREFERENCE /AWS1/CL_CRMTABLEREFERENCE¶
tableReference
it_allowedcolumns TYPE /AWS1/CL_CRMALLOWEDCOLUMNLST_W=>TT_ALLOWEDCOLUMNLIST TT_ALLOWEDCOLUMNLIST¶
The columns of the underlying table that can be used by collaborations or analysis rules.
iv_analysismethod TYPE /AWS1/CRMANALYSISMETHOD /AWS1/CRMANALYSISMETHOD¶
The analysis method for the configured table.
DIRECT_QUERYallows SQL queries to be run directly on this table.
DIRECT_JOBallows PySpark jobs to be run directly on this table.
MULTIPLEallows both SQL queries and PySpark jobs to be run directly on this table.
it_selectedanalysismethods TYPE /AWS1/CL_CRMSELEDALYMETHODS_W=>TT_SELECTEDANALYSISMETHODS TT_SELECTEDANALYSISMETHODS¶
The selected analysis methods for the table configuration update.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_crmupdcfguredtableout /AWS1/CL_CRMUPDCFGUREDTABLEOUT¶
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->updateconfiguredtable(
io_tablereference = new /aws1/cl_crmtablereference(
io_athena = new /aws1/cl_crmathenatblreference(
iv_databasename = |string|
iv_outputlocation = |string|
iv_region = |string|
iv_tablename = |string|
iv_workgroup = |string|
)
io_glue = new /aws1/cl_crmgluetablereference(
iv_databasename = |string|
iv_region = |string|
iv_tablename = |string|
)
io_snowflake = new /aws1/cl_crmsnowflaketblrefe00(
io_tableschema = new /aws1/cl_crmsnowflaketablesch(
it_v1 = VALUE /aws1/cl_crmsnowflaketblschv1=>tt_snowflaketableschemalist(
(
new /aws1/cl_crmsnowflaketblschv1(
iv_columnname = |string|
iv_columntype = |string|
)
)
)
)
iv_accountidentifier = |string|
iv_databasename = |string|
iv_schemaname = |string|
iv_secretarn = |string|
iv_tablename = |string|
)
)
it_allowedcolumns = VALUE /aws1/cl_crmallowedcolumnlst_w=>tt_allowedcolumnlist(
( new /aws1/cl_crmallowedcolumnlst_w( |string| ) )
)
it_selectedanalysismethods = VALUE /aws1/cl_crmseledalymethods_w=>tt_selectedanalysismethods(
( new /aws1/cl_crmseledalymethods_w( |string| ) )
)
iv_analysismethod = |string|
iv_configuredtableidentifier = |string|
iv_description = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_configuredtable = lo_result->get_configuredtable( ).
IF lo_configuredtable IS NOT INITIAL.
lv_uuid = lo_configuredtable->get_id( ).
lv_configuredtablearn = lo_configuredtable->get_arn( ).
lv_displayname = lo_configuredtable->get_name( ).
lv_tabledescription = lo_configuredtable->get_description( ).
lo_tablereference = lo_configuredtable->get_tablereference( ).
IF lo_tablereference IS NOT INITIAL.
lo_gluetablereference = lo_tablereference->get_glue( ).
IF lo_gluetablereference IS NOT INITIAL.
lv_commercialregion = lo_gluetablereference->get_region( ).
lv_gluetablename = lo_gluetablereference->get_tablename( ).
lv_gluedatabasename = lo_gluetablereference->get_databasename( ).
ENDIF.
lo_snowflaketablereference = lo_tablereference->get_snowflake( ).
IF lo_snowflaketablereference IS NOT INITIAL.
lv_secretsmanagerarn = lo_snowflaketablereference->get_secretarn( ).
lv_snowflakeaccountidentif = lo_snowflaketablereference->get_accountidentifier( ).
lv_snowflakedatabasename = lo_snowflaketablereference->get_databasename( ).
lv_snowflaketablename = lo_snowflaketablereference->get_tablename( ).
lv_snowflakeschemaname = lo_snowflaketablereference->get_schemaname( ).
lo_snowflaketableschema = lo_snowflaketablereference->get_tableschema( ).
IF lo_snowflaketableschema IS NOT INITIAL.
LOOP AT lo_snowflaketableschema->get_v1( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_columnname = lo_row_1->get_columnname( ).
lv_columntypestring = lo_row_1->get_columntype( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lo_athenatablereference = lo_tablereference->get_athena( ).
IF lo_athenatablereference IS NOT INITIAL.
lv_commercialregion = lo_athenatablereference->get_region( ).
lv_athenaworkgroup = lo_athenatablereference->get_workgroup( ).
lv_athenaoutputlocation = lo_athenatablereference->get_outputlocation( ).
lv_athenadatabasename = lo_athenatablereference->get_databasename( ).
lv_athenatablename = lo_athenatablereference->get_tablename( ).
ENDIF.
ENDIF.
lv_timestamp = lo_configuredtable->get_createtime( ).
lv_timestamp = lo_configuredtable->get_updatetime( ).
LOOP AT lo_configuredtable->get_analysisruletypes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_configuredtableanalysis = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_analysismethod = lo_configuredtable->get_analysismethod( ).
LOOP AT lo_configuredtable->get_allowedcolumns( ) 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.
LOOP AT lo_configuredtable->get_selectedanalysismethods( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_selectedanalysismethod = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.