‎2006 Nov 23 6:40 AM
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
‎2006 Nov 23 6:47 AM
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.
‎2006 Nov 23 6:51 AM
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
‎2006 Nov 23 6:52 AM
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
‎2006 Nov 23 7:54 AM
But the standard report Mb5b is executing correctly.
If that is not giving a dump, why is its copy showing a dump.
‎2006 Nov 23 11:24 AM
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