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

July 27th Daily_nugg problem with class ZCL_EXCEL_READER_2007 Method LOAD_WORKBOOK #109

Closed
ivanfemia opened this issue Dec 27, 2013 · 1 comment
Milestone

Comments

@ivanfemia
Copy link
Collaborator

I just download the abap2xlsx_Daily.nugg.zip and tried to activate it.
Class: ZCL_EXCEL_READER_2007
Method: LOAD_WORKBOOK
Line: 102
IF node IS BOUND.
fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = workbookview ).
ip_excel->set_active_sheet_index( workbookview-activetab + 1 ).
ENDIF.

Problem: woekbookview-activatab is not type compatible with the parameter.
Quick and durty Work arround code:
IF node IS BOUND.
fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = workbookview ).

DATA: lv_active_worksheet TYPE ZEXCEL_ACTIVE_WORKSHEET.
lv_active_worksheet = workbookview-activetab + 1.*

ip_excel->set_active_sheet_index( lv_active_worksheet ).

ENDIF.
Regards
Daniel

@ivanfemia
Copy link
Collaborator Author

Fixed in commit [[url:https://code.sdn.sap.com/code/abap2xlsx/subversion/changesets/211|#211]]

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