‎2007 Mar 03 9:58 AM
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.
‎2007 Mar 03 10:08 AM
‎2007 Mar 03 10:11 AM
‎2007 Mar 03 10:14 AM
Hi,
how many entries did u get in the internal table.
Regards,
Sruthi
‎2007 Mar 03 10:21 AM
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.
‎2007 Mar 03 10:26 AM
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
‎2007 Mar 03 10:39 AM
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.
‎2007 Mar 03 10:46 AM
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
‎2007 Mar 03 10:49 AM
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
‎2007 Mar 03 12:20 PM
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
‎2007 Mar 03 10:56 AM
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
‎2007 Mar 03 11:37 AM
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