‎2018 Dec 11 12:13 PM
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.
‎2018 Dec 11 3:26 PM
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)
‎2018 Dec 11 12:37 PM
How about combining ITAB1 and ITAB2 into ITAB3 the way you want, and sending ITAB3 to the SmartForms function?
‎2018 Dec 11 3:06 PM
Thanks Kerem for reply. But i don't want to combine two table
‎2018 Dec 11 3:10 PM
I think looping on basis of table index (sy-tabix) may fulfill your requirement.
‎2018 Dec 11 3:26 PM
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)
‎2018 Dec 11 3:51 PM
Hi Raymond thanks for reply, could you please be specific cause i'm new for smartforms. If any link is there its good.
‎2018 Dec 12 7:11 AM
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
‎2018 Dec 12 12:37 AM
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.