‎2005 Jul 11 12:24 PM
what is the difference between table and Loop in the smartform ? How can I get data to the form?
‎2005 Jul 11 12:36 PM
Table is a table with column, line, header and footer you can print.
Loop is just a loop on an internal table.
Both use an internal table for the data to print.
Sincerely
‎2005 Jul 11 12:41 PM
Hi,
Table is the one in which you set Linetype and pattern[Table->Table tab].In that also,use can specify internal table into workarea[Table->Data tab].You can use header and footer in Events tab.You can set conditions.In loop,you cannot specify the linetype.All others are same.
Linetype is nothing but how you want the field width of fields to be displayed in the output.
Check example sf_example_01 and sf_example_02.
Kindly reward points if it is useful.Otherwise,get back.
‎2005 Jul 11 12:50 PM
Based on a certain condition, I have to print table on a certain condition that one table contains details of 1week , second table contains details of 2nd week and third table contains details of 3rd week. But all the three tables are same. how should I design this in the smart form... explain me clearly..
‎2005 Jul 11 1:00 PM
Hi Hari,
Global definitions->Global data
declare
mara type mara
itab1 type standard table of mara
itab2 type standard table of mara
itab3 type standard table of mara
wa1 type mara
wa2 type mara
wa3 type mara
In main,right click and create program lines.
In that,
input parameter
mara
Output parameter
itab1
itab2
itab3
In the coding part,
select * from mara into table itab1 where first condition.
select * from mara into table itab2 where second condition.
select * from mara into table itab3 where third condition.
Right click Code(Program line) Node->create loop.
loop->Data
itab3 into wa3
Right click Code(Program line) Node->create loop.
loop->Data
itab2 into wa2
Right click Code(Program line) Node->create loop.
loop->Data
itab1 into wa1
Hope this helps.