Hello SDN community,
I have the following problem:
my report has two CHAR variables, one has the LENGTH 10, the other has the LENGTH 2. The CHAR variable with the LENGTH 10 always begins with two zeros. I want to cut this two zeros out of the CHAR 10 variable and put the 2 figures from the CHAR 2 variable instead. How to do this?
Example:
DATA : char10 TYPE c LENGTH 10, char2 TYPE c LENGTH 2. char10 = 0005632345. char2 = 99.
first step => split char10 into 00 and 05632345
second step => replace 00 with 99 ( = char2 )
third step => join 99 and 05632345
I hope all of you understood my question 😉
Thank you for your answers (:
Best regards,
Marius