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: 

READ_TEXt

Former Member
0 Kudos

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

former_member195402
Active Contributor
0 Kudos

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

former_member195402
Active Contributor
0 Kudos

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 

0 Kudos

Hi All,

Solved with the help of FM  S'WA_STRING_SPLIT'.

Thanks and Regards,

Uma

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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