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

function read_text, how to store in field of an internal table

Former Member
0 Kudos
836

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

3 REPLIES 3
Read only

former_member189779
Active Contributor
0 Kudos
644

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 .

Read only

former_member585060
Active Contributor
0 Kudos
644

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

Read only

Himayatullah
Active Participant
0 Kudos
644

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