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

Line items display using smartforms

Former Member
0 Likes
1,652

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

3 REPLIES 3
Read only

Former Member
0 Likes
753

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

Read only

Former Member
0 Likes
753

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

Read only

Former Member
0 Likes
753

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.