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

ZDEMO_EXCEL43 short dumps if input Excel file has more than 1 column / outputs only 1st character if 1 column #4

Open
sandraros opened this issue May 7, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sandraros
Copy link
Collaborator

To reproduce, run the program ZDEMO_EXCEL43:

  • Case 1 (short dumps if input Excel file has more than 1 column):
    • select this Excel file below (has more than 1 column), and the below short dump is raised.
      Several columns.xlsx
      UNCAUGHT_EXCEPTION
      ZCX_EXCEL
      ...
      Chain of Exception Objects
      ...
      Level    1     Class    ZCX_EXCEL
      ...
      Internal table has less columns than excel
      ...
      ERROR                          Internal table has less columns than excel
      ...
      Active Calls/Events
      ...
      3 METHOD       ZCX_EXCEL=====================CP    ZCX_EXCEL=====================CM005     2
        ZCX_EXCEL=>RAISE_TEXT
      2 METHOD       ZCL_EXCEL_WORKSHEET===========CP    ZCL_EXCEL_WORKSHEET===========CM01M    63
        ZCL_EXCEL_WORKSHEET=>GET_TABLE
      1 EVENT        ZDEMO_EXCEL43                       ZDEMO_EXCEL43                          48
        START-OF-SELECTION
  • Case 2 (outputs only 1st character if 1 column)
    • Select this Excel file below:
      One column.xlsx
      image
      Actual result by ZDEMO_EXCEL43
      image

Expected results:

  • Case 1: change the program ZDEMO_EXCEL43 so that:
    • the user can choose the number of columns for the internal table (selection screen parameter)
    • any exception is displayed instead of a short dump
  • Case 2:
    • the columns of the internal table are of type string instead of 1 character, or let the user choose the type of each column.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant