Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: Printing data from table control

$
0
0

Hi everybody,

 

I know that the problem has been solved a couple years ago by copying and adjusting FM, but for anybody that googles out this thread there's an easier workaround.

The thing with blank header is that most probably table control displays data from internal table declared with TYPES in the program (at least that was my case). FM FITRV_PRINT_TABLE_CONTROL_DATA makes its own "FIELDCATALOG_MERGE" (so do speak) and tries to find display characteristics in DDIC, but it can't find any.

There are 2 fixes:

- base your table control on DDIC

- if you can't for some reason, before FM call replace your program structure name with DDIC structure name. It's kept in tc parameter (table control). It has a field COLS, which is a table of columns from your table control. Each line in COLS has a field SCREEN, and there there's field NAME, where "[STRUCT]-[FIELD]" sits. Just replace STRUCT with your DDIC structure name and you're good to go.


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>