cancel
Showing results for 
Search instead for 
Did you mean: 

Read_text?

Former Member
0 Kudos

Hi all,

I am reading text by using read_text funcion module.

My requirement is...

I need to concatenate this int_lines(read ttext output table) text to some standard text and display this text in a WINDOW of a smartform/.

My problem is....in it_lines there is 2 lines of text is there....but in my output its printing second line with that concatenated hard coded text...

My logic is...

Loop at it_lines.

concatenate wa_lines into lv_text.

clear lv_text.

endloop.

can any one suggest reg this...

sachin.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sachin,

You are missing logic of appending previous text to current text in your current logic and you have CLEAR statement inside your LOOP...ENDLOOP will make the value to initial for each iteration. Please consider this logic and check this code.


clear lv_text.
Loop at it_lines.
concatenate lv_text wa_lines into lv_text.
endloop.

Thanks,

Vinay

Answers (2)

Answers (2)

former_member187452
Contributor
0 Kudos

Hi,

Instead of using READ_TEXT fm in smartforms,

use INCLUDE Text options when u create a text in smartforms.

Regards,

Bharat.

Former Member
0 Kudos

Hi all,

Change the logic as follows.

clear lv_text.

Loop at it_lines.

concatenate lv_text wa_lines into lv_text.

endloop.

lv_text should be of type char200 or char300 as per your requirment.

Thanks,

NN.