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

Smart Form Table

Former Member
0 Likes
437

Hi Experts

How can we draw table in smart form in below form

-


NAME | AMOUNT |


| dr cr |

-


Dashed lines are nothing but stringt linge.

Please help me.

3 REPLIES 3
Read only

Former Member
0 Likes
412

Hi Sanjana,

To display data in an internal table we have two options.

1. Loop at TABLE.

2. Loop at TEMPLATE.

As i understand your requirment I will suggest you to take the second option. Create a template by using the flexibility of template to design as we need.

Loop through Template.

I hope this will solve your issue.

If you have any queries, Please let me know.

Regards,

Lijo Joseph

Read only

Former Member
0 Likes
412

Hi sanjana.

I feel u would like to know how to draw table in smartform.

Step1 : put cursor on main window or any other window.

right click and choose create-> table.

in table, it will give header, main and footer .

Step2 : Go to header and maintain ur header text for each field.

Before go to this,

first select how many fields u need to display.

place cursor on header, right click create-> table line.

on the right side u can see pictorial view of table line.

just above this table painter, choose change mode.

one pencil type idon available on table painter menu.

choose this and splitt the line type into many based on ur requirement.

after u splitt this, u can see cells of the line type on the left path.

for each cell, create a text by placing cursor on it.

in the cell, u want to maintain text, directly right.

Step 3: populate the internal table and pass this to table on smartform.

use loop in the mainwindow.

repeat the same process as i said earlier.

Note : here in text of each cell, u need to maintain field value to be displayed.

For ex u want to pass work area values, then

&wa_table-field&

Try in this pattern.

if u need any help u can get back to me.

Reward point if it helpful.

Thanks

Swapna