Hi experts,
How can I do this with an efficient ABAP code?
-I have to check the data contained in a column 1
-If I find values on column 1 staring with number 7 and ended with a letter (e.g 71233444B)
-Then I have to transform the value contained in column 2 by replacing it with the following conditions:
-Take the value in column 1
-Replace 7 by a ZERO
-Replace the letter by à Zero
-Add ‘01’ at the end
Below an example:
Actual values in table
Column 1 | Column2 |
71233444B | XXXXXX |
712334443 | YYYYY |
Expected values after treatment
Column 1 | Column2 |
71233444B | 01233444001 |
712334443 | YYYYY |
Thanks for your support.
Amine