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

smartforms table lines

Former Member
0 Likes
1,036

Hi experts,

I have displayed table data in smart forms something like this


000200000163 0001 03STA-S29         
000200000163 0002 03UNS-BS003       
000200000163 0003 03UNS-BS001       

I put the ITAB in the loop in the smartforms...

But i need lines between them.How can i achive it?

And also i want to increase the window dynamically,depends on the number of records in the dbtable.

000200000163 0001 03STA-S29

-


000200000163 0002 03UNS-BS003

-


000200000163 0003 03UNS-BS001

-


points guaranteed

cheers

kaki

10 REPLIES 10
Read only

Former Member
0 Likes
1,018

Hi Kaki,

One way is to populate the line in the Itab itself, it may create problems in summing etc.

You can use Templates in smart forms with one column.

Regards,

Ravi

Read only

0 Likes
1,018

Hi ravi,

Iam not doing any summing.How can i populate line in the itab itself?

kaki

Read only

0 Likes
1,018

In the print program when you are populating the Itab,

you can write,

move '----


' to itab .

append itab.

after every line.

Regards,

Ravi

Read only

Former Member
0 Likes
1,018

Hi,

After each record

itab-line = '----


'.

append itab.

Regards

Amole

Read only

Former Member
0 Likes
1,018

Hi Kaki,

Define a <b>template</b> for your internal table, and have the Box (<b>Grid lines</b>) defined for the template under <b>Template tab</b>.

Regards,

Raj

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,018

Hi,

Design your table using pattern.(select pattern).

It's available in Table->Table(Enterprise version).

Kindly reward points if it helps.

Read only

Former Member
0 Likes
1,018

Hi Kaki,

If u r using 'Table' in SmartForm for display data

then , u get the functionality of 'Select Pattern' where u can select ur display pattern.

After creating table . U get Table tab. Here u will get icon which is for 'Select Pattern'.

Regards,

Digesh Panchal

Read only

0 Likes
1,018

Hi,

For ex: i have created itab in se38 having 3 fileds.(matnr,ersda,meins)and iam passing into smartforms structure t_mat.

CALL FUNCTION '/1BCDWB/SF00000252'

TABLES

T_Mat = itab.

I have created table in smartforms and it is asking HEADER,MAINDATA,FOOTER.So where i need to pass the t_mat table to get the lines?

kaki

Read only

0 Likes
1,018

Hi Kaki

In the table node you will find a 'DATA' tab. Check the internal table check box and enter your internal table name in the place provided and work area name after the INTO clause.

Ravindra Suvarna

Read only

Former Member
0 Likes
1,018

Hi Kaki,

After Creating table u get 'DATA' tab.

Here u have to check operand and pass ur internal table.

if u have not define work area separately than u can pass same name(i.e Internal table name)in both field.

Regards,

Digesh Panchal