‎2009 Jul 08 1:32 PM
Hello Experts,
I am trying to insert an internal table into DDIC Table with
INSERT ZSRM_ADDR FROM table lt_addr_export.
I am gettimg the error message
The type of the db table are not Unicode convertible. What I can I do in this case ?
Regards
Marco
‎2009 Jul 08 3:06 PM
‎2009 Jul 08 1:34 PM
Hi ,
check lt_addr_export is of table type ZSRM_ADDR .
Regards,
Prabhudas
‎2009 Jul 08 1:35 PM
‎2009 Jul 08 1:43 PM
Hi,
You get such errors when the structure of your internal table lt_addr_export is different from that of your database table, here DDIC. Check your structures. You could probably missed the MANDT field in your internal table declaration.
‎2009 Jul 08 1:45 PM
Hi,
Check the fields in your internal table and your Z table.
They must be same. Check their types also.
Regards,
Ankur Parab
‎2009 Jul 08 1:54 PM
TYPES: BEGIN OF lty_addr_export,
partner TYPE bu_partner,
partner_guid TYPE bu_partner_guid,
addrnumber TYPE ad_addrnum,
adr_kind TYPE bu_adrkind,
street TYPE ad_street,
city1 TYPE ad_city1,
country TYPE land1,
name_org TYPE bbp_bp_name_org,
post_code1 TYPE ad_pstcd1,
c_o_name TYPE ad_name_co,
* DISTRICT TYPE AD_CITY2,
building TYPE ad_bldng,
floor TYPE ad_floor,
roomnumber TYPE ad_roomnum,
END OF lty_addr_export,data lt_addr_export TYPE STANDARD TABLE OF lty_addr_export,
DDIC TABLE ZSRM_ADDR
MANDT MANDT
PARTNER BU_PARTNER
PARTNER_GUID BU_PARTNER_GUID
ADDRNUMBER AD_ADDRNUM
ADR_KIND BU_ADRKIND
STREET AD_STREET
CITY1 AD_CITY1
COUNTRY LAND1
NAME_ORG BBP_BP_NAME_ORG
POST_CODE1 AD_PSTCD1
C_O_NAME AD_NAME_CO
BUILDING AD_BLDNG
FLOOR AD_FLOOR
ROOMNUMBER AD_ROOMNUMThey are equal
‎2009 Jul 08 1:59 PM
Hi,
Your internal table does not contain the MANDT field as I mentioned previously
Add the field in the beginning
MANDT TYPE SY-MANDT.
‎2009 Jul 08 2:43 PM
I regret to say
this command causes sy-subrc 4 after executing.
Additonaly no insertion took place
What can the reason for it ?
INSERT ZSRM_ADDR FROM TABLE lt_addr_export ACCEPTING DUPLICATE KEYS.
Edited by: Marco M on Jul 8, 2009 3:43 PM
‎2009 Jul 08 2:54 PM
If the structure is same...would suggest you to declare the internal table as
DATA: lt_addr_export TYPE STANDARD TABLE OF lt_addr_export.
This will avoid all the problems!
‎2009 Jul 08 2:58 PM
‎2009 Jul 08 3:06 PM
‎2009 Jul 08 3:12 PM
‎2009 Jul 08 3:39 PM
‎2009 Jul 08 11:45 PM
hi, I have set the Unicode Checks active and am getting inserted only one line into the table.
Regards
Marco
‎2009 Jul 09 7:17 AM
‎2009 Jul 09 7:28 AM
Hi,
You may be getting one entry because of duplicate records.. It will not insert dupliacte records for the same key field.. Check your internal table values for the key fields and then check the database values.. To avaoid going to dump for using duplicate entries you can use the addition.. accepting duplicate records with your insert statement...
‎2009 Jul 09 8:29 AM
hi please notice I have used the addition ACCEPTING DUPLICATE KEYS
INSERT ZSRM_ADDR FROM TABLE lt_addr_export ACCEPTING DUPLICATE KEYS
Regards
Marco
‎2009 Jul 09 8:36 AM
HI,
Try with modify statemnt.
modify ZSRM_ADDR FROM TABLE lt_addr_export .
Regards,
Nagaraj
‎2016 Jul 19 8:04 AM