<?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: DBIF_RSQL_INVALID_REQUEST on Custom Table Insert in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531779#M1935315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you passing all field values with correct format(may be you are passing wrong data type)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 19:43:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-01-08T19:43:09Z</dc:date>
    <item>
      <title>DBIF_RSQL_INVALID_REQUEST on Custom Table Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531778#M1935314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a simple INSERT on 2 custom tables using the following two SELECT's. One works, however, the last one throws ABAP dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"Works for table zotb_screen_hdr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;select &lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;zotb_screen_hdr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;lw_zotb_hdr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;filenet_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;zotb_header&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;filenet_id&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &amp;lt;&amp;gt; &lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;lw_zotb_hdr &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;initial&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;insert &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;zotb_screen_hdr values gw_zotb_screen_hdr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;endif&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"Throws ABAP dump&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;select &lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;zotb_screen_dtl&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;lw_zotb_dtl&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;filenet_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;zotb_header&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;filenet_id&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;posnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;zotb_detail&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;posnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &amp;lt;&amp;gt; &lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;lw_zotb_dtl &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;initial&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;insert &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;zotb_screen_dtl values gw_zotb_screen_dtl&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;"ST22 points this line as cause of error. (Both filenet_id and posnr fields have values)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;All I'm trying to do is to check if record already exist in the table. If not, then do INSERT using workarea gw_zotb_screen_dtl. What's puzzling is that SAP doesn't throw error on first INSERT but does on second one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody see what mistake I'm making here and how to rectify it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Matthew Billingham - tidied code formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 17:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531778#M1935314</guid>
      <dc:creator>former_member295881</dc:creator>
      <dc:date>2016-01-08T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_REQUEST on Custom Table Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531779#M1935315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you passing all field values with correct format(may be you are passing wrong data type)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 19:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531779#M1935315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-08T19:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_REQUEST on Custom Table Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531780#M1935316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the first table is a different table to the second, it's not necessarily that puzzling. Obviously something is wrong with your second insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the type of &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 12px;"&gt;gw_zotb_screen_dtl&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;? Are you sure it is the same as the table? Have you checked the contents of this variable in debug? Does it actually contain valid values (.e.g you might have passed it a character numeric value when it was expecting a packed decimal).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 07:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-request-on-custom-table-insert/m-p/11531780#M1935316</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-01-09T07:08:25Z</dc:date>
    </item>
  </channel>
</rss>

