Application Development and Automation 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: 
Read only

SPLIT ON TABULATION

Former Member
0 Likes
832

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
Read only

ramki_maley
Active Contributor
0 Likes
791

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

Cheers,

Ramki.

6 REPLIES 6
Read only

ramki_maley
Active Contributor
0 Likes
792

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

Cheers,

Ramki.

Read only

0 Likes
791

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

Which is not the case...

Any help welcome...

Read only

0 Likes
791

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

Read only

0 Likes
791

The X must be a char type !

Synthax error when checking in SAP47.

Thanks

Read only

0 Likes
791

Hi Stephan,

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

Thanks

Lakshman

Read only

ramki_maley
Active Contributor
0 Likes
791

Try this.

DATA: TAB.

TAB = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

SPLIT LINE AT TAB INTO F1 F2 F3.

Cheers,

Ramki.