Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

[abap2xlsx] Issue with build 7.0.3

former_member409077
Discoverer
0 Kudos

I have an issue with the current build of the abap2xlsx library. The demo program ZDEMO_EXCEL41 is crashing because the class zcl_excel_worksheet is currently marked as final. The error message is "The final class "ZCL_EXCEL_WORKSHEET" cannot have any subclasses.".

This is probably the code which causes the crash (Report ZDEMO_EXCEL41, Line 40 and following):

CLASS lcl_my_zcl_excel_worksheet DEFINITION INHERITING FROM zcl_excel_worksheet.
   PUBLIC SECTION.
     METHODS: constructor IMPORTING ip_excel TYPE REF TO zcl_excel
                                    ip_title TYPE zexcel_sheet_title OPTIONAL  " Will be ignored - keep parameter for demonstration purpose
                          RAISING   zcx_excel.
ENDCLASS.

After removing the final flag from this class the program and all other demo programs are running as expected.

Thank for your support.

1 ACCEPTED SOLUTION

_IvanFemia_
Active Contributor
0 Kudos

Hi,

could you please update to the latest version available on GitHub?

Ivan

2 REPLIES 2

_IvanFemia_
Active Contributor
0 Kudos

Hi,

could you please update to the latest version available on GitHub?

Ivan

0 Kudos

Thank you for the patch.