Let’s say you have the following abap code:
MOVE C_SEXY TO W_EFREN1.
MOVE C_SEXY TO W_EFREN2.
Where C_SEXY is a CONSTANT with the literal ‘Super Sexy!’ and W_EFREN1 & W_EFREN2 are elementary variables of TYPE C.
You can make a better version of it by doing:
MOVE: C_SEXY TO W_EFREN1,
C_SEXY TO W_EFREN2.
But, did you know that you can make that even better? The following is the best version:
MOVE C_SEXY TO: EFREN1,
EFREN2.
*Always use constants instead of literals to avoid literal overflow.
*I don’t know why, but WordPress keeps on deleting the to indent the source.
