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: 

question about structure and additional field declaration

former_member186143
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Try this.

data: begin of i_catsdb occurs 0.

include structure catsdb.

data: vernam type ernam,

versda type ersda,

end of i_catsdb.

Sri

amit_khare
Active Contributor
0 Kudos

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.