CONSTANTS : lv_string type char40 value 'we%123456789 gift%happy birthday',
lv_c1 TYPE char03 VALUE 'we%',
lv_c2 TYPE char03 VALUE 'gift%'.
data: str1 type string,
str2 type string,
s1 type string,
s2 type string.
SPLIT : lv_string at ' ' into str1 str2,
str1 at lv_c1 into s,
str2 at lv_c2 into s2.
write:/ str1.
write:/ str2.
write:/ s1.
write:/ s2.
Can any one correct my code? it showing error.