‎2007 Nov 29 6:11 AM
Hi,
Please tell me how to display line items in tables using smartforms.
eg.
1
2
3
Total items 3
Pls explain in steps in detail.
Thanks
‎2007 Nov 29 6:15 AM
hi
u want to print a line in the table afte each line item.. if i am not wrong... jst look at this
click on the TABLE u r using -
>seelct the TABLE TAb -->select the LINE TYPE u r using -->then select icon with " [ __ ]" there are somany icons to display the broders.. select the one u want..
one more this i want to add here u can create more than one line type in ONE table.
if it not solved u r problem please let me know more clearly
‎2007 Nov 29 6:19 AM
Hai Rahul,
First define one table in form interface in tables tab
second define work area in global definitions in global data tab
and crate one window by selection that window say create->flow logic->looop
just create the loop and place the values in texts
Regards
kishore ale
‎2007 Nov 29 6:30 AM
You can create a table in smartform ,by rightclick on the window and create table
Under the TABLE tab, you can create one or more lines (L1 and L2).
Total width of all columns must be the same as the table width.
Under the DATA tab, you enter the internal table which you'll be using:
ITAB INTO WA_ITAB
under table you will see Hedaer
Main Area
Footer
you can create line type one for headings(L1) and one for the line items(L2).
then create text for each column heading and assign them to L1 under the Header.
also create text for each line item under main area and assign them to main area.
Then under the created table, you create for example a condition.
You can use that condition to determine the line to be used say L1 if the condition is true, and L2 if the condition is false.
Double click the condition to do this.
You then under Output table, flag "new line" and enter L1 as the Line type.
Then you just add the fields for the columns. Be carefull to place them in the correct cell, by checking if a new line should be started and the cells to be skipped, or simply append.
The table is in fact just a loop, wher the lines are put in the workarea, and then one by one printed in the form.