cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to upload RTF file in the long text

Former Member
0 Kudos

Hi all,

Could you please help me out in this issue. I am trying to upload the RTF file in the long text editor through this menu path Text-> Upload->RTF file.The RTF file is about only 56 KB memory size consists only texts.

I could able to select the file and when i am executing , ABAP dump is showing as follows:

Runtime error : TABLE_INVALID_INDEX

abap program : SAPLSTXK

Whether any SAP notes to be applied for this ?

Please throw you ideas

Regards,

Suresh.

Accepted Solutions (0)

Answers (2)

Answers (2)

koolspy_ultimate
Active Contributor
0 Kudos

try this.


REPORT YCMTESTE LINE-SIZE 255 MESSAGE-ID TD.

PARAMETERS:

TEXTNAME LIKE THEAD-TDNAME DEFAULT 'SAPSCRIPT-DRUCKERTEST',

FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\'.

DATA: TEXTHEADER LIKE THEAD.

DATA: TEXTLINES LIKE TLINE OCCURS 100 WITH HEADER LINE.

CALL FUNCTION 'READ_TEXT'

EXPORTING NAME = TEXTNAME

LANGUAGE = SY-LANGU

OBJECT = 'TEXT'

ID = 'ST '

IMPORTING HEADER = TEXTHEADER

TABLES LINES = TEXTLINES

EXCEPTIONS OTHERS = 1.

CHECK SY-SUBRC = 0.

CALL FUNCTION 'EXPORT_TEXT'

EXPORTING CODEPAGE = '1133'

FILE = FILE

FORMATWIDTH = 132

FORMAT_TYPE = 'RTF'

HEADER = TEXTHEADER

SSHEET = ' '

WITH_TAB = ' '

TABLES ITF_LINES = TEXTLINES

EXCEPTIONS DOWNLOAD_ERROR = 1

FILE_OPEN_ERROR = 2

FILE_WRITE_ERROR = 3.

CASE SY-SUBRC.

WHEN 0. MESSAGE S807 WITH FILE.

WHEN 1. MESSAGE E815 WITH FILE.

WHEN 2. MESSAGE E811 WITH FILE.

WHEN 3. MESSAGE E814 WITH FILE.

ENDCASE.

Reference::[http://help.sap.com/saphelp_sm32/helpdata/en/d6/0db7f3494511d182b70000e829fbfe/content.htm]

<removed_by_moderator>

Edited by: Juan Reyes on May 16, 2011 12:05 PM

Former Member
0 Kudos

Hi suresh,

I suggest, u can try by edit the file name either with <ur RTF file name>.doc or <ur RTF file name>.xls

- chosse as per the data in the file and try uploading.

As some of the SAP functions can't directly accept the RTF format files, u may be specific about ur file name i.e. specific word documnet or excel sheet.

regards,

mahesh.

Former Member
0 Kudos

Hi Mahesh,

Thanks for the reply.Anyway we need to implement around 11 OSS notes as suggested by SAP.Still we havent implemented.Hope the problem may sove by applying these notes.

Regards,

Suresh.

Former Member
0 Kudos

Hi Suresh,

The best way of thanking in SDN forum is rewarding some points to ur satisfaction.

Any way thank u and waiting for early response.

regards,

mahesh.

amit_saxena7
Active Participant
0 Kudos

HI SURESH,

I SERCHED SAP AND FOUND SOME NOTES WHICH MAY BE HELPFUL FOR YOU-

1. 710406 (Mail-Forms: Dump during the import of file in text block)

2. 141208 (SAPscript: Truncated characters in RTF file name)

3. 834574 (RTF texts only inserted at the end of the text in PC editor)

Thanks,

Amit.