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: 

itab declaration include structure error

Former Member
0 Kudos
333

hi ,

types : begin of it_address_info_type,

include structure zadrc,

end of it_address_info_type.

here zadrc is a structure.

why its giving error.

shall i need to change this structure to table?

if yes how i will do that?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
117

Hi ,

Please make it as,

types : begin of type.

include type zadrc.

types : end of type.

or

TYPES: iref TYPE REF TO ZADRC.

or

TYPES: iref type table of mara.

or

TYPES: iref type standard table of mara.

Else.

data : begin of it_address_info_type.

include structure zadrc.

data : end of it_address_info_type.

If you use types it is used to create user defined data type.

But you are refrerring a data object as zadrc. Thats why it shows error.

Regards,

Sankar.

Edited by: sankar on Mar 23, 2008 8:31 AM

4 REPLIES 4

Former Member
0 Kudos
118

Hi ,

Please make it as,

types : begin of type.

include type zadrc.

types : end of type.

or

TYPES: iref TYPE REF TO ZADRC.

or

TYPES: iref type table of mara.

or

TYPES: iref type standard table of mara.

Else.

data : begin of it_address_info_type.

include structure zadrc.

data : end of it_address_info_type.

If you use types it is used to create user defined data type.

But you are refrerring a data object as zadrc. Thats why it shows error.

Regards,

Sankar.

Edited by: sankar on Mar 23, 2008 8:31 AM

Former Member
0 Kudos
117

hi

problem is

ur syntax is

types : begin of it_address_info_type,

include structure zadrc,

end of it_address_info_type.

and it shud be

types : begin of it_address_info_type.
include structure zadrc.
types : end of it_address_info_type.

Rewards point if helpful.

Former Member
0 Kudos
117

hi ,

please do it :

Data : begin of it_address_info_type occurs 0.

include structure zadrc.

data end of it_address_info_type.

it will not come any error .

Thanks and regards,

Mr. Subash Sahoo

if error pls mail me on : lps1235@gmail.com

Former Member
0 Kudos
117

Hi Santhoshini,

There is no need to change the structure . But just place a period (.) at the end of the first statement and end with types:end of itab.

EX: Types:Begin of itab.

Include structure Mara.

Types:End of itab.

Thanks & Regards,

AMK

REWARD POINTS IF USEFUL.