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

Dump with CL_CI_TEST_PRETTY_PRINT #23

Open
keldgr opened this issue Oct 27, 2023 · 2 comments
Open

Dump with CL_CI_TEST_PRETTY_PRINT #23

keldgr opened this issue Oct 27, 2023 · 2 comments

Comments

@keldgr
Copy link

keldgr commented Oct 27, 2023

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

@keldgr
Copy link
Author

keldgr commented Oct 27, 2023

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

@larshp
Copy link
Owner

larshp commented Oct 27, 2023

can it be reproduced on the 1909 developer edition?

anyhow, probably a workaround is needed for that particular class

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

2 participants