SAP Knowledge Base Article - Preview

2563963 - ERROR: Field symbol not yet assigned during export to spreadsheet

Symptom

Data can't be exported to Microsoft Excel using the Export to Spreadsheet function. After selecting the Excel (in Office 2007 XLSX Format) option and pressing Enter, runtime error occurs.
The error message is the following: ERROR: Field symbol not yet assigned. The problem occurs only if a calculation has been defined for invisible columns in the ALV.

Category               ABAP programming error
Runtime Errors         GETWA_NOT_ASSIGNED
ABAP Program           CL_SALV_EX_UTIL===============CP
Application Component  BC-WD-CMP-ALV-ABA

Short Text

Field symbol has not been assigned yet.

What happened?

Error in the ABAP application program.
The current ABAP program "CL_SALV_EX_UTIL===============CP" had to be terminated
because it found a statement that could not be executed.

Source Code Extract

method FACTORY_RESULT_DATA_TABLE.

  FIELD-SYMBOLS: <lt_data>       TYPE STANDARD TABLE.

*...Source
  DATA:
    lr_model TYPE REF TO cl_salv_ex_model_table.

  DATA:
    lr_data TYPE REF TO cl_salv_bs_data_table_actions.

  CREATE OBJECT lr_data.

  ASSIGN r_data->* TO <lt_data>.
>>>>>  lr_data->set_data(
         EXPORTING                 
           as_reference = abap_false 
         CHANGING               
           value        = <lt_data> ).
  DATA:
    l_row  TYPE i,
    ls_lvc_row type lvc_s_row,
    lt_row TYPE salv_bs_t_int.

 


Read more...

Environment

  • Web Dynpro for ABAP
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5
  • Below SAP_UI 740 SP18 - User Interface Technology 7.4 Support Package 18
  • Below SAP_UI 750 SP7 - User Interface Technology 7.5 Support Package 7
  • Below SAP_UI 751 SP2 - User Interface Technology 7.51 Support Package 2
  • SAP NetWeaver Application Server for ABAP 7.5 for SAP S/4HANA
  • SAP NetWeaver Application Server 7.51 for SAP S/4HANA 1610

Product

SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Application Server 7.51 for SAP S/4HANA 1610 ; SAP NetWeaver Application Server for ABAP 7.5 for SAP S/4HANA, on-premise edition 1511 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

Web Dynpro; Webdynpro, alv, program termination, display, graphic, export to excel, spreadsheet, formats, GETWA_NOT_ASSIGNED, CL_SALV_EX_UTIL, 2007 XLSX Format, field symbol, not yet assigned, Microsoft, Excel, sheet, SAP_UI 751 SP2, SAP_UI 750 SP7, SAP_UI 740 SP18, lr_data->set_data, ASSIGN, r_data, as_reference, FACTORY_RESULT_DATA_TABLE, lr_data, program termination for display of graphic , KBA , BC-WD-CMP-ALV-ABA , ALV for ABAP , BC-WD-ABA , Web Dynpro ABAP , BC-WD-ABA-REN , Rendering , BC-WD-ABA-RUN , Web Dynpro ABAP Runtime , BC-WD-ABA-CFG , Configuration / Personalization , BC-WD-ABA-GEN , Generation , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.