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: 

GETWA_NOT_ASSIGNED dump in sap

Former Member
0 Kudos

Hi experts,

I have a problem with ALV list.

The case is like below.

  1. I added a new field that length is 6 with CHAR type.
    1. It was okay. There was no problem with just adding a field.
  2. I added thefield with the attribute "EDIT = 'X'".
    1. In this case, the GETWA_NOT_ASSIGNED dmp occurs.

Everything is the same execpt EDIT attribute.

I need to set the field as editable so is there any solutions for this case?

Thanks.

8 REPLIES 8

FredericGirod
Active Contributor
0 Kudos

Hi,

could you give us more input ? 

a part of the code where you call the ALV Grid ?

regards

Fred

0 Kudos

Hi,

The code is like below.

  

DATA ls_fcat TYPE lvc_s_fcat .

        ls_fcat-fieldname = 'CNTMONT'.
      ls_fcat-reptext   = 'Aggregate Month'.
*      ls_fcat-edit      = 'X'.
      ls_fcat-outputlen = 6.
      APPEND ls_fcat TO gt_lvc_fcat.

   *** ALV DISPLAY
  CALL METHOD lcl_grid->set_table_for_first_display
    EXPORTING
      is_layout            = gs_lvc_layo
      it_toolbar_excluding = gt_ui_functions
      i_save               = 'A'
      i_default            = 'X'
      is_variant           = gs_variant
*      IS_VARIANT           = GS_VARIANT
    CHANGING
      it_sort              = gt_sort[]
      it_outtab            = gt_disp[]
      it_fieldcatalog      = gt_lvc_fcat[].

Thank you.

former_member191761
Active Participant
0 Kudos

Hi Lim,

Can you please share the part of code you are trying to add and also can you check if the column position you have added is correct?

Thanks

Sri

0 Kudos

Hi,

The code is like below.

  

DATA ls_fcat TYPE lvc_s_fcat .

        ls_fcat-fieldname = 'CNTMONT'.
      ls_fcat-reptext   = 'Aggregate Month'.
*      ls_fcat-edit      = 'X'.
      ls_fcat-outputlen = 6.
      APPEND ls_fcat TO gt_lvc_fcat.

   *** ALV DISPLAY
  CALL METHOD lcl_grid->set_table_for_first_display
    EXPORTING
      is_layout            = gs_lvc_layo
      it_toolbar_excluding = gt_ui_functions
      i_save               = 'A'
      i_default            = 'X'
      is_variant           = gs_variant
*      IS_VARIANT           = GS_VARIANT
    CHANGING
      it_sort              = gt_sort[]
      it_outtab            = gt_disp[]
      it_fieldcatalog      = gt_lvc_fcat[].

Thank you.

 

0 Kudos

Hi Lim,

are you trying to add this field at the end i.e., after all the fields in ALV ?

Can you please try passing ls_fcat-COL_POS field with your column position.

Thanks

Sri

0 Kudos

add this after the SET_TABLE..

  call method lcl_grid->set_ready_for_input

    exporting

      i_ready_for_input = '1'.

I solved the problem.

It was my mistake. The problem was that the layout attribute(stylefname, ctab_fname) were not matched with the internal table that containing the result data.

Thank you all.

former_member202818
Active Contributor
0 Kudos

Hi,

In List ALV, Edit functionality is not possible...

Go for grid...