10-08-2008 5:40 AM
Hi Gurus,
Ive defined the internal table like this
itab type standard table of SPFLI with header line.
select * from spfli into itab.
write : itab-carrid.
though it is activated, it does not give an o/p
I also tried
itab type standard table of SPFLI
wa type spfli.
select * from SPFLI into table itab.
loop at itab into wa.
write : wa-carrid.
endloop.
This does not work either.
Any help on this would be appreciated.
10-08-2008 5:44 AM
hey,
Just put a break-point and debugg that you will get the solution.
Regards,
Midhun Abraham
10-08-2008 5:42 AM
Hi Sandeep,
Welcome to SDN.
Try this
data:
itab type
standard table
of SPFLI
with header line.
select *
from spfli
into table itab.
loop at itab.
write 😕 itab-carrid.
endloop.
Actualy, SPFLI is the name of a database structure as well as the corresponding data table if you won't put table addition to into statement, system will treat it like structure and so is not getting displayed.
Regards,
Anirban
10-08-2008 5:44 AM
hey,
Just put a break-point and debugg that you will get the solution.
Regards,
Midhun Abraham
10-08-2008 5:45 AM
Hi,
Are you sure it picking the data? just check Sy-subrc value and sy-dbcnt value. n check data is present in internal table or not?
10-08-2008 5:45 AM
Hi Sandeep,
welcome to sdn.
try in debugging mode by entering /h and see where its going wrong.have u checked the table?
10-08-2008 5:46 AM
hi
This is the code..and please learn basics perfectly:
data:itab type standard table of SPFLI with header line.
select * from spfli into table itab.
loop at itab.
write : / itab-carrid.
endloop.
Regards,
Vishwa.
10-08-2008 5:47 AM
10-08-2008 5:48 AM
Define the internal table like this.
Data: begin of It_tab occurs 0,
..
..
end of it_tab.
Data: wa_itab like line of it_tab.
Select * from splfi into table it_tab.
Loop at it_tab into wa_tab.
endloop.
10-08-2008 5:50 AM
Hi Sandeep,
its working fine in my system.
DATA : ITAB TYPE STANDARD TABLE OF SPFLI WITH HEADER LINE.
SELECT * FROM SPFLI INTO ITAB.
ENDSELECT.
WRITE : ITAB-CARRID.
i think data is not avialable in your system.
10-08-2008 5:55 AM
Hi Sandeep,
use this code
data:itab type standard table of SPFLI with header line.
select * from spfli into table itab.
loop at itab.
write : / itab-carrid.
endloop.