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: 

Insert

Former Member
0 Kudos

Hi Gurus,

I need to get data from one of my custom table z_header into one of my internal table it_tab.

What would be the easiest way of doing that.

Thanks

Rajeev Gupta

8 REPLIES 8

Former Member
0 Kudos

Hi Use following code :

select f1 f2 ... from z_header into table it_tab .

Reward points if helpful.

Regards.

Srikanta Gope

former_member378318
Contributor
0 Kudos

SELECT * FROM Z_HEADER INTO TABLE IT_ITAB.

Former Member
0 Kudos
data: lt_tab type table of z_header,
            ls_tab type z_header.


select * from z_header into table lt_tab.
if sy-subrc eq 0.
loop at lt_tab into ls_tab.
* do your data manupulation here.
endloop.
endif.

A

Former Member
0 Kudos

hi

good

use select statement.

thanks

mrutyun^

Former Member
0 Kudos

Thanks for the reply,

I tried doing this and i m getting the following error:

" it_tab are not unicode convertible.

Thanks

Rajeev Gupta

0 Kudos

paste your code please..

0 Kudos

HI,

Data : itab like standard table of z_header,

wa like z_header.

select * from z_header into table itab.

if sy-subrc eq 0.

loop at itab into wa.

write wa.

endloop.

endif.

Thansk

mahesh

0 Kudos

Try it like this:

Data : itab like standard table of z_header,

wa like line of itab.

select * from z_header into table itab.

if sy-subrc eq 0.

loop at itab into wa.

  • You should print each field of wa separately

write: wa-field1, wa-field2, wa-field3.

endloop.

endif.

See if that works.