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

Runtime Error

Former Member
0 Likes
780

Hey Guys,

We have created a copy of the standard Tcode Mb5b in AFS (Apparel N Footwear). When we execute, the program runs fine. But when we try and sum a particular field, a runtime error occurs.

The details of the short dump are :

MOVE_TO_LIT_NOTALLOWED_NODATA

Assignment error: Overwriting a protected field.

Any help would be welcome.

Ravi Bhatnagar

5 REPLIES 5
Read only

Former Member
0 Likes
638

ur trying to sum a field which is not allowed...Try to declare a variable and assign the value and sum and try to reassign the value to the field.

Read only

former_member404244
Active Contributor
0 Likes
638

HI ravi,

first move the field value to a variable,then do the summing part and then once again reassign it.I think it will work.Also the data types for the fields.

Regards,

nagaraj

Read only

Former Member
0 Likes
638

Hi Ravi,

Take a look at the OSS note

<i><b>Note 94128 - 'MOVE_TO_LIT_NOTALLOWED' owing to HIDE on constant</b></i>

Hope this helps

Cheers

VJ

Read only

Former Member
0 Likes
638

But the standard report Mb5b is executing correctly.

If that is not giving a dump, why is its copy showing a dump.

Read only

0 Likes
638

Ravi,

I don't know exactly but can give you some hints:

If the original runs without problem and the modification does not, then it must come from some difference. SAP sometimes uses constants with the program name in it. Look for something lime that in the original and make changes according to the name of the modified program.

If this does not help: Put a break point in the source right before the dump occurs. Do the same with the original. Run both programs parallel in 2 sessions. At the break (before sumping), compare carefully in debugger.

This could lead to the error/difference.

Regards,

Clemens