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

internal table declaration in smartform

Former Member
0 Likes
585

Hi all!

I had declared the IT definition in smartform as below:

In global definitions:

g_lips_new type table of t_lips

in types i declared as follows:

types: begin of t_lips,

vgbel type vgbel,

end of t_lips.

But when i am using this IT in the form i am getting an error.

"g_lips_new is a table without an header line and hence no field called vgbel."

Any suggestions please

Praneeth

1 ACCEPTED SOLUTION
5 REPLIES 5
Read only

Former Member
0 Likes
553

after you have declared the

types: begin of t_lips,

vgbel type vgbel,

end of t_lips.

add

types:

t_lips_table type t_lips OCCURS 0.

use this type in global declaration

g_lips_new type table of t_lips_table

Read only

0 Likes
553

Hi All!

I tried all your suggestions but still i am getting the same error.

Mukesh i tried yours but it didn't work

Regards

Praneeth

Read only

Former Member
0 Likes
553

Praneeth,

In your TYPES

types: begin of t_lips occurs 0 with header lines,

vgbel type vgbel,

end of t_lips.

Then you just specify

g_lips_new type t_lips

Regards,

Ravi

Read only

Former Member
0 Likes
553

Hi,

try using a work area wa_lips type t_lips.

Regards,

Aswin