2008 Mar 01 10:17 AM
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...
2008 Mar 01 10:39 AM
In internal table of alv list, create an another field type string.
then load output of read_text into that variable.
Regards
Rajesh
2008 Mar 01 10:41 AM
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
2008 Mar 01 1:08 PM
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.