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: 

ALV Fieldcatalog with REUSE_ALV_FIELDCATALOG_MERGE and field with slash separators

Former Member
0 Kudos

Hi all,

I want to get a fieldcatalog from an internal table via function module

REUSE_ALV_FIELDCATALOG_MERGE.

My ITAB:

DATA: BEGIN OF LT_FILE_POP OCCURS 0,
 ANLAGE TYPE ANLAGE ,
 SPARTE TYPE SPARTE ,
 PROC_REF type /IDXGC/PROC_HDR-PROC_REF ,
 VERTRAG TYPE VERTRAG,
 VSTELLE TYPE VSTELLE ,
 END OF LT_FILE_POP.

But the function module is exporting the fielkatalog just for the entries without the slash-operator. With other words:

PROC_REF type /IDXGC/PROC_HDR-PROC_REF ,

is not in the field catalog. Does anybody know why?

2 REPLIES 2

Former Member
0 Kudos

sorry, my posted coding was wrong:

the ITAB looks:

DATA: BEGIN OF LT_FILE_POP OCCURS 0,
ANLAGE TYPE ANLAGE ,
SPARTE TYPE SPARTE ,
PROC_REF type /IDXGC/DE_PROC_REF ,
VERTRAG TYPE VERTRAG,
VSTELLE TYPE VSTELLE ,
END OF LT_FILE_POP.

Sandra_Rossi
Active Contributor
0 Kudos

Maybe because of the ALV buffer. Empty it by calling the program BALVBUFDEL. In my system, it works with // types.

By the way, your example shouldn't work because the reference types must refer to a DDIC table/structure, so it should be ANLAGE TYPE EVER-ANLAGE, etc.