<?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: Hardcode Reason code in sales order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843239#M1684384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawood,&lt;/P&gt;&lt;P&gt;I thoght you were talking about Reason for rejection.&amp;nbsp; &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote jiveImage" height="1" src="https://community.sap.com/825/images/emoticons/sad.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But as you have written your logic inside &lt;STRONG&gt;userexit_move_field_to_vbak &lt;/STRONG&gt;, have you put braek-point and check sy-subrc contents to check if hardcoded value 'ABC' is getting popualated inside &lt;STRONG&gt;AUGRU&lt;/STRONG&gt; (Order reason) in the structure which is used at run- time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 14:55:24 GMT</pubDate>
    <dc:creator>former_member213851</dc:creator>
    <dc:date>2012-06-28T14:55:24Z</dc:date>
    <item>
      <title>Hardcode Reason code in sales order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843236#M1684381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Whenever we change a sales order, the system pops up a screen asking for the Reason Code.&lt;/P&gt;&lt;P&gt;I have written a code in the exit form "userexit_read_document" in MV45AFZZ for the sales order which hardcodes the reason code so that the popup does not appear e.g. I hardcode it to "ABC".&lt;/P&gt;&lt;P&gt;The problem is if the Reason Code in the sales order is already "ABC", then the popup for Reason Code still appears. Is there any way to suppress the popup in this case also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dawood&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 11:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843236#M1684381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-28T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hardcode Reason code in sales order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843237#M1684382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawood,&lt;/P&gt;&lt;P&gt;You nedd to add your logic populate reason ABC inside Subroutine &lt;STRONG&gt;userexit_move_field_to_vbap &lt;/STRONG&gt;in MV45AFZZ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843237#M1684382</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2012-06-28T12:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hardcode Reason code in sales order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843238#M1684383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reason code is at header level...why do we want to write code in &lt;STRONG&gt;userexit_move_field_to_vbap.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried writing the code in &lt;STRONG&gt;userexit_move_field_to_vbak &lt;/STRONG&gt;but it doesn't work.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843238#M1684383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-28T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hardcode Reason code in sales order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843239#M1684384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawood,&lt;/P&gt;&lt;P&gt;I thoght you were talking about Reason for rejection.&amp;nbsp; &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote jiveImage" height="1" src="https://community.sap.com/825/images/emoticons/sad.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But as you have written your logic inside &lt;STRONG&gt;userexit_move_field_to_vbak &lt;/STRONG&gt;, have you put braek-point and check sy-subrc contents to check if hardcoded value 'ABC' is getting popualated inside &lt;STRONG&gt;AUGRU&lt;/STRONG&gt; (Order reason) in the structure which is used at run- time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 14:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hardcode-reason-code-in-sales-order/m-p/8843239#M1684384</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2012-06-28T14:55:24Z</dc:date>
    </item>
  </channel>
</rss>

