‎2009 May 14 9:51 AM
Hi everybody,
I'm quite new to ABAP, so I am sorry about my following question.
I have created a dynpro which contains a table control. How can I print the content of this table with ABAP?
Furthermore I have some textfields in the dynpro. Is it possible to print some of them, but not all?
Thanks for your help!
Regards!
‎2009 May 14 10:10 AM
Hi,
Try the below link to print the content of table control.
http://help-abap.blogspot.com/2008/10/print-table-control-data-with-header.html
Regards
‎2009 May 14 1:00 PM
Printing table content worked, but I am not able to print the column headers, because I don't understand the "top-of-page" code snippet shown there.
I always get a message like: "unknown type slis_t_fieldcat_alv".
Does anybody know what this means in the context of the sourcecode?
Regards!
‎2009 May 14 1:05 PM
‎2009 May 14 1:30 PM
Isn't this already done in the form?
FORM top_of_page.
*
*** Modify column headers
DATA: lt_slis_fcat TYPE slis_t_fieldcat_alv,
la_fcat LIKE LINE OF lt_slis_fcat.
*
* get the ALV field catalog from the ALV generated by the print
* FM FITRV_PRINT_TABLE_CONTROL_DATA
...If not, can you post an example please? I don't understand exactly, what you mean - sorry...
Thanks a lot