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

itab declaration include structure error

Former Member
0 Likes
965

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
Read only

Former Member
0 Likes
749

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
Read only

Former Member
0 Likes
751

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

Read only

Former Member
0 Likes
749

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.

Read only

Former Member
0 Likes
749

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

Read only

Former Member
0 Likes
749

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.