08-11-2011 7:17 PM
Hello All,
Here is the short dump that I am getting while clicking "Output Message" in ME9K transaction.
Can anyone please help me out to resolve the issue?
Short Dump:
Runtime Errors CONNE_IMPORT_WRONG_COMP_LENG
Except. CX_SY_IMPORT_MISMATCH_ERROR
Short text
Error when attempting to IMPORT object "TLINE".
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSTXD" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
not caught in
procedure "READ_TEXTLINES" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
When importing the object "TLINE", the component 1 in the dataset
had a different length from the corresponding component of the
target object in the program "SAPLSTXD".
The length is 4 in the dataset, but 20 in the program.
Missing RAISING Clause in Interface
Program SAPLSTXD
Include LSTXDFDB
Row 75
Module type (FORM)
Module Name READ_TEXTLINES
Trigger Location of Exception
Program SAPLSTXD
Include LSTXDFDB
Row 106
Module type (FORM)
Module Name READ_TEXTLINES
Source Code Extract
85 DATA: l_mod LIKE tcp0c-modifier.
86
87 refresh rt_lines.
88 move-corresponding rt_header to stxl_id.
89 * only for nonunicodesystems:
90 * the import-statment contains a conversion from internal cp
91 * to the codepage of language key.
92 * if the import-process can't assign a codepage it is using
93 * the actual systzem-codepage. So we make a SET LOCALE
94 l_unich = CL_ABAP_CHAR_UTILITIES=>charsize.
95 IF l_unich = 1.
96 GET LOCALE LANGUAGE l_sypr COUNTRY l_count MODIFIER l_mod.
97 CATCH SYSTEM-EXCEPTIONS localization_errors = 1.
98 SET LOCALE LANGUAGE rt_header-tdspras.
99 ENDCATCH.
100 IF sy-subrc <> 0.
101 SET LOCALE LANGUAGE l_sypr.
102 ENDIF.
103 ENDIF.
104
105 if rt_header-tdtexttype is initial. "SAPscript format
>>>>> import tline to rt_lines
107 from database stxl(tx)
108 client rt_client
109 id stxl_id
110 ACCEPTING TRUNCATION "important for Unicode->Nonunicode
111 IGNORING CONVERSION ERRORS.
112 else. "non-SAPscript text
113 import tline to rt_lines
Someone please help in finding the solution.
Thanks in advance.
Regards,
Shyam
08-12-2011 1:25 AM
Hi,
It apprear to me that you are having a FM "READ_TEXT" in your printing program. The type assigned for table parameter "LINES" in the program is not of type "TLINE". Please check the type assignment.
I hope it works.
Cheers,
08-16-2011 11:57 PM
Hi Himanshu,
We already declared the IT_TLINE as Exporting parameter to the READ_TEXT function module. even though we are getting the error message.
I was trying to print the Release order text on custom smartform using ME9K tcode. but its not printing all the lines that I entered in "Release Order text" field in ME32K.
Can anyone tell me how can I print all the lines on the smartform?
Below is the code which I used in Custom smartform:
DATA: wa_tline TYPE tline.
REFRESH it_hd_texts.
CLEAR v_text.
*Passing the values for the header text to the work area.
wa_text-tdobject = 'EKKO'.
wa_text-tdspras = is_nast-spras.
wa_text-tdname = is_ekko-ebeln.
wa_text-tdid = 'K00'.
*Calling the function to read the header text based on the
* values passed to the function and storing it in the text
*table.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = wa_text-tdid
language = wa_text-tdspras
name = wa_text-tdname
object = wa_text-tdobject
TABLES
lines = it_tline1
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.
IF it_tline1 IS NOT INITIAL.
CLEAR wa_tline.
LOOP AT it_tline1 INTO wa_tline.
CONCATENATE v_text wa_tline-tdline INTO v_text.
ENDLOOP.
ENDIF.
Please help me out from this issue.
Thanks in Advance.
Regards,
Shyam
08-19-2011 5:53 PM
10-28-2011 4:40 PM
Hi How did u over come this situation? can u please let me know. We are having a production issue here with this.
-Robin
Edited by: Rob Burbank on Oct 28, 2011 12:00 PM
Priority reduced
05-31-2013 4:15 AM