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: 

i get abap dump why?

Former Member
0 Kudos
97

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

athavanraja
Active Contributor
0 Kudos
68

replace your insert statement with the following code.

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

Regards

Raja

7 REPLIES 7

Former Member
0 Kudos
68

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.

athavanraja
Active Contributor
0 Kudos
68

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

0 Kudos
68

i made your 2 suggestion and it's not work

0 Kudos
68

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?

athavanraja
Active Contributor
0 Kudos
69

replace your insert statement with the following code.

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

Regards

Raja

0 Kudos
68

it's work but i get only 1 record

and i have 25 i see it it itab why?

0 Kudos
68

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