/AWS1/IF_DZN=>GETASSETFILTER()¶
About GetAssetFilter¶
Gets an asset filter.
Prerequisites:
-
Domain (
--domain-identifier), asset (--asset-identifier), and filter (--identifier) must all exist. -
The asset filter should not have been deleted.
-
The asset must still exist (since the filter is linked to it).
Method Signature¶
METHODS /AWS1/IF_DZN~GETASSETFILTER
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_ASSETIDENTIFIER TYPE /AWS1/DZNASSETID OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/DZNFILTERID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzngetassetfilterout
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID¶
The ID of the domain where you want to get an asset filter.
iv_assetidentifier TYPE /AWS1/DZNASSETID /AWS1/DZNASSETID¶
The ID of the data asset.
iv_identifier TYPE /AWS1/DZNFILTERID /AWS1/DZNFILTERID¶
The ID of the asset filter.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzngetassetfilterout /AWS1/CL_DZNGETASSETFILTEROUT¶
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->getassetfilter(
iv_assetidentifier = |string|
iv_domainidentifier = |string|
iv_identifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_filterid = lo_result->get_id( ).
lv_domainid = lo_result->get_domainid( ).
lv_assetid = lo_result->get_assetid( ).
lv_filtername = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_filterstatus = lo_result->get_status( ).
lo_assetfilterconfiguratio = lo_result->get_configuration( ).
IF lo_assetfilterconfiguratio IS NOT INITIAL.
lo_columnfilterconfigurati = lo_assetfilterconfiguratio->get_columnconfiguration( ).
IF lo_columnfilterconfigurati IS NOT INITIAL.
LOOP AT lo_columnfilterconfigurati->get_includedcolumnnames( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_rowfilterconfiguration = lo_assetfilterconfiguratio->get_rowconfiguration( ).
IF lo_rowfilterconfiguration IS NOT INITIAL.
lo_rowfilter = lo_rowfilterconfiguration->get_rowfilter( ).
IF lo_rowfilter IS NOT INITIAL.
lo_rowfilterexpression = lo_rowfilter->get_expression( ).
IF lo_rowfilterexpression IS NOT INITIAL.
lo_equaltoexpression = lo_rowfilterexpression->get_equalto( ).
IF lo_equaltoexpression IS NOT INITIAL.
lv_string = lo_equaltoexpression->get_columnname( ).
lv_string = lo_equaltoexpression->get_value( ).
ENDIF.
lo_notequaltoexpression = lo_rowfilterexpression->get_notequalto( ).
IF lo_notequaltoexpression IS NOT INITIAL.
lv_string = lo_notequaltoexpression->get_columnname( ).
lv_string = lo_notequaltoexpression->get_value( ).
ENDIF.
lo_greaterthanexpression = lo_rowfilterexpression->get_greaterthan( ).
IF lo_greaterthanexpression IS NOT INITIAL.
lv_string = lo_greaterthanexpression->get_columnname( ).
lv_string = lo_greaterthanexpression->get_value( ).
ENDIF.
lo_lessthanexpression = lo_rowfilterexpression->get_lessthan( ).
IF lo_lessthanexpression IS NOT INITIAL.
lv_string = lo_lessthanexpression->get_columnname( ).
lv_string = lo_lessthanexpression->get_value( ).
ENDIF.
lo_greaterthanorequaltoexp = lo_rowfilterexpression->get_greaterthanorequalto( ).
IF lo_greaterthanorequaltoexp IS NOT INITIAL.
lv_string = lo_greaterthanorequaltoexp->get_columnname( ).
lv_string = lo_greaterthanorequaltoexp->get_value( ).
ENDIF.
lo_lessthanorequaltoexpres = lo_rowfilterexpression->get_lessthanorequalto( ).
IF lo_lessthanorequaltoexpres IS NOT INITIAL.
lv_string = lo_lessthanorequaltoexpres->get_columnname( ).
lv_string = lo_lessthanorequaltoexpres->get_value( ).
ENDIF.
lo_isnullexpression = lo_rowfilterexpression->get_isnull( ).
IF lo_isnullexpression IS NOT INITIAL.
lv_string = lo_isnullexpression->get_columnname( ).
ENDIF.
lo_isnotnullexpression = lo_rowfilterexpression->get_isnotnull( ).
IF lo_isnotnullexpression IS NOT INITIAL.
lv_string = lo_isnotnullexpression->get_columnname( ).
ENDIF.
lo_inexpression = lo_rowfilterexpression->get_in( ).
IF lo_inexpression IS NOT INITIAL.
lv_string = lo_inexpression->get_columnname( ).
LOOP AT lo_inexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_notinexpression = lo_rowfilterexpression->get_notin( ).
IF lo_notinexpression IS NOT INITIAL.
lv_string = lo_notinexpression->get_columnname( ).
LOOP AT lo_notinexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_likeexpression = lo_rowfilterexpression->get_like( ).
IF lo_likeexpression IS NOT INITIAL.
lv_string = lo_likeexpression->get_columnname( ).
lv_string = lo_likeexpression->get_value( ).
ENDIF.
lo_notlikeexpression = lo_rowfilterexpression->get_notlike( ).
IF lo_notlikeexpression IS NOT INITIAL.
lv_string = lo_notlikeexpression->get_columnname( ).
lv_string = lo_notlikeexpression->get_value( ).
ENDIF.
ENDIF.
LOOP AT lo_rowfilter->get_and( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lo_rowfilterexpression = lo_row_5->get_expression( ).
IF lo_rowfilterexpression IS NOT INITIAL.
lo_equaltoexpression = lo_rowfilterexpression->get_equalto( ).
IF lo_equaltoexpression IS NOT INITIAL.
lv_string = lo_equaltoexpression->get_columnname( ).
lv_string = lo_equaltoexpression->get_value( ).
ENDIF.
lo_notequaltoexpression = lo_rowfilterexpression->get_notequalto( ).
IF lo_notequaltoexpression IS NOT INITIAL.
lv_string = lo_notequaltoexpression->get_columnname( ).
lv_string = lo_notequaltoexpression->get_value( ).
ENDIF.
lo_greaterthanexpression = lo_rowfilterexpression->get_greaterthan( ).
IF lo_greaterthanexpression IS NOT INITIAL.
lv_string = lo_greaterthanexpression->get_columnname( ).
lv_string = lo_greaterthanexpression->get_value( ).
ENDIF.
lo_lessthanexpression = lo_rowfilterexpression->get_lessthan( ).
IF lo_lessthanexpression IS NOT INITIAL.
lv_string = lo_lessthanexpression->get_columnname( ).
lv_string = lo_lessthanexpression->get_value( ).
ENDIF.
lo_greaterthanorequaltoexp = lo_rowfilterexpression->get_greaterthanorequalto( ).
IF lo_greaterthanorequaltoexp IS NOT INITIAL.
lv_string = lo_greaterthanorequaltoexp->get_columnname( ).
lv_string = lo_greaterthanorequaltoexp->get_value( ).
ENDIF.
lo_lessthanorequaltoexpres = lo_rowfilterexpression->get_lessthanorequalto( ).
IF lo_lessthanorequaltoexpres IS NOT INITIAL.
lv_string = lo_lessthanorequaltoexpres->get_columnname( ).
lv_string = lo_lessthanorequaltoexpres->get_value( ).
ENDIF.
lo_isnullexpression = lo_rowfilterexpression->get_isnull( ).
IF lo_isnullexpression IS NOT INITIAL.
lv_string = lo_isnullexpression->get_columnname( ).
ENDIF.
lo_isnotnullexpression = lo_rowfilterexpression->get_isnotnull( ).
IF lo_isnotnullexpression IS NOT INITIAL.
lv_string = lo_isnotnullexpression->get_columnname( ).
ENDIF.
lo_inexpression = lo_rowfilterexpression->get_in( ).
IF lo_inexpression IS NOT INITIAL.
lv_string = lo_inexpression->get_columnname( ).
LOOP AT lo_inexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_notinexpression = lo_rowfilterexpression->get_notin( ).
IF lo_notinexpression IS NOT INITIAL.
lv_string = lo_notinexpression->get_columnname( ).
LOOP AT lo_notinexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_likeexpression = lo_rowfilterexpression->get_like( ).
IF lo_likeexpression IS NOT INITIAL.
lv_string = lo_likeexpression->get_columnname( ).
lv_string = lo_likeexpression->get_value( ).
ENDIF.
lo_notlikeexpression = lo_rowfilterexpression->get_notlike( ).
IF lo_notlikeexpression IS NOT INITIAL.
lv_string = lo_notlikeexpression->get_columnname( ).
lv_string = lo_notlikeexpression->get_value( ).
ENDIF.
ENDIF.
" Skipping lo_row_4 to avoid recursion
LOOP AT lo_row_5->get_or( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lo_rowfilterexpression = lo_row_7->get_expression( ).
IF lo_rowfilterexpression IS NOT INITIAL.
lo_equaltoexpression = lo_rowfilterexpression->get_equalto( ).
IF lo_equaltoexpression IS NOT INITIAL.
lv_string = lo_equaltoexpression->get_columnname( ).
lv_string = lo_equaltoexpression->get_value( ).
ENDIF.
lo_notequaltoexpression = lo_rowfilterexpression->get_notequalto( ).
IF lo_notequaltoexpression IS NOT INITIAL.
lv_string = lo_notequaltoexpression->get_columnname( ).
lv_string = lo_notequaltoexpression->get_value( ).
ENDIF.
lo_greaterthanexpression = lo_rowfilterexpression->get_greaterthan( ).
IF lo_greaterthanexpression IS NOT INITIAL.
lv_string = lo_greaterthanexpression->get_columnname( ).
lv_string = lo_greaterthanexpression->get_value( ).
ENDIF.
lo_lessthanexpression = lo_rowfilterexpression->get_lessthan( ).
IF lo_lessthanexpression IS NOT INITIAL.
lv_string = lo_lessthanexpression->get_columnname( ).
lv_string = lo_lessthanexpression->get_value( ).
ENDIF.
lo_greaterthanorequaltoexp = lo_rowfilterexpression->get_greaterthanorequalto( ).
IF lo_greaterthanorequaltoexp IS NOT INITIAL.
lv_string = lo_greaterthanorequaltoexp->get_columnname( ).
lv_string = lo_greaterthanorequaltoexp->get_value( ).
ENDIF.
lo_lessthanorequaltoexpres = lo_rowfilterexpression->get_lessthanorequalto( ).
IF lo_lessthanorequaltoexpres IS NOT INITIAL.
lv_string = lo_lessthanorequaltoexpres->get_columnname( ).
lv_string = lo_lessthanorequaltoexpres->get_value( ).
ENDIF.
lo_isnullexpression = lo_rowfilterexpression->get_isnull( ).
IF lo_isnullexpression IS NOT INITIAL.
lv_string = lo_isnullexpression->get_columnname( ).
ENDIF.
lo_isnotnullexpression = lo_rowfilterexpression->get_isnotnull( ).
IF lo_isnotnullexpression IS NOT INITIAL.
lv_string = lo_isnotnullexpression->get_columnname( ).
ENDIF.
lo_inexpression = lo_rowfilterexpression->get_in( ).
IF lo_inexpression IS NOT INITIAL.
lv_string = lo_inexpression->get_columnname( ).
LOOP AT lo_inexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_notinexpression = lo_rowfilterexpression->get_notin( ).
IF lo_notinexpression IS NOT INITIAL.
lv_string = lo_notinexpression->get_columnname( ).
LOOP AT lo_notinexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_likeexpression = lo_rowfilterexpression->get_like( ).
IF lo_likeexpression IS NOT INITIAL.
lv_string = lo_likeexpression->get_columnname( ).
lv_string = lo_likeexpression->get_value( ).
ENDIF.
lo_notlikeexpression = lo_rowfilterexpression->get_notlike( ).
IF lo_notlikeexpression IS NOT INITIAL.
lv_string = lo_notlikeexpression->get_columnname( ).
lv_string = lo_notlikeexpression->get_value( ).
ENDIF.
ENDIF.
" Skipping lo_row_6 to avoid recursion
" Skipping lo_row_6 to avoid recursion
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_rowfilter->get_or( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lo_rowfilterexpression = lo_row_5->get_expression( ).
IF lo_rowfilterexpression IS NOT INITIAL.
lo_equaltoexpression = lo_rowfilterexpression->get_equalto( ).
IF lo_equaltoexpression IS NOT INITIAL.
lv_string = lo_equaltoexpression->get_columnname( ).
lv_string = lo_equaltoexpression->get_value( ).
ENDIF.
lo_notequaltoexpression = lo_rowfilterexpression->get_notequalto( ).
IF lo_notequaltoexpression IS NOT INITIAL.
lv_string = lo_notequaltoexpression->get_columnname( ).
lv_string = lo_notequaltoexpression->get_value( ).
ENDIF.
lo_greaterthanexpression = lo_rowfilterexpression->get_greaterthan( ).
IF lo_greaterthanexpression IS NOT INITIAL.
lv_string = lo_greaterthanexpression->get_columnname( ).
lv_string = lo_greaterthanexpression->get_value( ).
ENDIF.
lo_lessthanexpression = lo_rowfilterexpression->get_lessthan( ).
IF lo_lessthanexpression IS NOT INITIAL.
lv_string = lo_lessthanexpression->get_columnname( ).
lv_string = lo_lessthanexpression->get_value( ).
ENDIF.
lo_greaterthanorequaltoexp = lo_rowfilterexpression->get_greaterthanorequalto( ).
IF lo_greaterthanorequaltoexp IS NOT INITIAL.
lv_string = lo_greaterthanorequaltoexp->get_columnname( ).
lv_string = lo_greaterthanorequaltoexp->get_value( ).
ENDIF.
lo_lessthanorequaltoexpres = lo_rowfilterexpression->get_lessthanorequalto( ).
IF lo_lessthanorequaltoexpres IS NOT INITIAL.
lv_string = lo_lessthanorequaltoexpres->get_columnname( ).
lv_string = lo_lessthanorequaltoexpres->get_value( ).
ENDIF.
lo_isnullexpression = lo_rowfilterexpression->get_isnull( ).
IF lo_isnullexpression IS NOT INITIAL.
lv_string = lo_isnullexpression->get_columnname( ).
ENDIF.
lo_isnotnullexpression = lo_rowfilterexpression->get_isnotnull( ).
IF lo_isnotnullexpression IS NOT INITIAL.
lv_string = lo_isnotnullexpression->get_columnname( ).
ENDIF.
lo_inexpression = lo_rowfilterexpression->get_in( ).
IF lo_inexpression IS NOT INITIAL.
lv_string = lo_inexpression->get_columnname( ).
LOOP AT lo_inexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_notinexpression = lo_rowfilterexpression->get_notin( ).
IF lo_notinexpression IS NOT INITIAL.
lv_string = lo_notinexpression->get_columnname( ).
LOOP AT lo_notinexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_likeexpression = lo_rowfilterexpression->get_like( ).
IF lo_likeexpression IS NOT INITIAL.
lv_string = lo_likeexpression->get_columnname( ).
lv_string = lo_likeexpression->get_value( ).
ENDIF.
lo_notlikeexpression = lo_rowfilterexpression->get_notlike( ).
IF lo_notlikeexpression IS NOT INITIAL.
lv_string = lo_notlikeexpression->get_columnname( ).
lv_string = lo_notlikeexpression->get_value( ).
ENDIF.
ENDIF.
LOOP AT lo_row_5->get_and( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lo_rowfilterexpression = lo_row_7->get_expression( ).
IF lo_rowfilterexpression IS NOT INITIAL.
lo_equaltoexpression = lo_rowfilterexpression->get_equalto( ).
IF lo_equaltoexpression IS NOT INITIAL.
lv_string = lo_equaltoexpression->get_columnname( ).
lv_string = lo_equaltoexpression->get_value( ).
ENDIF.
lo_notequaltoexpression = lo_rowfilterexpression->get_notequalto( ).
IF lo_notequaltoexpression IS NOT INITIAL.
lv_string = lo_notequaltoexpression->get_columnname( ).
lv_string = lo_notequaltoexpression->get_value( ).
ENDIF.
lo_greaterthanexpression = lo_rowfilterexpression->get_greaterthan( ).
IF lo_greaterthanexpression IS NOT INITIAL.
lv_string = lo_greaterthanexpression->get_columnname( ).
lv_string = lo_greaterthanexpression->get_value( ).
ENDIF.
lo_lessthanexpression = lo_rowfilterexpression->get_lessthan( ).
IF lo_lessthanexpression IS NOT INITIAL.
lv_string = lo_lessthanexpression->get_columnname( ).
lv_string = lo_lessthanexpression->get_value( ).
ENDIF.
lo_greaterthanorequaltoexp = lo_rowfilterexpression->get_greaterthanorequalto( ).
IF lo_greaterthanorequaltoexp IS NOT INITIAL.
lv_string = lo_greaterthanorequaltoexp->get_columnname( ).
lv_string = lo_greaterthanorequaltoexp->get_value( ).
ENDIF.
lo_lessthanorequaltoexpres = lo_rowfilterexpression->get_lessthanorequalto( ).
IF lo_lessthanorequaltoexpres IS NOT INITIAL.
lv_string = lo_lessthanorequaltoexpres->get_columnname( ).
lv_string = lo_lessthanorequaltoexpres->get_value( ).
ENDIF.
lo_isnullexpression = lo_rowfilterexpression->get_isnull( ).
IF lo_isnullexpression IS NOT INITIAL.
lv_string = lo_isnullexpression->get_columnname( ).
ENDIF.
lo_isnotnullexpression = lo_rowfilterexpression->get_isnotnull( ).
IF lo_isnotnullexpression IS NOT INITIAL.
lv_string = lo_isnotnullexpression->get_columnname( ).
ENDIF.
lo_inexpression = lo_rowfilterexpression->get_in( ).
IF lo_inexpression IS NOT INITIAL.
lv_string = lo_inexpression->get_columnname( ).
LOOP AT lo_inexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_notinexpression = lo_rowfilterexpression->get_notin( ).
IF lo_notinexpression IS NOT INITIAL.
lv_string = lo_notinexpression->get_columnname( ).
LOOP AT lo_notinexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_likeexpression = lo_rowfilterexpression->get_like( ).
IF lo_likeexpression IS NOT INITIAL.
lv_string = lo_likeexpression->get_columnname( ).
lv_string = lo_likeexpression->get_value( ).
ENDIF.
lo_notlikeexpression = lo_rowfilterexpression->get_notlike( ).
IF lo_notlikeexpression IS NOT INITIAL.
lv_string = lo_notlikeexpression->get_columnname( ).
lv_string = lo_notlikeexpression->get_value( ).
ENDIF.
ENDIF.
" Skipping lo_row_6 to avoid recursion
" Skipping lo_row_6 to avoid recursion
ENDIF.
ENDLOOP.
" Skipping lo_row_4 to avoid recursion
ENDIF.
ENDLOOP.
ENDIF.
lv_boolean = lo_rowfilterconfiguration->get_sensitive( ).
ENDIF.
ENDIF.
lv_createdat = lo_result->get_createdat( ).
lv_string = lo_result->get_errormessage( ).
LOOP AT lo_result->get_effectivecolumnnames( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_effectiverowfilter( ).
ENDIF.