larshp / upDOWNci

Upload and download SAP Code Inspector variants in XML format - ABAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dump with CL_CI_TEST_PRETTY_PRINT

keldgr opened this issue · comments

Short text from dump: Length error in the IMPORT statement.

Code:
METHOD download_attributes.

DATA: lt_import TYPE ty_parameter_tt,
      lr_data   TYPE REF TO data.

FIELD-SYMBOLS: <lg_data> TYPE data.


IF iv_attributes IS INITIAL.
  go_xml->write_variant( iv_testname = iv_class
                         iv_version  = iv_version ).
ELSE.
  build_memory(
    EXPORTING
      iv_class  = iv_class
    IMPORTING
      er_data   = lr_data
      et_memory = lt_import ).
  ASSIGN lr_data->* TO <lg_data>.

  IMPORT (lt_import) FROM DATA BUFFER iv_attributes.
  IF sy-subrc <> 0.
    RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'.
  ENDIF.

  go_xml->write_variant( iv_testname = iv_class
                         iv_version  = iv_version
                         ig_data     = <lg_data> ).
ENDIF.

ENDMETHOD.
IMPORT_WRONG_END_POS_20231027_130025.zip

ABAP Platform: 2021, service package 03 (11/2022)

can it be reproduced on the 1909 developer edition?

anyhow, probably a workaround is needed for that particular class