cancel
Showing results for 
Search instead for 
Did you mean: 

Declaring Smartform Internal Table

Former Member
0 Kudos

Hi,

I have a query for declaring internal table in smartform.

In the smartform is it written like:

Itab type table of zstructure

or

itab type zstructure

please clarify which option to use.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sneha,

If you are declaring the internal table in the form interface of the smartorm,then declare itab as:

itab like in zstructure.

If you are declaring an internal table in print program of the smartform,then in the print progam you have to declare the internal table as

itab type table of zstructure

Regards,

Kashyap

Former Member
0 Kudos

Hi,

I declared my internal table in smartform using LIKE,there was no error.But as far as I know,using LIKE is obsolete now.Then how come there was no error.Please clarify.

Former Member
0 Kudos

Hi,

the solution to this problem is :

I had to define a line type for the z structure.the internal table while declaring in the smartform was defined as :

itab like line type(of zstructure)

wa type zstructure.

Thanks for your replies.

Answers (3)

Answers (3)

Former Member
0 Kudos

I tried declaring using 'type table of' & also 'type' but it was giving some error.I have worked on smartforms earlier,I never faced any such problems,Please advice.

Former Member
0 Kudos

Hi Sneha,

Can you tell what is the error you are getting?

Regards,

Goutham.

Former Member
0 Kudos

Actually I am working in Hindi logon,I have created my zstructure in english logon,on the same client.I think my error is because of the difference in the logon,let me check for the error & will post the details.

Former Member
0 Kudos

Hi sneha,

declare like this,

ty_t_tvst TYPE STANDARD TABLE OF ty_tvst,

ty_t_tvst -


internal table

ty_tvst,------standard table

plz reward if helpful..

get back to me for further queries,

thanks and regards,

srikanth...

Former Member
0 Kudos

Hi Sneha,

use 'Itab type table of zstructure'.

Reward points if helpful..

Regards,

Goutham.