Question on REUSE_ALV_FIELDCATALOG_MERGE ?
About the parameter I_INTERNAL_TABNAME of REUSE_ALV_FIELDCATALOG_MERGE:
DATA: BEGIN OF itab occurs 0, matnr1 LIKE mara-matnr, matnr2 TYPE mara-matnr, END OF itab.
When itab is imported, the exported CT_FIELDCAT contains only 1 record with fieldname 'MATNR1', WITHOUT a record 'MATNR2'. I was puzzled.
The document of the function says: "Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used."
DATA <f> TYPE <type>. DATA <f> LIKE <obj>.
I'm wondering, does only this declaration difference hide 'MATNR2'?
If so, what's the real difference between the two kinds of data object declarations in this situation?
Thanks to everyone. Any suggestion is appreciated.<u></u>