cancel
Showing results for 
Search instead for 
Did you mean: 

WD Application - Error Field symbol has not yet been assigned.

Former Member
0 Kudos

I was able to implement the blog of creating variants with select-options [https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10731] [original link is broken] [original link is broken] [original link is broken]; & I also implemented third part which is getting varaints.[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10756] [original link is broken] [original link is broken] [original link is broken]; but after selecting variants and on click of OK button I am getting following error and when I go to ST22 I see that error in a generated method ADD_RANGE_TABLE_TO_NODE

Runtime error : GETWA_NOT_ASSIGNED

* => perform the copy operation
  assign <field>-mt_range_table->* to <range_table>.
  Error is pointing here ---loop at <range_table> assigning <range_table_line>.
*   get pointers to the fields
    assign component 'SIGN'   of structure <range_table_line> to <sign_rt>.
    assign component 'OPTION' of structure <range_table_line> to <option_rt>.
    assign component 'LOW'    of structure <range_table_line> to <low_rt>.
    assign component 'HIGH'   of structure <range_table_line> to <high_rt>.

*   create an element and assign the values
    lr_element = lr_context_node->create_element( ).
    lr_context_node->bind_element( new_item = lr_element set_initial_elements = abap_false ).
    lr_element->set_attribute( exporting name = 'SIGN'   value = <sign_rt> ).
    lr_element->set_attribute( exporting name = 'OPTION' value = <option_rt> ).

This is explorer message.

Note

The following error text was processed in the system DV1 : Field symbol has not yet been assigned.

The error occurred on the application server sape-dev_DV1_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: ADD_RANGE_TABLE_TO_NODE of program CL_WDR_SELECT_OPTIONS=========CP

Method: RENDER_DELTA of program CL_WDR_SELECT_OPTIONS=========CP

Method: WDDOMODIFYVIEW of program /1BCWDY/4TNXIOA4R91CVJDPUIY5==CP

Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/4TNXIOA4R91CVJDPUIY5==CP

Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP

Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP

Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP

Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP

Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP

How do I handle this? Any help would be greatly a

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Do you have any code in WDDOMODIFYVIEW? If so can you post that? This is all standard SAP code where the error is triggering. Asuming you don't have a bug in your system that could be fixed by OSS Note, then it would be important to see the upstream code to learn if something you are doing is triggering this error.

Former Member
0 Kudos

Thomas,

here is what I exactly have

method WDDOMODIFYVIEW .

DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).
  ENDIF.

  DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv( ).
  DATA l_table TYPE REF TO cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).
  l_table->if_salv_wd_table_settings~SET_VISIBLE_ROW_COUNT( 20 ).



wd_this->m_handler->set_global_options( i_display_btn_cancel  = abap_false
                                                              i_display_btn_check   = abap_false
                                                              i_display_btn_reset     = abap_false
                                                              i_display_btn_execute = abap_false ).

                                                              DATA: LR_IF_CONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE,
LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE,
LR_CMDL TYPE REF TO CL_SALV_WD_CONFIG_TABLE,
LR_TABLE_SETTING TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).

IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LR_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.

" get reference to the ALV model

LR_IF_CONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
LR_CMDL = LR_IF_CONTROLLER->GET_MODEL( ).
LR_TABLE_SETTING ?= LR_CMDL.

" Set column width

DATA LR_COL TYPE REF TO CL_SALV_WD_COLUMN.

LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PSPID' ).
LR_COL->SET_WIDTH( '100' ) .


LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'POST1' ).
LR_COL->SET_WIDTH( '100' ) .

LR_TABLE_SETTING->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).



endmethod.

FYI.. When I set abreak point below it is stopping at this point and this is Inbound plug method of mainview.After this point I am getting the dump.

method HANDLEFROM_GETVARIANT .

wd_this->lt_range_table = lt_range_table .

  wd_this->M_HANDLER->SET_RANGE_TABLE_OF_SEL_FIELD(
             exporting I_ID = 'PS_PSPID'
                       IT_RANGE_TABLE = lt_range_table  ).


endmethod.

Intially I was getting similar DUMP of field sysmbol On ONCLICK OK method method of GETVARIANT Screen.So I assigned commented code (assign r_pspid to <fs>.) I guess this is where I did wrong.Did I do soemthing wrong?

IF sy-subrc = 0.
    IMPORT r_pspid = r_pspid
           FROM DATABASE indx(yw) ID l_id.
    if sy-subrc = 0.
      assign wd_this->lt_range_table->* to <fs>.
*      assign r_pspid to <fs>.

   dump here----   <fs> = r_pspid.

    endif.
  ENDIF.

Let me know if you need more info.

Rgds

Vara

Edited by: Vara K on Jan 23, 2009 5:50 PM

Former Member
0 Kudos

Resolved by myself.

It was related to plugs.

Former Member
0 Kudos

Hi,

Can you pls elaborate how you solved your problem.

I am getting the same problem. even i am following the same blog to save and select variants.

I am getting this dump exactly on clicking OK after selecting variant.

Any help is greately appreciated.

Regards,

Ajay