on 06-09-2008 11:53 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of using READ_TEXT fm in smartforms,
use INCLUDE Text options when u create a text in smartforms.
Regards,
Bharat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.