cancel
Showing results for 
Search instead for 
Did you mean: 

Split record fetched from long text

aris_hidalgo
Contributor
0 Kudos

Hello experts,

I am fetching a long text that has a value like this:

06/25/2002-12/15/2005

How can I split it in such a way that I will put the 1st date(06/25/2002) to field1 and

2nd date(12/15/2005) to field2 in my itab. Again, thank you guys and have a nice day!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

use SPLIT statement.

Ex : SPLIT var1 at '-' into field1, field2.

Regards,

Shashank

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Data : wa_temp like line of itab.

split data at '-' into wa_temp-field1 wa_temp-field2.

append wa_temp into itab.

Former Member
0 Kudos

SPLIT STRING AT '-' INTO itab-filed1 itab-field2.

Former Member
0 Kudos

split text at '-' into field1 field2.

regardsPrabhu