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

Error using SHIFT statement when migrating program from R/3 4.7 to ECC6.0

Former Member
0 Likes
505

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

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
476

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?

Read only

Former Member
0 Likes
476

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