05-22-2006 8:59 AM
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?
05-22-2006 9:05 AM
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
05-22-2006 9:00 AM
Hi
Try this
SELECT * FROM zbu_mstr INTO <b>corresponding fields of</b> TABLE i_tab.
hope it will help
Anirban
05-22-2006 9:00 AM
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.
05-22-2006 9:01 AM
Hi
Try to use
SELECT * FROM zbu_mstr <b>INTO corresponding fields of</b> TABLE i_tab.
Regards,
Pragya
05-22-2006 9:02 AM
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
05-22-2006 9:04 AM
Hi Rani,
SELECT * FROM zbu_mstr INTO <b>corresponding fields of</b> TABLE i_tab.
Regards
vijay
05-22-2006 9:05 AM
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
05-22-2006 9:12 AM
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.
05-22-2006 9:13 AM
05-22-2006 9:16 AM
i change zbu--> to ztable
and foegot to change the name of the table in the select.
05-22-2006 9:20 AM
05-22-2006 9:21 AM
Hi,
Try it this way...
DATA: itab LIKE STANDARD TABLE OF zbu_mstr.
SELECT * FROM zbu_mstr
into table itab.
Regards,
Anjali
05-22-2006 9:26 AM
i got problem that it dont have header line
because
i made
itab-col1 = 'zxxxx'.
05-22-2006 10:29 AM
Hi Rani,
You use the following query.
SELECT * FROM zbu_mstr
INTO corresponding fields of TABLE i_tab.
It will helps you.
Dharmesh