<?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: APPEND command error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771561#M1463239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As every one said.. write it in selection-screen-output, Whenever face this kind of problem related to job. try debuging the job(JDBG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anurag_n on Apr 12, 2010 4:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 14:10:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-12T14:10:40Z</dc:date>
    <item>
      <title>APPEND command error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771558#M1463236</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;I am facing a strange situation where in the APPEND command work fine where I run my Interface in foreground but when I run the interface in background mode it doesnt APPEND the values to the select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coded the below code in INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION
  SELECT SINGLE MAX( run_nr )
                FROM ztsifoutdet
                INTO  gv_temp_nr
                WHERE sys_id EQ p_sysid.                    

  SELECT SINGLE run_date
                FROM ztsifoutdet
                INTO  gv_date
                WHERE sys_id EQ p_sysid
                AND run_nr EQ gv_temp_nr.     
              
  gv_temp_nr = gv_temp_nr + c_1.

  CLEAR s_bdter.
  s_bdter-sign = 'I'.
  s_bdter-option = 'BT'.
  s_bdter-low = gv_date.
  s_bdter-high = sy-datum.
  APPEND s_bdter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the APPEND statement doesnt append values to S_BDTER when ran in background. ITs quite strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771558#M1463236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: APPEND command error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771559#M1463237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, INITIALIZATION is processed before values from selection variants are pulled in. Check that the variant that you use for processing the program in background contains the desired values.&lt;/P&gt;&lt;P&gt;Alternatively try filling the values in event AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771559#M1463237</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-04-12T13:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: APPEND command error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771560#M1463238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION " Change it to At selection-screen output
  SELECT SINGLE MAX( run_nr )
                FROM ztsifoutdet
                INTO  gv_temp_nr
                WHERE sys_id EQ p_sysid.                    
 
  SELECT SINGLE run_date
                FROM ztsifoutdet
                INTO  gv_date
                WHERE sys_id EQ p_sysid
                AND run_nr EQ gv_temp_nr.     
              
  gv_temp_nr = gv_temp_nr + c_1.
 
  CLEAR s_bdter.
  s_bdter-sign = 'I'.
  s_bdter-option = 'BT'.
  s_bdter-low = gv_date.
  s_bdter-high = sy-datum.
  APPEND s_bdter.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 14:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771560#M1463238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: APPEND command error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771561#M1463239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As every one said.. write it in selection-screen-output, Whenever face this kind of problem related to job. try debuging the job(JDBG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anurag_n on Apr 12, 2010 4:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 14:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-command-error/m-p/6771561#M1463239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T14:10:40Z</dc:date>
    </item>
  </channel>
</rss>

