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 from internal table giving problem.

Former Member
0 Kudos

HI ALL,

I am creating a table control using wizard from internal table in the program when i give work area it gives this error "The table work area G_TABC_WA does not exist or is not a structure"

I have declared internal table and work like this.

TYPES: BEGIN OF T_TABC,

OPTID LIKE ZHRPMT_TRNSAC-OPTID,

STGID LIKE ZHRPMT_TRNSAC-STGID,

TETID LIKE ZHRPMT_TRNSAC-TETID,

REQSR LIKE ZHRPMT_TRNSAC-REQSR,

MUNIT LIKE ZHRPMT_TRNSAC-MUNIT,

END OF T_TABC.

DATA: G_TABC_ITAB TYPE T_TABC OCCURS 0,

G_TABC_WA TYPE T_TABC. "work area

why it is giving this error and how to correct this.

thanks.

7 REPLIES 7

Former Member
0 Kudos

Hi,

write like this:

DATA: G_TABC_ITAB TYPE T_TABC OCCURS 0 with header line.

DATA: G_TABC_WA TYPE T_TABC. "work area

Regards,

ANJI

Former Member
0 Kudos

Hi,

You will have to activate the whole program 1st and then try creating the Table Control using the Work Area.

regards,

Mahesh

Former Member
0 Kudos

hi!

DATA: G_TABC_ITAB TYPE T_TABC OCCURS 0,

this line should be like this,

DATA: G_TABC_ITAB TYPE TABLE OF T_TABC OCCURS 0,

navin_khedikar2
Contributor
0 Kudos

Hay

Hello there is very small mistake

TYPES: BEGIN OF t_tabc,

optid TYPE zhrpmt_trnsac-optid,

stgid TYPE zhrpmt_trnsac-stgid,

tetid TYPE zhrpmt_trnsac-tetid,

reqsr TYPE zhrpmt_trnsac-reqsr,

munit TYPE zhrpmt_trnsac-munit,

END OF t_tabc.

DATA: g_tabc_itab TYPE TABLE OF t_tabc ,

g_tabc_wa LIKE t_tabc. "work area

**Please reward suitable points***

With Regards

Navin Khedikar

Former Member
0 Kudos

Hi,

Try like this,

data: i_lfa1_change TYPE t_vendor OCCURS 0 WITH HEADER LINE.

regards,

Priya.

Former Member
0 Kudos

HI,

non of the above solution is working. the problem is with work area not with internal table.

I am working on ECC 6.

0 Kudos

hi!

try this!

DATA: G_TABC_ITAB TYPE TABLE OF T_TABC,

G_TABC_WA like line of G_TABC_ITAB. "work area

Regards,

Indira.D

Message was edited by:

Indira Deivasigamani

Message was edited by:

Indira Deivasigamani