<?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: Code works in debug mode not in normal run mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592465#M1939538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;IF ( ( im_ekko-frgke = '1' ) AND ( sy-tcode = 'ME22N' OR sy-tcode = 'ME21N' OR sy-tcode = 'ME23N' ) )."Added on 06.01.2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Normal mode check what is the value for SY-TCODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 07:14:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-16T07:14:30Z</dc:date>
    <item>
      <title>Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592464#M1939537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a customized requirement in SAP MM module where we need to send the Purchase order data to a third party system whenever the PO is released in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we need to send an extra field along with the PO data when a single PR line item is split into 2 or more PO's. For example, if a PR line item is having quantity 10, and if there are three PO's created PO1, PO2 and PO3 with quantity 5.2 and 3 respectively, then indicator Y should be sent with PO2 and PO3 when the PO is saved. As PO1 is the first PO created against the PR line item, no split indicator Y should be sent in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to this, once PO2 and PO3 are changed or modified or deleted, no split indicator should be sent. Deletion indicator should be sent in case of deletion. To identify the change, we have added a new field ZMOD ie modification flag, so that the change scenario is distinguished from the one in which new PO is created. ZMOD flag will not be sent to the third party system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario which is not working in normal run mode but works in debug mode is as follows. PR line item PR1 created with quantity 10.&lt;/P&gt;&lt;P&gt;PO1 created with quantity 5, PO2 created with quantity 2 and PO3 with quantity 3, all three with reference to PR1. When PO2 and PO3 are created, split flag is sent to third party system. Now PO2 is deleted, so deletion indicator is sent to third party system without split flag. User adds a new line item in PO3 (having quantity 3) with reference to PR1 ie user adds a new line item with quantity 2. Thus when PO3 is saved, no split indicator should be sent for PO3 line item 1 whereas split indicator should be sent for PO3 line item 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have developed the code which is attached in a text file. However the scenario explained above works in debug mode but not in normal run mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please guide if we are missing out on something or try some other option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mitesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 05:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592464#M1939537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592465#M1939538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;IF ( ( im_ekko-frgke = '1' ) AND ( sy-tcode = 'ME22N' OR sy-tcode = 'ME21N' OR sy-tcode = 'ME23N' ) )."Added on 06.01.2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Normal mode check what is the value for SY-TCODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 07:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592465#M1939538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592466#M1939539</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;For me it looks like commit work is not working in the Normal Run whereas it works in the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use commit work and wait and write it only once after whole code gets executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592466#M1939539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T08:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592467#M1939540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am changing an existing PO ie PO3 the sy-tcode is ME22n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592467#M1939540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T08:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592468#M1939541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Mitesh Shah wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Thus when PO3 is saved, no split indicator should be sent for PO3 line item 1 whereas split indicator should be sent for PO3 line item 2.&lt;/P&gt;
&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;...&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You describe, what should happen, but not what actually happens in non debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the execution of your code triggered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592468#M1939541</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2016-03-16T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592469#M1939542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Hubert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add a new line item in PO3 with quantity 2, split indicator should be sent for PO3 line item 2 and no split indicator should be sent for PO3 line item 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However no split indicator is being sent for both the line items. Indicator M is being updated in table EKPO for both line items. (This is the Z field we have created to distinguish change scenario from create scenario).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in case you need any other information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592469#M1939542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in debug mode not in normal run mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592470#M1939543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could be right since there is an implied commit at every break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-works-in-debug-mode-not-in-normal-run-mode/m-p/11592470#M1939543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T10:46:44Z</dc:date>
    </item>
  </channel>
</rss>

