<?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: Different behviour in background processing from foreground processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804256#M914970</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;  Many SAP transactions behave differently in online mode and in Batch mode and this mode is determined by the SY-BINPT variable that can be controlled using the OPTIONS command in addition to the CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For example, the error message that usually comes in status bar while you are running the transaction online might appear in a popup window when you are running that in batch. This will make your fields disabled for input. This OPTIONS addition will remove this problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way to use the OPTIONS addition.&lt;/P&gt;&lt;P&gt;Declare a work area of type CTU_PARAMS.&lt;/P&gt;&lt;P&gt;Fill the fields of CTU_PARAMS. The field NOBINPT should be set to &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt;This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;clear X_OPTIONS.&lt;/P&gt;&lt;P&gt;X_OPTIONS-DISMODE = 'E'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-UPDMODE = 'S'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-CATTMODE = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-DEFSIZE = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-RACOMMIT = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-NOBINPT = 'X'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-NOBIEND = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'BP' using T_BDCDATA[] options from X_OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Do not use the MODE &amp;amp; UPDATE additions when you are using OPTIONS. The mode &amp;amp; update values are passed in the CTU_PARAMS structure.&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;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 06:28:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T06:28:10Z</dc:date>
    <item>
      <title>Different behviour in background processing from foreground processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804254#M914968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BDC of VL02 which updates handling units upto 15 line items.This is related to packing.&lt;/P&gt;&lt;P&gt;This transaction works fine in foreground.&lt;/P&gt;&lt;P&gt;In background I do not get the error message but the sequence &lt;/P&gt;&lt;P&gt;is mismatched and due to which the total weight becomes different after 9th line items.&lt;/P&gt;&lt;P&gt;When I debug the background job it works fine as it works in normal foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me it looks SAP behaves diffrently internally in background.&lt;/P&gt;&lt;P&gt;Not sure what can be done in this case.&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, 21 May 2008 05:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804254#M914968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Different behviour in background processing from foreground processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804255#M914969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC for table control is totally depending upon the screen resolution.&lt;/P&gt;&lt;P&gt;if you try it on background it will show different behavior than foreground. It will also behave differently for different PC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my suggestion is go for BAPI.     &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;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 06:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804255#M914969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T06:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different behviour in background processing from foreground processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804256#M914970</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;  Many SAP transactions behave differently in online mode and in Batch mode and this mode is determined by the SY-BINPT variable that can be controlled using the OPTIONS command in addition to the CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For example, the error message that usually comes in status bar while you are running the transaction online might appear in a popup window when you are running that in batch. This will make your fields disabled for input. This OPTIONS addition will remove this problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way to use the OPTIONS addition.&lt;/P&gt;&lt;P&gt;Declare a work area of type CTU_PARAMS.&lt;/P&gt;&lt;P&gt;Fill the fields of CTU_PARAMS. The field NOBINPT should be set to &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt;This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;clear X_OPTIONS.&lt;/P&gt;&lt;P&gt;X_OPTIONS-DISMODE = 'E'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-UPDMODE = 'S'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-CATTMODE = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-DEFSIZE = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-RACOMMIT = ' '.&lt;/P&gt;&lt;P&gt;X_OPTIONS-NOBINPT = 'X'.&lt;/P&gt;&lt;P&gt;X_OPTIONS-NOBIEND = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'BP' using T_BDCDATA[] options from X_OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Do not use the MODE &amp;amp; UPDATE additions when you are using OPTIONS. The mode &amp;amp; update values are passed in the CTU_PARAMS structure.&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;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 06:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804256#M914970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T06:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Different behviour in background processing from foreground processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804257#M914971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally while recording table control entries as part of BDC, you should not assume that so many number of lines will be visible always. If there is a button or menu function available in VL02 to add a new line to the table control, that should be the option you should use for recording and loop through the same recording as many number of lines in the input file. If you dont have such function / button, you can record in following sequence: (1) Hit page down (2) Enter the new entry in the second line of table control (3) Press Enter. You have to loop through the above recording, i.e. fill up screens for as many number of lines as in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh Radhakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 06:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804257#M914971</guid>
      <dc:creator>SureshRa</dc:creator>
      <dc:date>2008-05-21T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Different behviour in background processing from foreground processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804258#M914972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the changes using options - BINPT = X  in call transaction, but unfortunately this also does not work in  background , so I did not get the same results in background which I get in foreground.&lt;/P&gt;&lt;P&gt;Problem remanis as it is.&lt;/P&gt;&lt;P&gt;Thanks.&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, 21 May 2008 10:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-behviour-in-background-processing-from-foreground-processing/m-p/3804258#M914972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T10:21:30Z</dc:date>
    </item>
  </channel>
</rss>

