2007 Apr 02 3:13 PM
Hi Experts,
I copied a FM forom the existing one. I am executing both function module with same data. I am gettig short dump in new one at below statement:
move i_invlevel[] to result_table[].
These tables are defined as below:
RESULT_TABLE as Tables parameter of function module with no type spec. or associated type.
i_invlevel like yweb_s_inventory_level occurs 0 with header line.
can anyone tell me why it is giving dump in new FM ??
Thanks in Advance!!
Harkamal
2007 Apr 02 3:24 PM
Hi!
You've copyed a function element from a standard function element. ALL function elements are the part of a function group (you can check it in the SE37 - header data, or properties).
It's name has mostly 4 chars, like COVG, etc...
All function groups contain includes, which contains the table, variable definitions.
I think you copyed the original function element into its new name, and into a DIFFERENT FUNCTION GROUP (into a Z... one).
This might cause your problem. You have to copy the exact includes also from the original function group.
Or you might to copy the function element to a Z-one, but let it assigned to the original SAP function group. I like this way very much, it is the easyest, but you need to register for an SSCR.
Regards
Tamá
2007 Apr 02 3:15 PM
2007 Apr 02 3:15 PM
2007 Apr 02 3:16 PM
Hi Harkamal,
Go to ST22 and do some dump analysis, or post it here so that we might get more info on that......
Thanks and Regards,
Kunjal Patel
2007 Apr 02 3:16 PM
Try this..
result_table[] = i_invlevel[].
I guess we cannot move the whole internal table using move statement but not sure
2007 Apr 02 3:24 PM
Short dump details are as below:
Runtime Error OBJECTS_TABLES_NOT_COMPATIBLE
ShrtText
Two internal tables are neither compatible nor convertible.
Error analysis
You attempted to move one data object to another.
This is not possible here because the internal tables concerned
are neither compatible nor convertible.
Code extract:
182 * Move selected records to the table returned to the calling program
>>>>> move i_invlevel[] to result_table[].
184
185 * Raise error if no records were found
186 if result_table[] is initial.
2007 Apr 02 3:24 PM
Hi!
You've copyed a function element from a standard function element. ALL function elements are the part of a function group (you can check it in the SE37 - header data, or properties).
It's name has mostly 4 chars, like COVG, etc...
All function groups contain includes, which contains the table, variable definitions.
I think you copyed the original function element into its new name, and into a DIFFERENT FUNCTION GROUP (into a Z... one).
This might cause your problem. You have to copy the exact includes also from the original function group.
Or you might to copy the function element to a Z-one, but let it assigned to the original SAP function group. I like this way very much, it is the easyest, but you need to register for an SSCR.
Regards
Tamá