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

Internal tables

Former Member
0 Likes
566

h,i

I have internal table lik this

Types :begin of ty_table,

aufnr type aufnr,

bwart type bwart,

chkbox type char1,

end of ty_table,

tt_table type standard table of ty_table.

data : it_table type tt_table.

now while populating the table it_table, though I am using select aufnr bwart from table custome table into corresponding fields of table it_table, as chkbox field is check box, its going to shortdump.

The short dump is 'selected data cannot be kept into target .

Please help.

rgds,

khadeer.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
544

use

into corrsponding fields of table tt_table.

it_table is a work area...

if u want to use this

select ___ into it_table .

append it_table to tt_table.

endselect.

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
545

use

into corrsponding fields of table tt_table.

it_table is a work area...

if u want to use this

select ___ into it_table .

append it_table to tt_table.

endselect.

Read only

Former Member
0 Likes
544

hi,

do this way ..

declare it in this way ...


data : it_table type standard table of ty_table. 

Read only

Former Member
0 Likes
544

Hi

tt_table is Body

it_table is a workara.

use this statement.

select aufnr bwart form table tablename into corresponding fields of table tt_table.

loop at tt_tabl into it_table.

write:/ it_table-aufnr.

endloop.

Regards,

Suresh

Read only

Former Member
0 Likes
544

Types :begin of ty_table,

vbeln type aufnr,

posnr type bwart,

chkbox type char1,

end of ty_table,

tt_table type standard table of ty_table.

data : it_table type tt_table.

data: wa_table type ty_table.

select vbeln

posnr from vbap into corresponding fields of table it_table

.

loop at it_table into wa_table.

write:/ wa_table-chkbox, wa_table-vbeln, wa_table-posnr.

endloop.