cancel
Showing results for 
Search instead for 
Did you mean: 

How to create table with row type in smart forms

Former Member
0 Kudos

How to create table with row type in smart forms with out line type

please explain me the procedure

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.

A table type is defined by:

its line type, that defines the structure and data type attributes of a line of the internal table

the options for managing and accessing the data ( access mode) in the internal table

the key ( key definition and key category) of the internal table

The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.

<b>for more info :</b> http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm

Regards

Sudheer

Former Member
0 Kudos

First create a 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

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.

I hope it's useful, hard to explain without a screen print!