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

question about structure and additional field declaration

Former Member
0 Likes
762

I want to have a structure with a few additional fields so

the code below works


data: begin of i_catsdb occurs 0,
         vernam type ernam,
         versda type ersda.
         include structure catsdb.
data: end of i_catsdb.

but why can't I declare the fields after the structure ?? like below or some other way. I couldn't find any working solution with , en . on different places ?


data: begin of i_catsdb occurs 0,
         include structure catsdb.
         vernam type ernam,
         versda type ersda.
data: end of i_catsdb.

is there a reason behind it or is there some other way to append the fields after the structure ??

kind regards

arthur

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

Hi,

just try like this:

data: begin of i_catsdb occurs 0.
         include structure catsdb.
data:    vernam type ernam,
         versda type ersda,
end of i_catsdb.

regards

Carlos Constantino.

4 REPLIES 4
Read only

Former Member
0 Likes
741

Hi,

jus try like this:

data: begin of i_catsdb occurs 0.
         include structure catsdb.
data:    vernam type ernam,
         versda type ersda,
end of i_catsdb.

Read only

Former Member
0 Likes
742

Hi,

just try like this:

data: begin of i_catsdb occurs 0.
         include structure catsdb.
data:    vernam type ernam,
         versda type ersda,
end of i_catsdb.

regards

Carlos Constantino.

Read only

Former Member
0 Likes
741

Try this.

data: begin of i_catsdb occurs 0.

include structure catsdb.

data: vernam type ernam,

versda type ersda,

end of i_catsdb.

Sri

Read only

amit_khare
Active Contributor
0 Likes
741

Try like this.

replace ',' with '.' in declaration

types : begin of st.

include structure stokes.

count type i.

types: end of st.

Regards,

Amit

Reward all helpful replies.