<?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: database error: DBIF_RSQL_SQL_ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214112#M766353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I think its a Basis problem, basis people has to increase the memory. I faced the same probelm.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 12:52:22 GMT</pubDate>
    <dc:creator>former_member386202</dc:creator>
    <dc:date>2007-12-12T12:52:22Z</dc:date>
    <item>
      <title>database error: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214111#M766352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you doing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to collect data daily from MKPF inner join MSEG, I created customized view "ZWTMV" for this join, and a customized table "ZWTMVCOLLECT" for collected data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code then make the program as scheduled job, but the job cancelled due to "DBIF_RSQL_SQL_ERROR" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zwmdsd_collect_monthly .

DATA:
wa_zwtmv LIKE zwtmv,
wa_zwtmvcollect LIKE zwtmvcollect,
it_zwtmv LIKE zwtmv OCCURS 0,
it_zwtmvcollect LIKE zwtmvcollect OCCURS 0.

DATA:
datestart TYPE d,
dateend TYPE d,
monthend TYPE d.

SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.
PARAMETER p_date TYPE d.
PARAMETER p_end TYPE d.
SELECTION-SCREEN END OF BLOCK bl1.

datestart = p_date.
dateend = p_end.

START-OF-SELECTION.
  WHILE monthend &amp;lt; dateend.
    CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'
         EXPORTING
              day_in            = datestart
         IMPORTING
              last_day_of_month = monthend.

    SELECT matnr shkzg budat bwart lgort umlgo menge
    INTO CORRESPONDING FIELDS OF TABLE it_zwtmv
    FROM zwtmv
    WHERE budat BETWEEN datestart AND monthend.

    IF sy-subrc = 0.
      LOOP AT it_zwtmv INTO wa_zwtmv.
        wa_zwtmvcollect-budat = monthend.
        wa_zwtmvcollect-matnr = wa_zwtmv-matnr.
        wa_zwtmvcollect-shkzg = wa_zwtmv-shkzg.
        wa_zwtmvcollect-bwart = wa_zwtmv-bwart.
        wa_zwtmvcollect-lgort = wa_zwtmv-lgort.
        wa_zwtmvcollect-umlgo = wa_zwtmv-umlgo.
        wa_zwtmvcollect-menge = wa_zwtmv-menge.
        COLLECT wa_zwtmvcollect INTO it_zwtmvcollect.
      ENDLOOP.

      CLEAR: wa_zwtmv, wa_zwtmvcollect.

      MODIFY zwtmvcollect FROM TABLE it_zwtmvcollect.
      IF sy-subrc = 0.
        COMMIT WORK .
      ELSE.
        ROLLBACK WORK.
      ENDIF.

      REFRESH: it_zwtmv, it_zwtmvcollect.
    ENDIF.

    datestart = monthend + 1.

  ENDWHILE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm so looking forward to your help, every help will be great appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 12:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214111#M766352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: database error: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214112#M766353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I think its a Basis problem, basis people has to increase the memory. I faced the same probelm.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 12:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214112#M766353</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-12T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: database error: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214113#M766354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be additional information with the dump. If you would post that, it would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it could be that the rollback segment has been filled. You can get around this by updating your table in chunks and doing a commit after each chunk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 15:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-error-dbif-rsql-sql-error/m-p/3214113#M766354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T15:51:11Z</dc:date>
    </item>
  </channel>
</rss>

