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: 

How to display READ_TEXT value using ALV

Former Member
0 Kudos

Hi ,

I am using READ_TEXT FM to get the Purchase text ,

could any one tell me how to display the out put using

alv list display

Thanx

Mohan

3 REPLIES 3

Former Member
0 Kudos

loop at the line table and concatenate it into the field of itab used display alv.

former_member188685
Active Contributor
0 Kudos

Showing Long text using ALV is not suggested approach. if you want to show it for may records you can show it, but the length problem if the text is too long then it is not at all looks good(output).

My suggestion will be use CL_GUI_TEXTEDIT class and show the text in a popup. using some double click event inside alv.

instead of showing it in the ALV output.

Former Member
0 Kudos

hi,

REPORT Z_READ_TEXT.

  • Internal table to hold text in the standard text

DATA:

BEGIN OF T_TEXT OCCURS 0.

INCLUDE STRUCTURE tline. " Text Lines

DATA: END OF T_TEXT.

DATA: TDNAME type THEAD-TDNAME,

TDID type THEAD-TDID,

TDOBJECT THEAD-TDOBJECT.

TDID = '0001'.

TDNAME = '0000023232'. "for header , for item concatenate Item number

TDOBJECT = 'EKKO'. " for header , for item it is EKPO.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = TDID

language = sy-langu

name = TDNAME

object = TDOBJECT

TABLES

lines = t_text

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 ne 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Regards,

Deepthi.