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

report

Former Member
0 Likes
410

sir

we r using structure in place of tables

ex .

report zs.

structure: fdbl_balance_line.

write :/,fdbl_balance_lien-credit.

it is possible

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
382

i don't think so.

There is no ABAP statement as STRUCTURE.

please check the documentation.

you can however declare a type and then a data variable (field string)

types : begin of typ_fdbl_balance_line,

f1 type <some type>

f2 type <some type>

end of typ_fdbl_balance_line.

data ls_fdbl_balance_line type typ_fdbl_balance_line. "field string (or work area)

or

data itab_fdbl_balance_line type table of typ_fdbl_balance_line. "internal table

hope it helps...

3 REPLIES 3
Read only

Former Member
0 Likes
383

i don't think so.

There is no ABAP statement as STRUCTURE.

please check the documentation.

you can however declare a type and then a data variable (field string)

types : begin of typ_fdbl_balance_line,

f1 type <some type>

f2 type <some type>

end of typ_fdbl_balance_line.

data ls_fdbl_balance_line type typ_fdbl_balance_line. "field string (or work area)

or

data itab_fdbl_balance_line type table of typ_fdbl_balance_line. "internal table

hope it helps...

Read only

Former Member
0 Likes
382

we can use structure for declaration but note that we can not able to fetch data from structure as it will not have any data .

report zs.

structure: fdbl_balance_line.

write :/,fdbl_balance_lien-credit.

it is possible but it will store only one record at a time It will not work like internal table

Rewards if useful...........

Minal

Read only

Former Member
0 Likes
382

Hi Ritu,

Structure cannot have data like an internal table.

Regards,

Shilpi