cancel
Showing results for 
Search instead for 
Did you mean: 

Print table in Smartform

Former Member
0 Kudos

Hello All,

I have created a program lines node and fetched data from a DB table.

I have created a table in the main window of a smartform.

and created line type and assigned it to header,main area and footer.

my problem is how to print this table data in my form?

Sachin.

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 12:38 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The the Data tab.

Loop at itab into WA(seperate variable)

In the Main Area

Create a Row

Assign the Line type you created to the row

U can assign it in the firt tab of the row

In th ecells that are automatically created for the row

you can put the wa-fields here by creating text elements in the cells

Former Member
0 Kudos

hi you have data in table suppose itab and you have a work area wa_itab.

now go to data tab in form's table. Here u do like this:

Loop at itab into wa_itab.

now go to line type of main area and create text in each cell.

Now for each cell you need to create variables to print Data.

If you have ecc6.0 than go to green + sign on top and write like this &wa_itab-matnr& and press enter.

for other version click on variales button on top and drag your variable into proper text file.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 12:37 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi sachin,

You have to ues the Loop at command option inside your smartforms.

Thanks,

Greetson