‎2006 May 02 1:37 PM
Hi All,
I've created a bespoke long text object so I can save some long text to it. I created it by copying the SAP standard long text object for CATS (timesheets) in SE75. I save to this object using the function module SAVE_TEXT and I read it back using the function module READ_TEXT. I get a short dump during READ_TEXT which says:
"CONNE_IMPORT_WRONG_COMP_TYPE
Error when attempting to IMPORT object "TLINE".
When importing the object "TLINE", the component no. 1 in the dataset has a different type from the corresponding component of the target object in the program "SAPLSTXD ".
The data type is "I" in the dataset, but "C" in the program."
I've looked on OSS (as it's a SAP standard program) but can't find anything. I get no errors when trying to read the standard object CATS only when I try and read my new object, so I'm thinking that I haven't set it up correctly. An entry in table STXH occurs for both objects so I know I have saved some long text in my object.
Can anyone help?
Gill
‎2006 May 02 1:50 PM
Hi,
as the statement suggest
"When importing the object "TLINE", the component no. 1 in the dataset has a different type from the corresponding component of the target object in the program "SAPLSTXD "."
Table Line contains field TDLINE where the value is read and it is CHAR of length 132.
and TDFORMAT of type CHAR2.
error may be due to moving integer value.
-
also check table which ur passing to LINES is with header line ...u can also use LIT_lines[] if no header line.
Message was edited by: Manoj Gupta
‎2006 May 02 1:50 PM
Hi,
as the statement suggest
"When importing the object "TLINE", the component no. 1 in the dataset has a different type from the corresponding component of the target object in the program "SAPLSTXD "."
Table Line contains field TDLINE where the value is read and it is CHAR of length 132.
and TDFORMAT of type CHAR2.
error may be due to moving integer value.
-
also check table which ur passing to LINES is with header line ...u can also use LIT_lines[] if no header line.
Message was edited by: Manoj Gupta
‎2006 May 02 1:51 PM
Hi,
have you passed the correct parameters to the FM.
try to check the sample...
data: it_lines like tline occurs 0 with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z056'
LANGUAGE = 'E'
NAME = L_NAME
OBJECT = 'VBBP'
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 = 8i think it is because of it_lines declaration.
Regards
vijay
‎2006 May 02 1:57 PM
Thanks people, I was passing a table using the incorrect structure and that was causing the error.
It's solved now.
Thanks for your help.
‎2006 May 02 2:01 PM
Don't forget to close the Thread if your Problem solves.
and Reward Points for helpful answers.
Regards
vijay