Application Development 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: 

display the long text in alv by using function modules

Former Member
0 Kudos

Hi all,

How to display the long text in alv by using function modules ?

Send me any sample code.

Thanks in advance

krupali.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

any long text you want to display...first we need to read that text by using READ_TEXT function module.

and store it into one internal table.

then pass this table to your ALV function module to display.

Have a nice day,

venkat

5 REPLIES 5

Former Member
0 Kudos

Hi,

any long text you want to display...first we need to read that text by using READ_TEXT function module.

and store it into one internal table.

then pass this table to your ALV function module to display.

Have a nice day,

venkat

Former Member
0 Kudos

Hello KR,

Use READ_TEXT and concatenate the first lines of the text.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'F01'

language = sy-langu

name = lv_name " purchase order with leading zeroes

object = 'EKKO'

TABLES

lines = t_lines

EXCEPTIONS

OTHERS = 8.

You can loop at t_lines and concatenate header in to some other field.

Best Regards,

Sasidhar Reddy Matli.

Edited by: Sasidhar Reddy Matli on Aug 13, 2008 12:25 PM

Former Member
0 Kudos

Hi KR ,

Please go through the link,

http://www.sap-basis-abap.com/sapac002.htm

Regards,

Sreekar.Kadiri.

Former Member
0 Kudos

Hi,

go through following piece of code... and do changes where required ....

data : s_date like sy-datum,

s_date1(10).

data : s_time like sy-uzeit,

s_time1(8).

data : t_stamp(14) value '20070522064742'.

s_date = t_stamp+0(8).

s_time = t_stamp+8(6).

write s_date to s_date1.

write s_time to s_time1.

concatenate s_date1 s_time1 into t_result separated by space.

i hope u will get some help fron this

Thanks & Regards

Ashu Singh

Former Member
0 Kudos

hi,

Sorry the previous post i did to u was not for ur problem...

Thanks & Regards

Ashu Singh