Hi,
I used following code to Read Header Text (Text ID F01) for purchase order print out some times the characters in this text field may be 1000 characters or higher but at the end of this code i get only 254 characters in Remarks so please help me to solve this issue (all characters are comes in FM output "HeaderLine" and its workarea)
Data: Remarks type CHAR780
CLEAR WA_STXL.
SELECT SINGLE
FROM STXL INTO
WA_STXL WHERE TDNAME = l_doc-xekko-ebeln AND TDID = 'F01'.
IF WA_STXL-TDID IS NOT INITIAL.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = WA_STXL-TDID
LANGUAGE = WA_STXL-TDSPRAS
NAME = WA_STXL-TDNAME
OBJECT = WA_STXL-TDOBJECT
TABLES
LINES = HEADERLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
clear REMARKS.
DATA: WA_REMARKS TYPE tline.
LOOP AT HEADERLINE INTO WA_REMARKS.
CONCATENATE REMARKS WA_REMARKS-tdline INTO REMARKS." SEPARATED BY SPACE.
ENDLOOP.
ENDIF.
Regards
Nausal