Skip to Content
0
Former Member
May 22, 2009 at 08:46 AM

REUSE_ALV_FIELDCATALOG_MERGE new field missing

2028 Views

Hi guys,

I'm adding one more column to be displayed on an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.

DATA : BEGIN OF itab OCCURS 0,
  matnr LIKE eina-matnr,
  extwg LIKE mara-extw,
  matkl LIKE mara-matkl,
  mtart LIKE mara-mtart,
  maktx LIKE makt-maktx,
  lifnr LIKE eina-lifnr,
  wglif LIKE eina-wglif,
 {color:red}idnlf like eina-idnlf,          " <---------new field{color}
  name1 LIKE lfa1-name1,
  profl LIKE mara-profl,
 END OF itab.

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = sy-cprog
      i_internal_tabname     = 'ITAB'
      i_client_never_display = ''
      i_inclname             = sy-cprog
*      i_bypassing_buffer     = 'X'
    CHANGING
      ct_fieldcat            = t_cat
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

I've added in a new field inside the ITAB internal table, but it wouldn't appear in the t_cat, only all the old fields will appear. What have i done wrong?