Skip to Content
avatar image
Former Member

"table" is a table without a header line & therefore has no component"fiel"

Hi Experts,

In Smartforms, I have used internal table "it_tab" in my table.. and i declared type for that internal table in TYPES tab.

& i declared work area for that in global definitions. But i am getting this error.

"table" is a table without a header line & therefore has no component"fieldname"

will you please help me. please provide me an example code for this

thanks in Advance

Edited by: sreelakshmi.B on Jun 24, 2010 4:39 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 24, 2010 at 11:22 AM

    Hi,

    Check the below. if you have declared as below.

    TYPES: Begin of XXXX,

    F1 type char1,

    F2 type char1,

    End of XXXX.

    Data: it_tab TYPE STANDARD TABLE of XXXX.

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      In Global Definitions under "Types" tab, declare as below

      TYPES: BEGIN OF type_split,
               SPLIT1(20) TYPE C,    "Day of week
               SPLIT2(20) TYPE C,    "year
               SPLIT3(20) TYPE C,    "month
               SPLIT4(20) TYPE C,    "day of month
             END OF type_split.
      
      TYPES : t_date TYPE type_split OCCURS 0.

      Now in "Global Data" tab, declare as below

      it_itab     TYPE     t_date
      wa_itab     TYPE     type_split

      Regards

      Bala Krishna

  • avatar image
    Former Member
    Jun 24, 2010 at 01:10 PM

    HI,

    Please have a look.

    in se38.

    types: begin of tw_main.

    include structure MARA.

    types: end of tw_main.

    types: tt_main type standard table of tw_main.

    data: lw_main type tw_main,

    lt_main type tt_main.

    in Smartforms.

    Globelsettings - > Forminterface

    in table parameters: lt_itab type lt_main

    declare the workarea in globaldefinition like wa_itab type lw_main..

    loop at lt_main into lw_main

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 24, 2010 at 07:52 PM

    You need a work area to loop or read into....declare it like:

    data: lt_itab type table of (some type),

    ls_itab type (same type).

    Loop at lt_itab into ls_itab.

    in your form refer to &ls_itab-fieldname&

    Add comment
    10|10000 characters needed characters exceeded