05-05-2006 3:29 PM
Hi, Please I need some help! When a I execute Transaction F-02 and I choose Apart document then I put an user and I press List when I pick some elements appears the error:
CONNE_IMPORT_WRONG_COMP_TYPE
The problem is in this part:
FUNCTION FI_WT_READ_TEMP_DOCUMENT.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_UF05A) LIKE UF05A STRUCTURE UF05A
*"----
*--- with_item: withholding data
DATA: X_WITH_ITEM LIKE WITH_ITEMX OCCURS 1 WITH HEADER LINE.
DATA: BEGIN OF TMP,
UNAME LIKE SY-UNAME, " User
TEMPN LIKE UF05A-TEMPI, " temp doc. number
END OF TMP.
TMP-UNAME = I_UF05A-UNAMD.
TMP-TEMPN = I_UF05A-TEMPD.
IMPORT X_WITH_ITEM FROM DATABASE RFDT(WT) ID TMP.
DESCRIBE TABLE X_WITH_ITEM LINES SY-TFILL.
IF SY-TFILL <> 0.
XWITHHELD = 'X'.
ENDIF.
*----
write data back to global memory
CALL FUNCTION 'FI_WT_PUT_X_WITH_ITEM'
TABLES
T_WITH_ITEM = X_WITH_ITEM
EXCEPTIONS
OTHERS = 1.
ENDFUNCTION.
and de dump says:
When importing the object "X_WITH_ITEM", the component no. 68 in the
dataset has a different type from the corresponding component
of the target object in the program "SAPLFWTD ".
The data type is "P" in the dataset, but "C" in the program.
I would like to know how to resolve this problem, thanks in advance.
05-05-2006 3:31 PM
Jessica,
This looks like a problem with SAP Standard code. Did you look at any OSS notes that might fix the issue?
Regards,
Ravi
Note : Please mark the helpful answers
05-05-2006 3:51 PM
The dump should tell you what parameters to use when looking for OSS notes.
Rob
05-06-2006 8:19 PM
Hello Jessica,
the short dump happens when a datastructure differs in its layout at time of export and import. I assume the type WITH_ITEMX refers to a DDIC structure which has been altered (or extended) recently.
Dealing with such problems can get tough. In case you have made a ddic structure modification or used an append structure its advisable to stay away from that.
Else I would raise a CSN message.
Best Regards
Klaus