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: 

internal table

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hey,

Just put a break-point and debugg that you will get the solution.

Regards,

Midhun Abraham

9 REPLIES 9

Former Member
0 Kudos

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

Former Member
0 Kudos

hey,

Just put a break-point and debugg that you will get the solution.

Regards,

Midhun Abraham

Former Member
0 Kudos

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?

KK07
Contributor
0 Kudos

Hi Sandeep,

welcome to sdn.

try in debugging mode by entering /h and see where its going wrong.have u checked the table?

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Please check whether SPFLI table having any values or not.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.