‎2010 Sep 17 6:41 PM
Hello Experts,
The SHIFT statement is giving following error in ECC6.0 but the same is warning in R/3 4.7.
"Floating point variable can not be used with SHIFT statement.".
Statement is - SHIFT itab-f1 by 5 places where f1 is a floting point field.
We passed the value in string variable and used in the SHIFT statement. It is removing the error but not giving the result same as in R/3 4.7.
Please let me know how to solve this.
Thanks and Regards,
Rahul
‎2010 Sep 17 7:05 PM
SHIFT is for character or byte string processing - the constraint is simply being enforced in your new system version. Why are you using the command with a type (f) field? Surely, there's a proper programming approach for what you're trying to do?
‎2010 Sep 19 12:08 PM
Hello,
Thanks for the reply.
We don't know why was this code written. We are just moving the object from R/3 4.7 to ECC 6.0 and fixing the errors.
Could you please let me know "What it means to SHIFT a floating point variable by some spaces"? .
This i am asking because SHIFT RIGHT generally means to shif the value to the right by some spaces i.e. inserting space at the starting.
But in case of floating point it change the value itself. If you can tell me then i can find an alternative solution to get the same result.
Thanks and Regards,
Rahul