on 06-24-2010 12:04 PM
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
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&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.