‎2010 Sep 10 11:35 AM
Hi,
I have developed one smartform and calling from SE38 by passing some internal tables in tables parameter.
These internal tables of type tables which were created in SE11 and defined 3 internal tables in SE38 and 3 Tables parameters in Form Interface.
Eg:-
SE38 Internal tables
it_table1 type table of ZTAB1
it_table2 type table of ZTAB2
it_table3 type table of ZTAB3
SMARTORM form interface TABLES parameter
et_table1 like ZTAB1
et_table2 like ZTAB2
et_table3 like ZTAB3
Here it is giving error as " ET_TABLE1 must be a flat structure. You cannot use internal tables, strings, references, or structures as components. "
Please help me out.
Thanks & Regards,
Chandu
‎2010 Sep 10 1:02 PM
Hi
In form interface parameters also u can write 'TYPE STANDARD TABLE OF' instead of LIKE statement.
Regards
Sachin
‎2010 Sep 10 1:02 PM
Dear Chandu,
As you wrote,
These internal tables of type tables which were created in SE11..
ZTAB1,ZTAB2,ZTAB3 should be created as structures in se11 and not as table types to work in the smartform under the tables parameter.
Regards,
Rijuraj
Edited by: Rijuraj Raju on Sep 10, 2010 2:03 PM
‎2010 Sep 10 1:05 PM
Hi,
ZTAB1, ZTAB2, ZTAB3 are Table Types or Structures in DDIC?
In smartforms in the Table TAB you must use Table Types instead of structures
- create structure ztab1 in DDIC (SE11 - radiobutton on Data Type - enter name - click create and select Structure,etc)
- create table type ZT_TAB1(for example) in DDIC (SE11 - radiobutton on Data Type - enter name - click create and select Table Type) of line type ZTAB1
In Smartforms use et_table1 like ZT_TAB1.
regards,
‎2010 Sep 10 1:07 PM
The structure ZTAB1 has internal tables, strings, references, or structures as components and that's not allowed.