Application Development and Automation 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: 
Read only

Printing Dynpro Table

Former Member
0 Likes
547

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!

4 REPLIES 4
Read only

Former Member
0 Likes
507

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

Read only

Former Member
0 Likes
507

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!

Read only

0 Likes
507

In the TOP you will have to declare TYPE-POOLS: SLIS.

Read only

0 Likes
507

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