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

itab problem

Former Member
0 Likes
984

Dear friends,

I have defined a Internal table with reference to a standard structure.

In the debugging mode if i see the ineternal table , last 20 fields are missing.

why this is happening . any idea how to solve this problem .

Regards,

Sandeep.

11 REPLIES 11
Read only

Former Member
0 Likes
954

Which Structure have u used for that

regards

Avi

Read only

0 Likes
954

BAPISDITM

regards,

sandeep.

Read only

Former Member
0 Likes
954

Hi,

how many entries did u get in the internal table.

Regards,

Sruthi

Read only

0 Likes
954

out of 183 , am having 123 in the internal table lt_itm.

This is how i have declared the table.

DATA: lt_itm LIKE bapisditm OCCURS 0 WITH HEADER LINE.

regards,

sandeep.

Read only

0 Likes
954

Hi,

your internal table declaration is correct.

describe your internal table .

describe table lt_itm lines v_lines.

check what u r gtting in v_lines.

Regards,

Sruthi

Read only

0 Likes
954

hi ,

am not having all the fields of the structure bapisditm in the internal table ,though i i have declared it with reference to BAPISDITM. i am sorry, i dint understand how describe will help in this case.can u Please explain.

regards ,

sandeep.

Read only

0 Likes
954

Hi,

then u cannot declare your internal table like that.

if u want only some fields of structure bapisditm then declare like below

data: begin of itab occurs 0,

matnr like like mara-matnr,

end of itab occurs o.

actually i thought u r getting wrong no of entries so i asked u to use describe statement.

no need to use describe.

if u want all the fieds of structure bapisditm then declare like below

DATA: lt_itm LIKE bapisditm OCCURS 0 WITH HEADER LINE.

Regards,

Sruthi

Read only

0 Likes
954

hi,

When i declared the same way as u did , I am getting all the 183 fields in that internal table.

please create a simple program like below , put break point at write and see how many fields u are getting for ur internal table lt_itm .

DATA: lt_itm LIKE bapisditm OCCURS 0 WITH HEADER LINE.

write:sy-datum.

regards

Avi

Read only

0 Likes
954

Hi Sandeep,

Your internal table declaration is correct & you will also be getting all the fields. I have checked it is showing all the 183 fields. To check this activate the new DEBUGGER in the editor & check it.

To activate the Debugger do the fllowing:

SE38->Utilities->Settings->Debugging(tab)->ABAP Debugger->New Debugger.

Put a break-point in the program & check the contents of field.

OR Create a break-point in the program & check the contents of last field of internal table(lt_itm-CALC_MOTIVE).

Reward points if helpful answer.

Ashvender

Read only

Former Member
0 Likes
954

hi

declare the itab like this

DATA: ITAB TYPE TABLE OF BAPISDITM WITH HEADER LINE.

this will have all the fields of the structure...fyi: bapisditm has only 174 fields

cheers,

Sathish. R

Read only

Former Member
0 Likes
954

data : itab type table of BAPISDITM with headerline.

you can also check the where-used-list of that structure and checkout how it is used in that programs

Message was edited by:

Chandrasekhar Jagarlamudi