I have a problem with REUSE_ALV_FIELDCATALOG_MERGE FM. I need to add 5 fields into ALV.
DATA: BEGIN OF gt_collective7 OCCURS 0,
selected(1),
dat LIKE resb-bdter,
overdue TYPE c,
werks LIKE resb-werks,
extwg LIKE mara-extwg,
vd LIKE fmfincode-fincode,
...
TM like afvc-tplnr,
ARBPL_Z like pat106-entries,
ARBPL_R like pat106-entries,
PLTXT like iflo-pltxt,
lgort like resb-lgort,
END OF gt_collective7,
gt_collective7 defined. Next i use
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'GT_COLLECTIVE7'
i_inclname = sy-repid
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
and inside fieldcat there's no new fields appear. What could be a problem in this case? I thought that it could be 'type' inside gt_collective7 definition, but no - it worked just fine previously.
不知道它到底有什么帮助,但是以小写形式声明了gt_collective7的所有其他字段,并以某种方式重新激活了程序,从而解决了问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.