cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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&

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for ur reply.

But, where i have to give this code in smartforms?

Data: it_tab TYPE STANDARD TABLE of XXXX.

former_member585060
Active Contributor
0 Kudos

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