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

Convert (long) string to table format

wayne_hanrahan2
Discoverer
0 Likes
2,591

Hi all,

is there any module/class that can convert a string of length > 255 (ex: 2000)

and convert it into an internal table of a specified width?

Thanks,

Wayne.

5 REPLIES 5
Read only

Former Member
0 Likes
1,389

Hi ,,

If there is a delimited in your string to determine when to split you can use the command

SPLIT f AT g INTO TABLE itab.

what this command does is splits the string f at every occurance of g and places the split components into an internal table itab.

Regards

Arun

Read only

Former Member
0 Likes
1,389

Hi Wayne,

Try the FM CONVERT_STRING_TO_TABLE.

Regards,

Hema.

    • Reward points if it is useful.

Read only

Former Member
0 Likes
1,389

Try the fm: RKD_WORD_WRAP

Pass the Outputlen parameer as 255.

don't pass any value for delimiter.

pass the string to the textline parameter

Regards,

Ravi

Read only

Former Member
0 Likes
1,389

Hi wayne,

1. SCMS_STRING_TO_FTEXT

This Fm will convert string----> internal table.

This will also be available in older versions of r/3.

regards,

amit m.

Read only

former_member508729
Active Participant
0 Likes
1,389

Hi,

Try to use FM swa_string_to_table...or u can try FM by finding like go to se37 anfd put stringtable* you will get FM that may help you.

Regards

Ashutosh

Reward points if helpful