2007 Dec 27 7:43 AM
Hi,
What is the syntax of SPLIT method?
Is there any other keyword useful to split the string into required fields?
2007 Dec 27 7:50 AM
Hi,
split <var> at ',' into target1
target2
target3.
You can split the string at separator.
Plzz reward points if it helps..
2007 Dec 27 7:48 AM
2007 Dec 27 7:50 AM
Hi,
split <var> at ',' into target1
target2
target3.
You can split the string at separator.
Plzz reward points if it helps..
2007 Dec 27 8:03 AM
hi
good
split p0_source at con_tm into p0_left p0_right.
SPLIT XSTRING AT '-' INTO AREA_CODE TEL_NO1 TEL_NO2.
thanks
mrutyun^
2007 Dec 27 8:07 AM
Hi,
Refer this
data : lv_string type string,
lv_var1 type string,
lv_var2 type string.
lv_string = 'SAP.ABAP'.
split lv_string at '.' into lv_var1 lv_var2.
Reagrds,
Prashant
2007 Dec 27 8:39 AM
syntax:
SPLIT c AT <del> INTO c1 ... cn.
or
SPLIT c AT <del> INTO table <internal table>.
where, del = delimeter
data: begin of wa,
text type string,
end of wa.
data: itab like table of wa.
data: st type string value 'I am new to ABAP'.
data: st1 type string,
st2 type string,
st3 type string,
st4 type string,
st5 type string.
split st at space into st1 st2 st3 st4 st5.
split st at space into table itab.
2007 Dec 27 8:45 AM
Hello ,
If you have certain values in a work area say GF_INPUT seprated by ; then you do so using the following statement :
SPLIT gf_input AT ';' INTO
gt_file_header-date
gt_file_header-time
gt_file_header-origin
gt_file_header-country.
Thanks,
Lalit Kabra
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |