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: 

Transferring a string to an internal table.

Former Member
0 Kudos
76

I have string in which i am storing two or three sentences. When i am passing this string to an internal table i want each sentence to come in separate lines, one after another. i.e., need a line break in internal table. how to achieve this?

any help will be appreciated and properly rewarded.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
35

Hi,

there is one approach I am feeling that could help you out.

When you are storing the strings into an internal table, try to split the statement by the delimeter. you should be inserting the delimeter in between the sentences before performing this split.

Use the string functions to attain your solutions CONCATENATE, OVERLAY & SPLIT.

Reward points if this helps,

Kiran

2 REPLIES 2

Former Member
0 Kudos
35

Hi,

You can try this. Declare an internal table with 3 fields - all of type STRING.

Your string which contains 2 - 3 statements (i believe are separated by '.') can be split into these 3 internal table fields using command SPLIT.

This way you can populate data into your internal table.

ashish

Former Member
0 Kudos
36

Hi,

there is one approach I am feeling that could help you out.

When you are storing the strings into an internal table, try to split the statement by the delimeter. you should be inserting the delimeter in between the sentences before performing this split.

Use the string functions to attain your solutions CONCATENATE, OVERLAY & SPLIT.

Reward points if this helps,

Kiran