cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello Experts,

I created a web dynpro app to read multiple sheets.

Web dynpro layout:

Based on check box i read a sheets from excel file. ( View_Names are sheet names)

My code is working perfectly upto 18 sheets, but more than 18 sheets it throws an error as shown as below:

500 SAP Internal Server Error

ERROR: Field symbol has not been assigned yet. (termination: RABAX_STATE)

i try to find out where the error occurs using TCODE: ST22

Error occured inside a method.

Source code extraction: at the line 76 error occuring.

My code:


* Call method to get list of worksheets in the .xlsx file

  lref_excel->if_fdt_doc_spreadsheet~get_worksheet_names(
      IMPORTING
        worksheet_names = lt_worksheets ).

* Condition to check whether .xlsx file has any active worksheets

  IF lt_worksheets IS NOT INITIAL.

  ELSE.

*<< Display error message >>

    RETURN.
  ENDIF.
*---------------------------------------------------------------------------------------
*loop into the sheets

loop at lt_worksheets into ls_view. 

if ls_view-check_box ne 'X'.
  CONTINUE.
  ENDIF.
  lv_name = ls_view-view_name.
  CONDENSE lv_name.

  lref_data = lref_excel->if_fdt_doc_spreadsheet~get_itab_from_worksheet( lv_name ).

* Fetch all records in the active worksheet

  ASSIGN lref_data->* TO <ft_excel_data>.

----- Some logics-----
*
*
*
*
endloop.

How to solve this error?

is there is any limitations for reading sheets

Any suggestions please....

Thanks in advance....

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member383962
Participant
0 Likes

Hello Experts,

Thanks for your response....

I solved my issue.. by taking a copy of that standard class "CL_FDT_XL_SPREADSHEET" and modifying that ...

Thanks to all...