‎2010 Sep 21 1:18 PM
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
‎2010 Sep 22 9:33 AM
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
‎2010 Sep 21 1:31 PM
‎2010 Sep 21 1:42 PM
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
‎2010 Sep 21 1:44 PM
‎2010 Sep 21 1:56 PM
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
‎2010 Sep 21 1:59 PM
Please note that if your want to move itab content like beow then both itab must have same structure.
extract[] = gt_zppett005[].
‎2010 Sep 21 2:04 PM
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
‎2010 Sep 22 9:30 AM
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
‎2010 Sep 22 9:33 AM
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
‎2010 Sep 22 9:47 AM
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
‎2015 Nov 23 3:32 PM
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
‎2015 Nov 24 4:46 PM
Hi
Try to use :
MOVE-CORRESPONDING ITAB1[] TO ITAB2[].
Regards
Gregory
‎2015 Nov 29 8:58 AM