Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SPLIT ON TABULATION

Former Member
0 Kudos
126

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

1 ACCEPTED SOLUTION

ramki_maley
Active Contributor
0 Kudos
85

Define a Hex variable and assign the value of the TAB character and use it in the split statement.

Cheers,

Ramki.

6 REPLIES 6

ramki_maley
Active Contributor
0 Kudos
86

Define a Hex variable and assign the value of the TAB character and use it in the split statement.

Cheers,

Ramki.

0 Kudos
85

Yes ok it means then my string must be an XSTING....

Which is not the case...

Any help welcome...

0 Kudos
85

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

0 Kudos
85

The X must be a char type !

Synthax error when checking in SAP47.

Thanks

0 Kudos
85

Hi Stephan,

In enterprise, use GUI_UPLOAD function module and for parameter 'HAS_FIELD_SEPARATOR ' pass 'X'.

Thanks

Lakshman

ramki_maley
Active Contributor
0 Kudos
85

Try this.

DATA: TAB.

TAB = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

SPLIT LINE AT TAB INTO F1 F2 F3.

Cheers,

Ramki.