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

Displaying mutliple tables with same header for a single internal table data in smartforms

Former Member
0 Likes
760

Hello experts,

How to print different tables in same format with a single internal table data. Like,

I've an internal table of some 200 records of different disease categories ( each category have 7 records).I m sorting the internal table on disease type basis and appending an intial line before the new disease starts in internal table.  If there are 30 diseases for eg. I need to print all this data in smartform as 30 tables with same header and also no.of records for each disease (individual table) are same.

-All the table will have the same header.

-Before starting of each table I need to mention the disease type or name as heading.

Please suggest.

Thanks in advance.

Best regards,

Ramana

1 ACCEPTED SOLUTION
Read only

former_member202818
Active Contributor
0 Likes
739

HI Ramana,

Try this,

Use table object inside a loop in smartform.

Each time fill the internal table for table object with set of records.

Regards

Sreekanth

3 REPLIES 3
Read only

Rodrigo-Giner
Active Contributor
0 Likes
739

IMO,

You will have to use LOOP or TABLE Object, but you cant generate them on the run, you will have to make a specific table for each disease, because you dont know how many disease you have to print you will need to make the "MAX" por example 10 tables DISEASE_1, DISEASE_2, DISEASE_3, etc

Then in your printing program or in the smartforms you will have to parse your full table and split it in the differente diseases using Field Symbols, make one table polish the design and then just copy the other 9.

Read only

former_member202818
Active Contributor
0 Likes
740

HI Ramana,

Try this,

Use table object inside a loop in smartform.

Each time fill the internal table for table object with set of records.

Regards

Sreekanth

Read only

0 Likes
739

Perfect.. That works..

Thanks Sreekanth...