Skip to Content
0
Former Member
May 31, 2007 at 02:13 PM

problem in read_text fm

14 Views

Hi,

iam having one problem if i call read_text fm

only one line is coming in the output.

eg: material(Text)

plant (Text)

my progaram write only one line ie. material i want to consider f all the line in single line.

opt should be: materialplant.

please correct this code

loop at t_mara.

*CONCATENATE t_mara-matnr t_mara-dwerks INTO TeMP IN CHARACTER MODE.

temp = t_mara-matnr .

temp+19(4) = t_mara-dwerks .

WRK_NAME = temp.

*WRITE: / temp..

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = 'LTXT'

LANGUAGE = SY-LANGU

NAME = WRK_NAME

OBJECT = 'MDTXT'

  • IMPORTING

  • HEADER =

TABLES

LINES = IT_LINES

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS .

IF SY-SUBRC <> 0.

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

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

else.

READ TABLE IT_LINES INDEX 1.

TXT_TD03 = IT_LINES-TDLINE.

MOVE TXT_TD03 TO T_MARA-TEXT.

MODIFY T_MARA.

ENDIF.