2012 Mar 26 1:35 PM
hi everybody
I am retrieving a long text of order using the function module read_text. This long text has to be stored in a field in an internal table to be able to display it in a report.
How is it possible to store that long text in the variable?which data type should the field be?
Can anybody help me in that please?
thanks for your help
Moderator message : Not enough re-search before posting, discussion locked.
Message was edited by: Vinod Kumar
2012 Mar 26 1:44 PM
Hi,
read text gives intrnal table in output with fields TDFORMAT and TADNILE.
You can loop into this internal table and write your tdline value....why you need a variable?
The length of text in single line of table 132 Char .
2012 Mar 26 1:48 PM
Hi,
Declare a variable of type string or characters length 2000.
DATA : v_string TYPE string.
LOOP at lt_lines INTO wa_lines.
CONCATENATE v_string wa_lines-tdline INTO v_string.
CLEAR : wa_lines.
ENDLOOP.
v_string will have the long text, i think it will display upto specific number of characters only in the output, it must 255.
Thanks & Regards
Bala Krishna
2012 Mar 26 2:00 PM
Hi Anjali,
Instead of showing it as a column in report, it is better to show on click of a button. Say you have a very big long text being maintained..then column wise it doesnt look good.
So if you are familiar with ALV OOPS, you can create a custom button on the toolbar and then display text in a pop up on click of the button. From user point of view, it is good. This is just an idea to share.
Thanks & Regards
Himayat