cancel
Showing results for 
Search instead for 
Did you mean: 

Error while declaring the internal table

Former Member
0 Kudos

Hi,

I am passing an internal table contents from report prog to smartform.I have declared the int table in Global Data tab in smart form.But its giving the error which says "only table types may be used as the reference type for a table parameter".

wats wrong in my declartion?

Thanks,

Rakesh.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In smartforms you can use only the Predefined structure meaning the structure which you want should be able to view in SE11/SE12.

If you want to create a table in smartforms in the types create one structre and in the global declaration say itab type table of 'Structure name created in types'.

Br,

Laxmi.

former_member181962
Active Contributor
0 Kudos

Create a TABLE TYPE in SE11 using the z structure you have already created.

Go to se11.

Give a table type name in the data type.

Prsee Create.

Chose the third radio-button. and create a table type.

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

I created a table type in SE11 as per ur instructions and declared an int table in the smartform.Inspite of this am getting the same error...

former_member181962
Active Contributor
0 Kudos

Are you declaring the table in the form interface?

You should declare the internal table in the FORM Interface instead of the Global Definitions.

Regards,

Ravi

Former Member
0 Kudos

Hi Rakesh,

Have a look at this .

Hope it helps.

Regards,

Maheswaran.B