Code: Alles auswählen.
report.
parameters: p_input type n length 20 default '123456789'.
parameters: p_qsum type n length 20.
data: l_input type string.
at selection-screen.
move p_input to l_input.
clear p_qsum.
while l_input is not initial.
compute p_qsum = p_qsum + l_input(1).
shift l_input left.
endwhile.