<?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: problem with select statement in background mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773393#M1306979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first thing : why are you using that 'EXIT'  statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second thing: you can use select single if u are passing key fields to where clause in place of up to 1 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2009 05:59:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-01T05:59:04Z</dc:date>
    <item>
      <title>problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773388#M1306974</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 am facing a strange problem with one of the select statements in a report. If the report is executed in foreground, the program is running succesfully, but if we schedule the same in background mode, the select statement is failed and no records are selected. But if we debug the background job, we see that the select works fine. I am facing problem only when executing the report completely in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one help me in solving this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773388#M1306974</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2009-07-01T05:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773389#M1306975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you drawn the conclusion that select statement is not working in background..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't debug, just create some error log using messages if the select fails. I hope the issue is not select , it is something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773389#M1306975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773390#M1306976</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;Could you post the code segment ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773390#M1306976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773391#M1306977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sivapuram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what error you are getting ?? Check out ST22 if you are getting any dump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time if you are trying to select very large number of records then you may get dump for the select statment like DBIF_RSQL_INVALID_RSQL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide more information about what error/dump you are getting.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773391#M1306977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773392#M1306978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the select is failed, an error message is written to log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the select statement below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cli_sincro FROM zeiwt121 INTO lv_cli_sincro&lt;/P&gt;&lt;P&gt;      UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;      WHERE bukrs      EQ f_dati-bukrs&lt;/P&gt;&lt;P&gt;      AND   vkorg      EQ f_dati-vkorg&lt;/P&gt;&lt;P&gt;      AND   logsys     EQ 'SINCRO'&lt;/P&gt;&lt;P&gt;      AND   kunnr      EQ f_dati-kunnr.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        wa_ziv_wt_cust_data-cliente = '0000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  st_err_msg-cust_nbr = .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        st_err_msg-msg_num = ca_047.&lt;/P&gt;&lt;P&gt;        st_err_msg-msg_cls = ca_cls.&lt;/P&gt;&lt;P&gt;        st_err_msg-var1    = 'KNB1'.&lt;/P&gt;&lt;P&gt;        st_err_msg-var2    = f_kna1-kunnr.&lt;/P&gt;&lt;P&gt;        st_err_msg-var3    = f_dati-bukrs.&lt;/P&gt;&lt;P&gt;        APPEND st_err_msg TO tb_err_msg.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773392#M1306978</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2009-07-01T05:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773393#M1306979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first thing : why are you using that 'EXIT'  statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second thing: you can use select single if u are passing key fields to where clause in place of up to 1 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773393#M1306979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773394#M1306980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that code was already developed by some one else and so i have not removed the exit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not use select single as i am not using all the primary key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 06:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773394#M1306980</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2009-07-01T06:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773395#M1306981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check if any fields have conversion routines added to it as addnumber or some fields, because u might be passing the values without preceding zeros and data base might not have zeros. vice-versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 06:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773395#M1306981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T06:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773396#M1306982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i execute the program in foreground, its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 06:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773396#M1306982</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2009-07-01T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773397#M1306983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem was with the where clause of the select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 17:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773397#M1306983</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2009-07-21T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773398#M1306984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What as the fix to the problem? we are also having a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 21:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773398#M1306984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T21:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773399#M1306985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;   As per your all comments, there are no primary keys in the where clause. So, we should not use Select and Endselect. Use Select into table itab. based on any other fields we can filter retrieved data to single record whichever we want. If where clause fields are not Primary we can't tell how many times it is hitting on the database. In additional, as per code, EXIT statement also there. In background that may cause problems i think.  Please go through the total code. Try to understand the complete functionality. If possible try to remove SELECT and ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Balaji Peethani,&lt;/P&gt;&lt;P&gt;TANUKU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 00:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement-in-background-mode/m-p/5773399#M1306985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-12T00:08:52Z</dc:date>
    </item>
  </channel>
</rss>

