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

Doubt on Read_text

Former Member
0 Likes
456

Hi gurus,

I am using Read_text function module to retrive long text data.

the parameters i passed in that function module are

language = sy-langu

id = 'GRUN'

object = 'MATERIAL'

tdname = tname.

i am sure the parameters i am passing into the function module is correct.

But actual my doubt is i need to print that text into ALV report.

How to do that.

Please can any one help me on this.

Its Urgent..

Thanks in Advance.

Thanks and Regards

Siri...

3 REPLIES 3
Read only

Former Member
0 Likes
441

In internal table of alv list, create an another field type string.

then load output of read_text into that variable.

Regards

Rajesh

Read only

Former Member
0 Likes
441

TRY THIS OUT... THIS IS USED IN PURCHASE ORDER

tname1 = ekko-ebeln.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'F06'

language = 'E'

name = tname1

object = 'EKKO'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

lines = mattext1

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

IF sy-subrc EQ 0.

THANKS.

ARUNPRASAD.P

Read only

vinod_vemuru2
Active Contributor
0 Likes
441

Hi,

After calling ur FM texts will be placed in tables parameter lines.

Do like this.

clear: wa_lines, wa_alvtab-text..

Loop AT i_lines INTO wa_lines.

CONCATENATE wa_alvtab-text wa_lines-tdline INTO wa_alvtab-text SEPERATED BY space.

clear wa_lines.

Endloop.

APPEND wa_alvtab TO i_alvtab.

Pass this table into ur ALV function module.

So ur text will be displayed as one of the field in the ALV display.

Thanks,

Vinod.