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

Write statement in table control

Former Member
0 Likes
379

Hi All,

I want to write a table control program and also at bottom i need to have a report of the table content.For displayinr the report i need to use the Write statement.Can i use the write statement in the Module pool program to display the report.Otherwise how to do that?Cany any one explain the table control code and how to inculde this printing report in the same screen.Please explain with sample code.

Thanks in advance.

2 REPLIES 2
Read only

former_member378318
Contributor
0 Likes
361

I don't see why you would have a table control AND a report showing the table contents. Surely the table control would show the table contents?

You could use the WRITE command but only in conjunction with LEAVE TO LIST PROCESSING. I'm not sure what would happend if you had a table control and a list on the same screen, they would have to be two separate sub-screens? You could easily test this with some sample code. Alternatively you could probably use object code with screen containers.

Read only

Former Member
0 Likes
361

for this purpose u need to create a subscreen area under tablecontrol and there u can add the report code... Best way is use ALV grid in this subscreen area for printing the report.