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

Include structure and extra fields in the same Internal Table

Former Member
0 Likes
2,507

Hi developers,

im trying to declare an internal table with include structure and extra fields,

something like this:

data: BEGIN OF it_loans occurs 0,

include structure zthrca006,

status(10),

pernr like pa0001-pernr,

sname like pa0001-pernr,

tipomov(20),

monto like zthrca006-monto,

data: END of it_loans.

zthrca006 is huge so i dont want to type everithing.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,565

What is the issue?

data: BEGIN OF it_loans occurs 0.
             include structure zthrca006.
data :     status(10),
data :     pernr like pa0001-pernr.
data :     sname like pa0001-pernr.
data :     tipomov(20).
data :     monto like zthrca006-monto,.
data:  END of it_loans.

Regards,

Ravi

Note - Please mark all the helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
1,566

What is the issue?

data: BEGIN OF it_loans occurs 0.
             include structure zthrca006.
data :     status(10),
data :     pernr like pa0001-pernr.
data :     sname like pa0001-pernr.
data :     tipomov(20).
data :     monto like zthrca006-monto,.
data:  END of it_loans.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

Former Member
0 Likes
1,565

Try like this:

data: BEGIN OF it_loans occurs 0.

include structure zthrca006.

data: status(10),

pernr like pa0001-pernr,

sname like pa0001-pernr,

tipomov(20),

monto like zthrca006-monto.

END of it_loans.

Read only

Former Member
0 Likes
1,565

Hi,

You should give a full stop after the INCLUDE STRUCTURE statement.

data: BEGIN OF it_loans occurs 0<b>.</b>

include structure zthrca006<b>.</b>

<b>DATA:</b> status(10),

pernr like pa0001-pernr,

sname like pa0001-pernr,

tipomov(20),

monto like zthrca006-monto,

END of it_loans.

Thanks,

Naren

Read only

Former Member
0 Likes
1,565

Please try this

DATA: BEGIN OF it_loans OCCURS 0.

INCLUDE STRUCTURE zthrca006.

DATA: status(10),

pernr LIKE pa0001-pernr,

sname LIKE pa0001-pernr,

tipomov(20),

monto like zthrca006-monto.

DATA: END OF it_loans.

Regards

Kathirvel