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

itab

Former Member
0 Likes
1,530

data : begin of i_tab occurs 0.

include structure ztable.

data: end of i_tab.

SELECT * FROM zbu_mstr INTO TABLE i_tab.

loop at i_tab.

when i look at the data in DEBUG

i seel that the data does not enter into the same column why?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,462

Hai Rani

<b>data : begin of i_tab occurs 0.

include structure zbu_mstr.

data: end of i_tab.

SELECT * FROM zbu_mstr INTO TABLE i_tab.</b>

Thanks & regards

Sreeni

13 REPLIES 13
Read only

former_member480923
Active Contributor
0 Likes
1,462

Hi

Try this

SELECT * FROM zbu_mstr INTO <b>corresponding fields of</b> TABLE i_tab.

hope it will help

Anirban

Read only

Former Member
0 Likes
1,462

data : begin of i_tab occurs 0.

include structure <b>zbu_mstr</b> .

data: end of i_tab.

SELECT * FROM zbu_mstr INTO TABLE i_tab.

loop at i_tab.

Read only

Former Member
0 Likes
1,462

Hi

Try to use

SELECT * FROM zbu_mstr <b>INTO corresponding fields of</b> TABLE i_tab.

Regards,

Pragya

Read only

Former Member
0 Likes
1,462

r the structures of the 2 tables same.

the one in the INCLUDE structure <b>ztable</b> and the one which is used in select statement

SELECT * FROM <b>zbu_mstr</b> INTO TABLE i_tab

if they are not same pls use like this

SELECT * FROM <b>zbu_mstr</b> <b>INTO CORRESPONDING FIELDS</b> OF TABLE i_tab

Read only

Former Member
0 Likes
1,462

Hi Rani,


SELECT * FROM zbu_mstr INTO <b>corresponding fields of</b> TABLE i_tab.

Regards

vijay

Read only

Former Member
0 Likes
1,463

Hai Rani

<b>data : begin of i_tab occurs 0.

include structure zbu_mstr.

data: end of i_tab.

SELECT * FROM zbu_mstr INTO TABLE i_tab.</b>

Thanks & regards

Sreeni

Read only

0 Likes
1,462

sorry i confuse

i made this

data : begin of i_tab occurs 0.

include structure <b>zbu_mstr.</b>data: end of i_tab.

SELECT * FROM <b>zbu_mstr</b> INTO TABLE i_tab.

and i dont get the data in the right column.

Read only

0 Likes
1,462

check ztable there are values or not.

Read only

0 Likes
1,462

i change zbu--> to ztable

and foegot to change the name of the table in the select.

Read only

0 Likes
1,462

i have 4 column and the last is SPACE maybe this is the problem

Read only

0 Likes
1,462

Hi,

Try it this way...

DATA: itab LIKE STANDARD TABLE OF zbu_mstr.

SELECT * FROM zbu_mstr

into table itab.

Regards,

Anjali

Read only

0 Likes
1,462

i got problem that it dont have header line

because

i made

itab-col1 = 'zxxxx'.

Read only

Former Member
0 Likes
1,462

Hi Rani,

You use the following query.

SELECT * FROM zbu_mstr

INTO corresponding fields of TABLE i_tab.

It will helps you.

Dharmesh