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: 

Short Dump on Move Statement

Former Member
0 Kudos
820

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
122

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á

6 REPLIES 6

former_member194669
Active Contributor
0 Kudos
122

what will be dump message?

aRs

suresh_datti
Active Contributor
0 Kudos
122

try

result_table[] = i_invlevel[].

~Suresh

Former Member
0 Kudos
122

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

Former Member
0 Kudos
122

Try this..

result_table[] = i_invlevel[].

I guess we cannot move the whole internal table using move statement but not sure

Former Member
0 Kudos
122

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.

Former Member
0 Kudos
123

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á