Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Syntax error in Smartform

Former Member
0 Likes
665

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

4 REPLIES 4
Read only

Former Member
0 Likes
537

Hi

In form interface parameters also u can write 'TYPE STANDARD TABLE OF' instead of LIKE statement.

Regards

Sachin

Read only

Former Member
0 Likes
537

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

Read only

former_member184675
Active Participant
0 Likes
537

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,

Read only

Former Member
0 Likes
537

The structure ZTAB1 has internal tables, strings, references, or structures as components and that's not allowed.