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: 

below code not working

Former Member
0 Kudos

hi all,

i have a table zprod of type zprod_line.

zprod_line has two elements

aufnr type aufnr.

kdauf type kdauf.

now i wrote the below code

data itab type zprod.

select aufnr kdauf from aufk into corresponding fields of table itab.

now itab shows entries, but when i access it , it comes as blank!!!!

ne suggestions??

thanks,

Gaurav

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Do this:

data: itab type standard table of zprod_line.

Hope it will be useful.

Thanks,

Sandeep.

7 REPLIES 7

Former Member
0 Kudos

Hi,

Do this:

data: itab type standard table of zprod_line.

Hope it will be useful.

Thanks,

Sandeep.

0 Kudos

Sandeep,

i have already tried it, its nt working,

Former Member
0 Kudos

Hi,

Have you created itab as local internal table?

Can you post a code?

Former Member
0 Kudos

hi,

1. Chk ur itab is refreshing som where.

2. Put a brak-point after select query and chk itab[].

Rgds

Reshma

former_member188827
Active Contributor
0 Kudos

u hav 2 declare it like:

data itab type table of zprod with header line..

select aufnr kdauf from aufk into corresponding fields of itab.

append itab.

endselect.

Former Member
0 Kudos

Do Like this..........

aufnr type aufnr.

kdauf type kdauf.

now i wrote the below code

data itab like zprod occurs 0 with header line.

select aufnr kdauf from aufk into table itab.

Former Member
0 Kudos

thanks all for ur help