Skip to Content
0
Former Member
Sep 11, 2007 at 11:58 AM

concatenating a long description to a report.....

17 Views

Hi All,

TESTING TESTING

TESTING

TESTING

TESTING XXXX

TESTINGBBBBBB

TESTING V VVVVVVV

TESTING MMMMMMMMMM

TESTING ..................

TESTING..................

TESTING FINISHED

May you please help me on this one, i have to display the above text in one line and with the underneath code only one line(TESTING TESTING) can be displayed, i think i have to concatenate them and as a junior person i am struggling with this may you please help me out:

&----


&

&----


&

& FORM reading_text &

&----


&

&----


&

Form reading_text.

gv_repid = sy-repid.

loop at i_tab.

select ebeln into i_tab-ebeln from ekpo where matnr = i_tab-matnr.

exit .

endselect.

line_Id = 'BEST'.

line_name = i_tab-matnr.

line_lang = sy-langu.

line_object = 'MATERIAL'.

CONCATENATE line_Id .

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = line_Id

LANGUAGE = line_lang

NAME = line_name

OBJECT = line_object

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER = THEADER

TABLES

LINES = i_tabs

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

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

read table i_tabs index 1.

move i_tabs-tdline(100) to i_tab-text.

modify i_tab index sy-tabix.

endloop.

Endform.