Open lucodealethea opened 9 months ago
Hello,
we also encountered these issues on our system on release SAP_ABA 75G (S/4HANA 2021). We got it running by changing the following methods:
Class ZCL_CDS_ALV_SADL_MAPPING_PROV, Method BUILD_SADL_DEFINITION: Use a different Text-ID of exception class cx_bsa_compile_time for the error propagation in the CATCH-Block.
Class ZCL_CDS_ALV_DDIC_ACCESS, Method GET_SOURCE_ID:
r_source_id = CAST cl_sadl_entity_cds( i_entity )->get_consumption_view_def( )-base_view_name.
Class ZCL_CDS_ALV_BOPF_HANDLER, Method EXECUTE_ACTION: In the CASE block:
CASE action-static.
WHEN abap_false.
" delete this block
WHEN abap_true.
" keep this block
ENDCASE.
Class ZCL_CDS_ALV_BOPF_HANDLER, Method INSTANTIATE:
transaction_manager->register_transaction_framework(
io_transaction_manager = entity_type_trans_manager
iv_entity_type = cl_sadl_entity_factory=>co_type-bopf
io_mdp = cl_sadl_mdp_factory=>get_mdp_for_mp( mp ) ).
I hope these work for you as well. If you encounter more obstacles after implementing these or find a different solution, please let us know.
Yours, Christopher
Hello,
I am eager to experiment you cds2alv on SAP_ABA 75H (S/4HANA 2022) but I got the following two errors after changing code in
METHOD zif_cds_alv_ddic_access~get_source_id. TRY. " This gets the correct entity ID, when ObjectModel.transactionalProcessingDelegated is used! " Parameter type is changed to RETURNING in newer releases!
" is the following correct ? CAST cl_sadl_entity_cds( i_entity )->get_consumption_view_def( ). " CAST cl_sadl_entity_cds( i_entity )->get_consumption_view_def( IMPORTING ev_source_id = r_source_id ).
Two errors Then In Method Instantiate
Description Resource Path Location Type Method "REGISTER_ENTITY_TRANSACTION" does not exist. There is, however, a method with the similar name "REGISTER_TRANSACTION_FRAMEWORK". zcl_cds_alv_bopf_handler.aclass /Dxxx/.adt/classlib/classes/zcl_cds_alv_bopf_handler line 116 ABAP Syntax Check Problem
The current ABAP program "ZCL_CDS_ALV_IOC_CONTAINER=====CP" had to be terminated because it found a statement that could not be executed. In include "ZCL_CDS_ALV_BOPF_HANDLER======CM004 ", in line 23 of program "ZCL_CDS_ALV_BOPF_HANDLER======CP ", the following syntax errors have occurred: Method "REGISTER_ENTITY_TRANSACTION" does not exist. There is, however , a method with the similar name "REGISTER_TRANSACTION_FRAMEWORK".
In method execute_action
Description Resource Path Location Type Method "EXECUTE_SINGLE" does not exist. There is, however, a method with the similar name "DELETE_SINGLE". zcl_cds_alv_bopf_handler.aclass /Dxxx_en/.adt/classlib/classes/zcl_cds_alv_bopf_handler line 237 ABAP Syntax Check Problem