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

i get abap dump why?

Former Member
0 Likes
1,034

REPORT ZDW_LOC_MSTR .

tables : t001l.

data : begin of itab occurs 0.

include structure zzzzzz.

data: end of itab.

field-symbols: <ls_itab> type zloc_mstr.

SELECT werks lgort lgobe

FROM T001L

into (t001l-werks , t001l-lgort , t001l-lgobe ).

MOVE: T001L-WERKS TO ITAB-zsite,

T001L-LGORT TO ITAB-zloc,

T001L-LGOBE(8) TO ITAB-zdesc.

append itab.

endselect.

loop at itab assigning <ls_itab>.

<ls_itab>-ztable_name = 'ZXXXX'.

endloop.

*

INSERT zYYYYY FROM TABLE itab.

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
1,005

replace your insert statement with the following code.

<b>MODIFY zYYYYY FROM TABLE itab .</b>

Regards

Raja

7 REPLIES 7
Read only

Former Member
0 Likes
1,005

Hello ,

The problem is with the statement <b>loop at itab assigning <ls_itab></b>. The types of itab and <ls_itab> are incompatible/

Change the declaration of your field symbol.

Regards,

Anand Mandalika.

Read only

athavanraja
Active Contributor
0 Likes
1,005

because the itab structure and the filed symbol structure are differnt.

change your field symbol declararion from

field-symbols: <ls_itab> type zloc_mstr.

to

<b>field-symbols: <ls_itab> type any.</b>

Regards

Raja

When asking questions about ABAP dump it would help us if you give us the dump analysis as well from transaction ST22

Read only

0 Likes
1,005

i made your 2 suggestion and it's not work

Read only

0 Likes
1,005

with my program i made debug before the statment

insert i have all the data in itab

the problem is with the insert i thinhk?

Read only

athavanraja
Active Contributor
0 Likes
1,006

replace your insert statement with the following code.

<b>MODIFY zYYYYY FROM TABLE itab .</b>

Regards

Raja

Read only

0 Likes
1,005

it's work but i get only 1 record

and i have 25 i see it it itab why?

Read only

0 Likes
1,005

whats the sy-dbcnt value after the execution of modify statement?

reason could be duplicate entries.

whats the key for the table ZYYYYY

and how many distinct records (based on key) you have in your itab?

Regards

Raja