<?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 MATNR push as BIGINT to SQL table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-push-as-bigint-to-sql-table/m-p/3528041#M848778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My requiremnet is to update a SQL table .&lt;/P&gt;&lt;P&gt;SQL table has field with BIGINT.they are not willing change type to VARCHAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a custom code to push the data.I am using DBCO for this process.&lt;/P&gt;&lt;P&gt;I am getting a dump when i push this data.&lt;/P&gt;&lt;P&gt;below is the source code.&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;  matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;  maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;  werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;  bismt LIKE mara-bismt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;  CONNECT TO 'TEST' AS 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;  SET CONNECTION 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  shift itab-matnr left deleting leading '0'.&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    INSERT INTO SapProducts&lt;/P&gt;&lt;P&gt;           ( ProductID&amp;lt;bigint&amp;gt;, ProductName)&lt;/P&gt;&lt;P&gt;           VALUES&lt;/P&gt;&lt;P&gt;           (:ITAB-MATNR, :ITAB-MAKTX)&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Database error text........: "Error converting data type nvarchar to bigint."&lt;/P&gt;&lt;P&gt; Database error code........: 8114&lt;/P&gt;&lt;P&gt; Triggering SQL statement...: "INSERT INTO SapProducts ( ProductID, ProductName&lt;/P&gt;&lt;P&gt;  ) VALUES ( ? , ? )"&lt;/P&gt;&lt;P&gt; Internal call code.........: "[DBDS/NEW DSQL]"&lt;/P&gt;&lt;P&gt; Please check the entries in the system log (Transaction SM21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If the error occures in a non-modified SAP program, you may be able to&lt;/P&gt;&lt;P&gt; find an interim solution in an SAP Note.&lt;/P&gt;&lt;P&gt; If you have access to SAP Notes, carry out a search with the following&lt;/P&gt;&lt;P&gt; keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "DBIF_DSQL2_SQL_ERROR" "CX_SY_NATIVE_SQL_ERROR"&lt;/P&gt;&lt;P&gt; "ZCMP_SHELF_UPDATE" or "ZCMP_SHELF_UPDATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRAVEEN s on Feb 28, 2008 10:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 20:30:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T20:30:08Z</dc:date>
    <item>
      <title>MATNR push as BIGINT to SQL table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-push-as-bigint-to-sql-table/m-p/3528041#M848778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My requiremnet is to update a SQL table .&lt;/P&gt;&lt;P&gt;SQL table has field with BIGINT.they are not willing change type to VARCHAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a custom code to push the data.I am using DBCO for this process.&lt;/P&gt;&lt;P&gt;I am getting a dump when i push this data.&lt;/P&gt;&lt;P&gt;below is the source code.&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;  matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;  maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;  werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;  bismt LIKE mara-bismt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;  CONNECT TO 'TEST' AS 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;  SET CONNECTION 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  shift itab-matnr left deleting leading '0'.&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    INSERT INTO SapProducts&lt;/P&gt;&lt;P&gt;           ( ProductID&amp;lt;bigint&amp;gt;, ProductName)&lt;/P&gt;&lt;P&gt;           VALUES&lt;/P&gt;&lt;P&gt;           (:ITAB-MATNR, :ITAB-MAKTX)&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Database error text........: "Error converting data type nvarchar to bigint."&lt;/P&gt;&lt;P&gt; Database error code........: 8114&lt;/P&gt;&lt;P&gt; Triggering SQL statement...: "INSERT INTO SapProducts ( ProductID, ProductName&lt;/P&gt;&lt;P&gt;  ) VALUES ( ? , ? )"&lt;/P&gt;&lt;P&gt; Internal call code.........: "[DBDS/NEW DSQL]"&lt;/P&gt;&lt;P&gt; Please check the entries in the system log (Transaction SM21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If the error occures in a non-modified SAP program, you may be able to&lt;/P&gt;&lt;P&gt; find an interim solution in an SAP Note.&lt;/P&gt;&lt;P&gt; If you have access to SAP Notes, carry out a search with the following&lt;/P&gt;&lt;P&gt; keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "DBIF_DSQL2_SQL_ERROR" "CX_SY_NATIVE_SQL_ERROR"&lt;/P&gt;&lt;P&gt; "ZCMP_SHELF_UPDATE" or "ZCMP_SHELF_UPDATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRAVEEN s on Feb 28, 2008 10:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 20:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-push-as-bigint-to-sql-table/m-p/3528041#M848778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T20:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: MATNR push as BIGINT to SQL table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-push-as-bigint-to-sql-table/m-p/3528042#M848779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BIGINT type variables you can use SAP's INTEGER64 data element. Create a variable and assign MATNR value to this variable when inserting to table. &lt;/P&gt;&lt;P&gt;Just don't forget that MATNR field is CHAR18 field and may contain non-numerical values. If there are non-numerical MATNR values, there is nothing you can do to insert those records to a table with BIGINT Material Code field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murat Kaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-push-as-bigint-to-sql-table/m-p/3528042#M848779</guid>
      <dc:creator>murat_kaya</dc:creator>
      <dc:date>2013-08-14T14:45:45Z</dc:date>
    </item>
  </channel>
</rss>

