2009 Apr 24 10:32 AM
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.
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
2009 Apr 24 10:35 AM
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
2009 Apr 24 10:38 AM
Then Why do we have the option of selecting the internal table in the wizard.
2009 Apr 24 11:34 AM
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.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |