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: 

itab

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member480923
Active Contributor
0 Kudos

Hi

Try this

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

hope it will help

Anirban

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi

Try to use

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

Regards,

Pragya

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

Hi Rani,


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

Regards

vijay

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

check ztable there are values or not.

0 Kudos

i change zbu--> to ztable

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

0 Kudos

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

0 Kudos

Hi,

Try it this way...

DATA: itab LIKE STANDARD TABLE OF zbu_mstr.

SELECT * FROM zbu_mstr

into table itab.

Regards,

Anjali

0 Kudos

i got problem that it dont have header line

because

i made

itab-col1 = 'zxxxx'.

former_member502730
Participant
0 Kudos

Hi Rani,

You use the following query.

SELECT * FROM zbu_mstr

INTO corresponding fields of TABLE i_tab.

It will helps you.

Dharmesh