Code: Alles auswählen.
REPORT ztest14.
DATA test(20) VALUE 'A.1.1.1.100'.
DATA lt_str TYPE TABLE OF tab512.
data i type i.
SPLIT test AT '.' INTO TABLE lt_str.
* i = Anzahl der Elemente
i = LINES( lt_str ).
break bcuser.
Code: Alles auswählen.
REPORT LINE-SIZE 1000.
DATA: text(20) TYPE c,
offset TYPE i,
length TYPE i.
text = 'A.1.1.1.100'.
FIND REGEX '.*[.]' IN text
MATCH OFFSET offset
MATCH LENGTH length.
write:/ text,'-->',text+offset(length).
text = 'A.1.10.23.1'.
FIND REGEX '.*[.]' IN text
MATCH OFFSET offset
MATCH LENGTH length.
write:/ text,'-->',text+offset(length).