<?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 Avoid hard coding in exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540441#M1935955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many a time, we need to write exits in the SD Sales order framework (form includes, conventional exits, badis, and so on) where we need to carry out different actions depending on create/change or on the doc category (sales order, quotation, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we end up touching the sapmv45a exists here and there and the same code gets called for all situations. in many places, people hard code transaction codes (if va01, do this; if va21, do that etc etc) in these exits to trigger different streams for various scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Was looking for options to avoid hard coding in exits: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two options that I know of: T180-trtyp = H or V to track create / change mode. We can check the document category to check if its sales order or quote. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way of dealing with this that you can suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 04:31:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-23T04:31:31Z</dc:date>
    <item>
      <title>Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540441#M1935955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many a time, we need to write exits in the SD Sales order framework (form includes, conventional exits, badis, and so on) where we need to carry out different actions depending on create/change or on the doc category (sales order, quotation, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we end up touching the sapmv45a exists here and there and the same code gets called for all situations. in many places, people hard code transaction codes (if va01, do this; if va21, do that etc etc) in these exits to trigger different streams for various scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Was looking for options to avoid hard coding in exits: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two options that I know of: T180-trtyp = H or V to track create / change mode. We can check the document category to check if its sales order or quote. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way of dealing with this that you can suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 04:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540441#M1935955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-23T04:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540442#M1935956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody, any ideas on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 04:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540442#M1935956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-02T04:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540443#M1935957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arjit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;AUTHORITY-CHECK OBJECT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating Authorization object we can maintain the &lt;STRONG&gt;fields&lt;/STRONG&gt; and &lt;STRONG&gt;values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I hope this may helpful.&lt;/SPAN&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;E.Ananthachari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 04:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540443#M1935957</guid>
      <dc:creator>former_member194965</dc:creator>
      <dc:date>2016-04-02T04:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540444#M1935958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally speaking (not SD especially), you may avoid hardcoding by using BRF+ (business rule framework) which provides a user interface to enter conditions externally, and decide which processing applies. Ex: in one of your user exits, you call a BRF+ rule, by passing T180, the user exit parameters, and BRF+ will route to one of your ABAP implementations. Of course, it means a lot of redesign, so you should start using it only for new features, or for redesigning problematic code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 08:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540444#M1935958</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-04-02T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540445#M1935959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandra - that was a good suggestion. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 12:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540445#M1935959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-02T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540446#M1935960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRTYP is good, but it may not reflect when you switch from create to change or vv inside the transaction. MM doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for SD, you can use VBTYP for the document type rather than the TCODE. It works, too, if your company uses a Z* transaction code or if the exit gets called in mass processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 23:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540446#M1935960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-02T23:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid hard coding in exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540447#M1935961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wolfgang. The point that you made about TRTYP was helpful since I wasn't aware of it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 04:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-hard-coding-in-exits/m-p/11540447#M1935961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-03T04:47:44Z</dc:date>
    </item>
  </channel>
</rss>

