<?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: program when background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-when-background/m-p/1694383#M304710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to do after putting break-point in it. It seems something is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2006 05:52:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-24T05:52:55Z</dc:date>
    <item>
      <title>program when background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-when-background/m-p/1694382#M304709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;i have changed the existing program variant for new customer.&lt;/P&gt;&lt;P&gt;its running well when foreground. wheni run it in back ground its still taking the values of old customer to which i used for this program.&lt;/P&gt;&lt;P&gt;my program logic as below.&lt;/P&gt;&lt;P&gt;IF sy-batch = isbackground.&lt;/P&gt;&lt;P&gt;    REFRESH : mblnr, mjahr, budat, matnr, charg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Get the Last read of Material Document Number from Interface Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONCATENATE 'AUTOSO_' w_customercd INTO id.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM zx01_map WHERE id = id.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0 AND NOT zx01_map-key1 IS INITIAL.&lt;/P&gt;&lt;P&gt;      CLEAR: mblnr, mjahr.&lt;/P&gt;&lt;P&gt;      mblnr+0(3) = 'IGT'. mblnr-high = mblnr-low = zx01_map-key1.&lt;/P&gt;&lt;P&gt;      mblnr-high+2(8) = '99999999'.&lt;/P&gt;&lt;P&gt;      APPEND mblnr.&lt;/P&gt;&lt;P&gt;      mjahr+0(3) = 'IEQ'. mjahr-low = zx01_map-key2. APPEND mjahr.&lt;/P&gt;&lt;P&gt;      mjahr&lt;EM&gt;0(3) = 'IEQ'. mjahr-low = sy-datum&lt;/EM&gt;0(4). COLLECT mjahr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;and it will update my table with key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-batch = isbackground.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Update the last run for Material Document Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR itab.&lt;/P&gt;&lt;P&gt;    SORT itab DESCENDING BY mblnr mjahr.&lt;/P&gt;&lt;P&gt;    READ TABLE itab INDEX 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'AUTOSO_' w_customercd INTO id.&lt;/P&gt;&lt;P&gt;      UPDATE zx01_map&lt;/P&gt;&lt;P&gt;      SET  key1 = itab-mblnr key2 = itab-mjahr key3 = mblnr-low&lt;/P&gt;&lt;P&gt;           key4 = mjahr-low  WHERE id = id.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 05:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-when-background/m-p/1694382#M304709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T05:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: program when background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-when-background/m-p/1694383#M304710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to do after putting break-point in it. It seems something is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 05:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-when-background/m-p/1694383#M304710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T05:52:55Z</dc:date>
    </item>
  </channel>
</rss>

