Application Development 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: 

Table Control

Former Member
0 Kudos

Hi,

I have declared a structure using the type statement.

TYPES : BEGIN OF ty_experience,

empno TYPE ztable1-empno,

organisation TYPE ztable1-organisation,

from_date TYPE ztable1-from_date,

to_date TYPE ztable1-to_date,

END OF ty_experience.

Then declared the internal table.

DATA : it_experience TYPE ty_experience OCCURS 0 WITH HEADER LINE.

When I am creating the table contol using wizard using the internal table(it_experience) I am getting the error"Specify the work area of the table or a table with a header line".Though I am giving the internal table with header leine still I am getting the error message.Kindly suggest the solution.

3 REPLIES 3

former_member183990
Active Contributor
0 Kudos

you can not use internal table there

use should use the souce table

eg in your case

you are using ztable right

so provide that

internal table is just a intermediate between screen and table

and you can't pass that as souce.

cheers

s.janagar

0 Kudos

Then Why do we have the option of selecting the internal table in the wizard.

Former Member
0 Kudos

Hi.

Becase your declaration

When you declare

DATA : it_experience TYPE ty_experience OCCURS 0 WITH HEADER LINE.

Please change to

DATA : it_experience TYPE TABLE OF ty_experience WITH HEADER LINE.

then try to create table control again

Hope it helps.

Sayan.