SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Assignments →
MOVE - PERCENTAGE
Obsolete Syntax
MOVE source TO destination PERCENTAGE perc [LEFT|RIGHT].
Effect
This variant of the statement MOVE (also obsolete), which is not permitted in classes, assigns the subfield of the data object source that begins at the first position and whose length matches the percentage of the total length of source specified in perc, to the data object destination. By default, and if LEFT is specified, destination is left-aligned; if RIGHT is specified, it is right-aligned.
The data type of the data objects source and destination must be character-like, otherwise the addition PERCENTAGE is ignored. perc expects a data object of type i. If the value of perc is less than or equal to 0, nothing is assigned. If the value of perc is greater than or equal to 100, the entire content of source is assigned.
Note
This variant of the statement MOVE can (if required) be replaced by substring accesses with dynamic offsets/lengths or by substring functions.
Bad example
Good example