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

Ranges can't be found when worksheet title contains spaces #43

Closed
ivanfemia opened this issue Dec 27, 2013 · 5 comments
Closed

Ranges can't be found when worksheet title contains spaces #43

ivanfemia opened this issue Dec 27, 2013 · 5 comments
Milestone

Comments

@ivanfemia
Copy link
Collaborator

When a range is defined in a worksheet with a title i.e. "value table" that contains spaces, then it is not found when i.e. it is used in a data validation referring to the range.

@ivanfemia
Copy link
Collaborator Author

The sheet name is directly taken in the SET_VALUE method of class ZCL_EXCEL_RANGE. I've added ' before and after the name when it contains a space. Demo report ZDEMO_EXCEL9 is adjusted to test this functionality.

@ivanfemia
Copy link
Collaborator Author

Merged into issue #46

Gregor can we invalidate this one?

@ivanfemia
Copy link
Collaborator Author

Perhaps it would be a good idea to move the coding in the SET_VALUE method of class ZCL_EXCEL_RANGE:

  IF ip_sheet_name CP '* *'.
    CONCATENATE `'` ip_sheet_name `'` INTO me->value.
  ELSE.
    me->value = ip_sheet_name.
  ENDIF.

to a GET_ESCAPED_SHEET_NAME Method of Class ZCL_EXCEL_COMMON.

@ivanfemia
Copy link
Collaborator Author

Yep this is the purpose....

@ivanfemia
Copy link
Collaborator Author

Merged into issue #46

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