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

error dump OBJECTS_TABLES_NOT_COMPATIBLE

Former Member
0 Likes
6,187

Hi,

i get error dump when performing assignment from extract] to my itab].

I used maintenance table generator to maintain table via SM31.

The problem is maintenance view is not sorted,

so i add some code into the PBO

PROCESS BEFORE OUTPUT.

MODULE liste_initialisieren.

MODULE sort. (((((((((((((((((((((((((((((((( i add this code here to sort)

LOOP AT extract WITH CONTROL

tctrl_zppett005 CURSOR nextline.

MODULE liste_show_liste.

ENDLOOP.

in the module sort

MODULE sort OUTPUT.

DATA: gt_zppett005 LIKE zppett005 OCCURS 1 WITH HEADER LINE.

gt_zppett005] = extract].

SORT gt_zppett005] BY werks zlifnr zcosti zpar zvaltext ASCENDING.

extract] = gt_zppett005].

ENDMODULE.

when performing SM31 i got error OBJECTS_TABLES_NOT_COMPATIBLE

for line extract] = gt_zppett005]

this dump is only happend to table with numeric column.

for table with only string column, there is no dump.

and when using sort modul in PBO, SM31 can not add record anymore ....why?

Can you help me????

What is wrong in the code???

Best regards,

Freddy

Edited by: Freddy Halim on Sep 21, 2010 2:23 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,495

Hi,

It may be that you are storing in the ztable, you are storing the values before the actual save of the document and may be having temp values.

Also, without table structure for the z table, we can only guess.

Sujay

12 REPLIES 12
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,495

Which line of code ?

Read only

0 Likes
3,495

Hi Keshav,

in this line

extract] = gt_zppett005]

only happend for table contain one or more numeric column,

but work (no dump) for table with all column in char type.

What wrong with the code?

Best regards,

Freddy Ha

Read only

0 Likes
3,495

paste the declaration of both the itabs.

Read only

0 Likes
3,495

Hi,

here is the module code

MODULE sort OUTPUT.

DATA: gt_zppett005 LIKE zppett005 OCCURS 1 WITH HEADER LINE.

gt_zppett005] = extract].

SORT gt_zppett005] BY werks zlifnr zcosti zpar zvaltext ASCENDING.

extract] = gt_zppett005].

ENDMODULE.

the table maintenance is for table zppett005

Best regards,

Freddy Ha

Read only

0 Likes
3,495

Please note that if your want to move itab content like beow then both itab must have same structure.


extract[] = gt_zppett005[].

Read only

0 Likes
3,495

Hi,

sorry wrong line of code pasted

MODULE sort OUTPUT.

DATA: gt_zppett005 LIKE zppett005 OCCURS 1 WITH HEADER LINE.

gt_zppett005] = extract]. (((((((((((error here))))))))))))))))))

SORT gt_zppett005] BY werks zlifnr zcosti zpar zvaltext ASCENDING.

extract] = gt_zppett005].

ENDMODULE.

the error is at line

gt_zppett005] = extract].

but this code is OK for other table that not contain numeric column.

We try to debug, some numeric column contain strange char in extract like # or $

best regards,

Freddy Ha

Read only

0 Likes
3,495

Hi,

i see that in extract i have strange char and this is the issue of the error.

Why there is strannge char in extract for table with numeric column type?

please help.

Best regards,

Freddy Ha

Read only

Former Member
0 Likes
3,496

Hi,

It may be that you are storing in the ztable, you are storing the values before the actual save of the document and may be having temp values.

Also, without table structure for the z table, we can only guess.

Sujay

Read only

0 Likes
3,495

Hi,

Yes you are right,

This is table maintenance generator for ZTABLE.

I write module SORT in PBO of table maintenance generator and having error when i use extract in PBO.

In string column there is no strange character in the extract, so the module syccess

innumeric column there is strange char, so it is dump

do you have other idea to sort table in SM31?

best regards,

Freddy Ha

Read only

Former Member
0 Likes
3,495

Hello everyone,

Note was created to solve this type of dump:

2246213 - OBJECTS_TABLES_NOT_COMPATIBLE shortdump when trying to load to masterdata

Regards,

Jana

Read only

gregorygotera
Explorer
0 Likes
3,495

Hi

Try to use :

MOVE-CORRESPONDING ITAB1[] TO ITAB2[].

Regards

Gregory

Read only

Former Member
0 Likes
3,495

This message was moderated.