<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Insert into a Table not in Dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-a-table-not-in-dictionary/m-p/11585559#M1939094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there is.&lt;/P&gt;&lt;P&gt;You just need to proper match ABAP data type to your DB (DB2) data type. For some you will need conversion (you can use SQL "conversions"/"functions" or convert data in ABAP before inserting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example SAP date format to SQL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;INSERT INTO table_name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( DATE_FIELD )&lt;/P&gt;
&lt;P&gt;VALUES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( to_date(:sy-datum, 'YYYYMMDD'))&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is nice list of types compatibility:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/saphelp_nw73ehp1/helpdata/en/b3/277977713411d194c20000e8353423/content.htm" title="https://help.sap.com/saphelp_nw73ehp1/helpdata/en/b3/277977713411d194c20000e8353423/content.htm"&gt;Native SQL for DB2 Common Server - ABAP Programming (BC-ABA) - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 09:58:46 GMT</pubDate>
    <dc:creator>Tomas_Buryanek</dc:creator>
    <dc:date>2016-03-10T09:58:46Z</dc:date>
    <item>
      <title>Insert into a Table not in Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-a-table-not-in-dictionary/m-p/11585558#M1939093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario where I have&amp;nbsp; a table of all the ABAP Dictionary Types.&lt;/P&gt;&lt;P&gt;Dictionary types include (ACCP,CHAR,CLNT,CUKY,DF16_DEC,DF34_DEC,DF16_RAW,DF34_RAW,DATS,DEC,FLTP,INT1,INT2,INT4,INT8,LANG,&lt;/P&gt;&lt;P&gt;NUMC,PREC,RAW,RAWSTRING,SSTRING,STRING,TIMS,UNIT,LCHR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Table doesn't exist in dictionary but it exists in the underlying Database.(DB2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert data into the table.&lt;/P&gt;&lt;P&gt;As the table doesn't exist in dictionary,I cannot use open SQL.&lt;/P&gt;&lt;P&gt;As per my knowledge,I have to use native SQL to insert into such table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I use native SQL ,I am getting many datatype mismatch exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can insert data into such tables without any issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-a-table-not-in-dictionary/m-p/11585558#M1939093</guid>
      <dc:creator>former_member284942</dc:creator>
      <dc:date>2016-03-10T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into a Table not in Dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-a-table-not-in-dictionary/m-p/11585559#M1939094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there is.&lt;/P&gt;&lt;P&gt;You just need to proper match ABAP data type to your DB (DB2) data type. For some you will need conversion (you can use SQL "conversions"/"functions" or convert data in ABAP before inserting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example SAP date format to SQL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;INSERT INTO table_name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( DATE_FIELD )&lt;/P&gt;
&lt;P&gt;VALUES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( to_date(:sy-datum, 'YYYYMMDD'))&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is nice list of types compatibility:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/saphelp_nw73ehp1/helpdata/en/b3/277977713411d194c20000e8353423/content.htm" title="https://help.sap.com/saphelp_nw73ehp1/helpdata/en/b3/277977713411d194c20000e8353423/content.htm"&gt;Native SQL for DB2 Common Server - ABAP Programming (BC-ABA) - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-a-table-not-in-dictionary/m-p/11585559#M1939094</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-03-10T09:58:46Z</dc:date>
    </item>
  </channel>
</rss>

