2005 Mar 16 2:06 PM
I have a line with tab separated values....
I want to split this line into a table using split statement. But do not find the addition in order to split with the tab...
Any clue...
Stephan
2005 Mar 16 2:12 PM
Define a Hex variable and assign the value of the TAB character and use it in the split statement.
Cheers,
Ramki.
Yes ok it means then my string must be an XSTING....
Which is not the case...
Any help welcome...
2005 Mar 16 2:12 PM
Define a Hex variable and assign the value of the TAB character and use it in the split statement.
Cheers,
Ramki.
2005 Mar 16 2:19 PM
Yes ok it means then my string must be an XSTING....
Which is not the case...
Any help welcome...
2005 Mar 16 2:22 PM
Hi Stephan,
Try this,
DATA: X TYPE X VALUE '09'.
SPLIT LINE AT X INTO F1 F2 or
SPLIT LINE AT X INTO TABLE ITAB
Thanks
Lakshman
2005 Mar 16 2:24 PM
The X must be a char type !
Synthax error when checking in SAP47.
Thanks
2005 Mar 16 2:36 PM
Hi Stephan,
In enterprise, use GUI_UPLOAD function module and for parameter 'HAS_FIELD_SEPARATOR ' pass 'X'.
Thanks
Lakshman
2005 Mar 16 3:09 PM
Try this.
DATA: TAB.
TAB = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
SPLIT LINE AT TAB INTO F1 F2 F3.
Cheers,
Ramki.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |