Skip to Content
avatar image
Former Member

How to create table with row type in smart forms

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

please explain me the procedure

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 22, 2007 at 01:11 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2007 at 01:16 PM

    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.

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

    Internal table

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded