<?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: when we use the sy-batch statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018944#M713629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not necessary because ALV Grid is running in batchmode. There is no need to differ like you did. Did you ever tried to run a ALV GRid report in backgrind. Its working well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 15:43:08 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2007-11-07T15:43:08Z</dc:date>
    <item>
      <title>when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018938#M713623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;when we use the sy-batch statement.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 14:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018938#M713623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T14:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018939#M713624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would use SY-BATCH any time you want to know if the current program is running in the background.  For example, say you have a function module which downloads a file to the frontend, but we know that we can't do this in background, so you could code something in the functino module which would not allow the user to do it, something like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-batch = 'X'.
   raise exception cannot_call_in_background.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018939#M713624</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-11-07T15:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018940#M713625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pandu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-BATCH is used to check whether the Transaction or report are executed in frontend or background as batch job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-BATCH EQ 'X'.
     "do this......
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018940#M713625</guid>
      <dc:creator>former_member187255</dc:creator>
      <dc:date>2007-11-07T15:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018941#M713626</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;another reason to use it is in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-BATCH = ' '.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;   ...&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;   ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018941#M713626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T15:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018942#M713627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sy-batch is a system field and is an identifier whether report s run in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-batch = 'X' means ---&amp;gt; execution in back ground.&lt;/P&gt;&lt;P&gt;This can be used to avoid GUI operations while running in back ground.&lt;/P&gt;&lt;P&gt;if sy-batch is not initial.&lt;/P&gt;&lt;P&gt;    call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;    open dataset 'cxxxx'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;reward if useful&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018942#M713627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018943#M713628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some of the programs should run only background so we keep condition like'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;error message " Please run the program only in background".&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018943#M713628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018944#M713629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not necessary because ALV Grid is running in batchmode. There is no need to differ like you did. Did you ever tried to run a ALV GRid report in backgrind. Its working well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018944#M713629</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-11-07T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018945#M713630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right Rainer,  actually the REUSE_ALV_GRID_DISPLAY will actually convert over to the list display if it finds that it is being ran in the background.   No need to check this and handle in your programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 15:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018945#M713630</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-11-07T15:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018946#M713631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;thanks for this Info. i have test it and it works with grid in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have changed to ECC6, and the Report are written under 4.6C perhaps&lt;/P&gt;&lt;P&gt;that's the reason why i have checked sy-batch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, also to rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 16:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018946#M713631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: when we use the sy-batch statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018947#M713632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We started using the ALV Grid in 4.6C and investigated on that and therefore we dont have any report using the list-variant of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it must be before 4.6c and i'm sure in the beginning you have to differ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 16:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-we-use-the-sy-batch-statement/m-p/3018947#M713632</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-11-07T16:29:12Z</dc:date>
    </item>
  </channel>
</rss>

