Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Test run error #29

Open
ChristianFinkbeiner opened this issue Feb 12, 2024 · 0 comments
Open

Unit Test run error #29

ChristianFinkbeiner opened this issue Feb 12, 2024 · 0 comments

Comments

@ChristianFinkbeiner
Copy link

We receive unit Test errors from the ABAP UNIT RUNNER.

image

One of them is an exception from the xco lib

LTC_RAP_NODE GET_FIELDS_FROM_ABSTRACTENTITY Exception Error <CX_XCO_NEWS_EXCEPTION>

ENDTRY.

TRY.
    mo_cut->set_is_root_node(  ).
    mo_cut->set_implementation_type( zdmo_cl_rap_node=>implementation_type-unmanaged_semantic ).
    mo_cut->set_data_source_type( zdmo_cl_rap_node=>data_source_types-cds_view ).
    mo_cut->set_entity_name(  gc_root_entity_name ).
    mo_cut->set_object_id( CONV #( gc_abstract_entity_object_id ) ).
    mo_cut->set_field_name_etag_master( gc_abstract_entity_etag_master ).
    "ZDMO_agency
      **mo_cut->set_cds_view( CONV #( lv_view_name ) ).**
    mo_cut->get_fields( ).
    DATA(lt_fields) = mo_cut->lt_fields.
    "cl_abap_unit_assert=>fail( msg = 'Exception ZDMO_cx_rap_generator=>root_cause_exception not raised' ).
    cl_abap_unit_assert=>assert_not_initial(

METHOD if_xco_dtel_read_accessensure_existence.
IF if_xco_ad_read_access
exists( ) EQ abap_false.
RAISE EXCEPTION TYPE cx_xco_news_exception
MESSAGE e282(sxco) WITH ms_target-object_name.

ENDIF.

ro_me = me.

ENDMETHOD.

Message is:
Data element TRKORR does not exist for the provided read state and origin.
Test 'LTC_RAP_NODE->GET_FIELDS_FROM_ABSTRACTENTITY' in Main Program 'ZDMO_CL_RAP_NODE==============CP'

View in Question is
gc_abstract_entity_name TYPE string VALUE 'D_SELECTCUSTOMIZINGTRANSPTREQP ',

It seems that the data type TRKORR is not accessible through the library - maybe because feature toggle A4C_OLD_REPOSITORY_APIS has not status released

Kind regards,
Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant