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

when declaring table getting error

Former Member
0 Likes
820

hi,

when ever declaring

tables:ZIMS_ADDR_REQ

giving error message as

ZIMS_ADDR_REQ must be a flat structure ,you cannot use internal tables ,string,refernce ,or structure as component.

help me

9 REPLIES 9
Read only

messier31
Active Contributor
0 Likes
783

Hello,

The error is not coming from this declaration.. can you double check by double clicking on error message and see where it takes you..

Let us know your result

Enjoy SAP.

Pankaj

Read only

Former Member
0 Likes
783

hi,

i am getting error at the first lin ie tables:z

Read only

Former Member
0 Likes
783

hi,

can u paste ur code here.

if it is a structure defined in data dictionary, then it should not give u an error.

regards,

madhu

Read only

0 Likes
783

code :

TABLES:ZIMS_ADDR_REQ.

************************************************************************

************************************************************************

  • DATA DECLERATION

************************************************************************

DATA : BEGIN OF IT_DATA OCCURS 0,

ID LIKE ZIMS_ADDR_REQ-ZIMSID,

DATE LIKE ZIMS_ADDR_REQ-AEDAT,

TIME LIKE ZIMS_ADDR_REQ-AEZET,

NAME1 LIKE ZIMS_ADDR_REQ-FIRSTNAME,

NAME2 LIKE ZIMS_ADDR_REQ-LASTNAME,

ADDRS1 LIKE ZIMS_ADDR_REQ-ADDR_LINE1,

ADDRS2 LIKE ZIMS_ADDR_REQ-ADDR_LINE2,

CITY LIKE ZIMS_ADDR_REQ-CITY,

STATE LIKE ZIMS_ADDR_REQ-CITY,

ZIP LIKE ZIMS_ADDR_REQ-ZIP,

PHONE LIKE ZIMS_ADDR_REQ-PHONE,

EMAIL LIKE ZIMS_ADDR_REQ-EMAIL,

FAX LIKE ZIMS_ADDR_REQ-FAX,

AENAM LIKE ZIMS_ADDR_REQ-AENAM,

END OF IT_DATA.

Read only

Former Member
0 Likes
783

Hi,

if your table 'ZIMS_ADDR_REQ ' contains a structure,

u must check that structure...

maybe one of the fields of that structure marked as reference type ( RType column is checked )...

check pls...

regards,

Burak

Read only

0 Likes
783

HI,

in data dictionary it is showing as a transparent table.

Read only

0 Likes
783

hi,

i mean,

does the transparent table ZIMS_ADDR_REQ have an include structure?

if it has,

check the structure,

if one or more field checked as RType,

u can get this error...

can u post,

fields of table ZIMS_ADDR_REQ from se11...

Read only

0 Likes
783

hi,

it has been solved , by building the structure for th z table and internal table as structure and then display.

Read only

Former Member
0 Likes
783

cretae a structure same as the tabe structure and then create internal table reflt tointernal table then i works