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

Transferring a string to an internal table.

Former Member
0 Likes
668

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

Former Member
0 Likes
627

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

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.

2 REPLIES 2
Read only

Former Member
0 Likes
627

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

Read only

Former Member
0 Likes
628

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