Application Development and Automation 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: 
Read only

below code not working

Former Member
0 Likes
779

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
Read only

Former Member
0 Likes
759

Hi,

Do this:

data: itab type standard table of zprod_line.

Hope it will be useful.

Thanks,

Sandeep.

7 REPLIES 7
Read only

Former Member
0 Likes
760

Hi,

Do this:

data: itab type standard table of zprod_line.

Hope it will be useful.

Thanks,

Sandeep.

Read only

0 Likes
759

Sandeep,

i have already tried it, its nt working,

Read only

Former Member
0 Likes
759

Hi,

Have you created itab as local internal table?

Can you post a code?

Read only

Former Member
0 Likes
759

hi,

1. Chk ur itab is refreshing som where.

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

Rgds

Reshma

Read only

former_member188827
Active Contributor
0 Likes
759

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.

Read only

Former Member
0 Likes
759

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.

Read only

Former Member
0 Likes
759

thanks all for ur help