on 2025 Apr 19 9:18 AM
I created the CDS view and the projection view and created the service binds and service definitions:
This is the CDS view :
This is The projection View :
Behavior:
However, when viewing my Fiori application and trying to change or create, I receive this error:
I analyzed the Dump and it says that there is an incompatible type:
This is my table:
I have attached the dump:
Request clarification before answering.
You have defined a date column in the table, but you indicated a datetime annotation in the CDS view entity.
NB: 1) Thanks for attaching the short dump. 2) For making your question findable, you should type the exception class is CX_CSP_ACT_REQUEST as text instead of image.
Reference code in the short dump you have attached (method ADD_MAPPING_FOR_TIMESTAMP of local class LCLA_ADMIN_DATA_STRATEGY in CL_CSP_ACT_SET_ADMIN_DATA):
" We expect that the time stamp element is either typed as UTCLONG or TIMESTAMP(L)
DATA(lo_timestamp_elem_descr) = CAST cl_abap_elemdescr( cl_abap_typedescr=>describe_by_data( <lv_timestamp_value> ) ).
IF lo_timestamp_elem_descr->type_kind = cl_abap_typedescr=>typekind_utclong.
" is UTCLONG
<lv_timestamp_value> = mv_change_timestamp_as_utclong.
ELSE.
" expect TIMESTAMP(L)
TRY.
cl_abap_tstmp=>move( EXPORTING tstmp_src=mv_change_timestampl
IMPORTING tstmp_tgt = <lv_timestamp_value> ).
CATCH cx_sy_dyn_call_illegal_type INTO DATA(lx_invalid_type_for_admin_data).
RAISE SHORTDUMP NEW cx_csp_act_request( textid = cx_csp_act_request=>incomp_type_for_timestamp
entity_name = iv_entity_name
element_name = <lv_timestamp_elem_name> )->enrich( ).
ENDTRY.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.