Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

REUSE_ALV_FIELDCATALOG_MERGE new field missing

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?

Former Member
Former Member replied

Hi,

This issue with ALV buffer: when you change field catalog it is not always updated immediately. To refresh the buffer you can run report BALVBUFDEL or BCALV_BUFFER_DEL_SHARED (I do not remember the difference and so run both to be sure ). ....

If you have any variant ,Please dletete the variante and try.

Regards

Pugazhenthi.P

Satyam Computer Services Ltd

3 View this answer in context
Not what you were looking for? View more on this topic or Ask a question