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

Can we print two internal table simultaneously in smartforms ?

Former Member
0 Likes
1,767

Hello guys,

I want to print two internal table in smartforms. But table should be print simultaneously.
Like :

ITAB1-ROW1
  ITAB2-ROW1
ITAB1-ROW2
  ITAB2-ROW2

Thanks in advanced.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,544

You can combine Loops and Tables in SmartForms, or you can add a code node in a Loop or Table to read the second internal table (if relation one to one between tables)

7 REPLIES 7
Read only

keremkoseoglu
Contributor
0 Likes
1,544

How about combining ITAB1 and ITAB2 into ITAB3 the way you want, and sending ITAB3 to the SmartForms function?

Read only

0 Likes
1,544

Thanks Kerem for reply. But i don't want to combine two table

Read only

former_member596005
Participant
0 Likes
1,544

I think looping on basis of table index (sy-tabix) may fulfill your requirement.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,545

You can combine Loops and Tables in SmartForms, or you can add a code node in a Loop or Table to read the second internal table (if relation one to one between tables)

Read only

0 Likes
1,544

Hi Raymond thanks for reply, could you please be specific cause i'm new for smartforms. If any link is there its good.

Read only

0 Likes
1,544

Dear Harshal

Please google for how to create loops and tables in smartform to get a detailed idea. You will find good number of links/tutorials on the same.

Thanks

nabheet

Read only

DoanManhQuynh
Active Contributor
0 Likes
1,544

if your itab1 and itab2 dont have master-detail relationship, its mean for line 1 of table 1 you also display line 1 of table 2, i suggest to use program line. so basically you create a table for itab1, inside main area add program lines (right click in cell, create/flow logic/program lines) into row cell in order to read table 2, after that add a text to display both itab1 and itab2.

if its master-detail, you add a loop inside row cell (same path as above), add condition in conditions tab, create template in side loop.

I believe that there are many example you could find on internet about this.