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

READ_TEXt

Former Member
0 Likes
1,274

Hi All,

I am getting data from FM read_text out put as tdline table with 132 characters field.This need to pass to BI system as 300 characters into BI System.Can any one provide logic to pass as 300 characters into BI system.

Thanks and regards,

Uma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
953

Hi,

convert your tdline table into a string (with a loop or a function module like SCMS_FTEXT_TO_STRING) and move this string to a field  of domain text300.

Regards,

Klaus 

4 REPLIES 4
Read only

Former Member
0 Likes
954

Hi,

convert your tdline table into a string (with a loop or a function module like SCMS_FTEXT_TO_STRING) and move this string to a field  of domain text300.

Regards,

Klaus 

Read only

0 Likes
953

Hi All,

Solved with the help of FM  S'WA_STRING_SPLIT'.

Thanks and Regards,

Uma

Read only

Former Member
0 Likes
953

Hi Uma,

I suggest you to concatenate all lines from FM READ_TEXT output into a string and split it using FM SALP_POP_SPLIT_TEXT, filling parameter "OUT_LINE_LENGTH" with 300 (characters).

Best regards,

Alexandre B. Dambrowski

Read only

RaymondGiuseppi
Active Contributor
0 Likes
953

It should be easy to concatenate lines returned by READ_TEXT until length of the string get greater than 300 or no more lines and then truncate.

But, using READ_TEXT for big volumn of data may generate performance problem, so you may be required to replace those READ_TEXT by SELECT from STXL and some IMPORT FROM INTERNAL TABLE (Read Alternative to READ_TEXT Function Module (No more FM needed) and original thread Mass reading standard texts (STXH, STXL)

Regards,

Raymond