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

smartform help

Former Member
0 Likes
649

what is the difference between table and Loop in the smartform ? How can I get data to the form?

4 REPLIES 4
Read only

Former Member
0 Likes
454

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
454

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.

Read only

0 Likes
454

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..

Read only

0 Likes
454

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.