‎2006 Dec 11 1:40 PM
Hello,
Ik have some sentence like this:
welke bevestiging wenst u?: wandbeugel#Wilt u geluid bij uw plasma?: ja#Welke bron gaat u op de plasma aansluiten?: PC/Laptop#ja
I need it to be split at every # into new filed of it_table
Can some one help me please?
‎2006 Dec 11 1:48 PM
REPORT YCHATEST LINE-SIZE 350.
DATA : V_STRING TYPE STRING.
DATA : BEGIN OF ITAB OCCURS 0,
STR(100),
END OF ITAB.
V_STRING = 'welke bevestiging wenst u?: wandbeugel#Wilt u geluid bij uw plasma?: ja#Welke bron gaat u'.
SPLIT V_STRING AT '#' INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : / ITAB-STR.
ENDLOOP.
‎2006 Dec 11 1:45 PM
‎2006 Dec 11 1:46 PM
do like that
LOOP AT itab1.
SPLIT itab1 AT ',' INTO:
itab-osek_morsh
itab-company_name
itab-company_code.
APPEND itab.
ENDLOOP.
if u dont understand try to write in english and i try ti help
regards
‎2006 Dec 11 1:47 PM
Hello,
Use Command like :
SPLIT string AT '#' INTO TABLE it_table.
this will give you internal table field with lines of split-parts of string.
Thanks.
‎2006 Dec 11 1:48 PM
REPORT YCHATEST LINE-SIZE 350.
DATA : V_STRING TYPE STRING.
DATA : BEGIN OF ITAB OCCURS 0,
STR(100),
END OF ITAB.
V_STRING = 'welke bevestiging wenst u?: wandbeugel#Wilt u geluid bij uw plasma?: ja#Welke bron gaat u'.
SPLIT V_STRING AT '#' INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : / ITAB-STR.
ENDLOOP.
‎2006 Dec 11 1:54 PM