<?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: Implement a BADI reuse code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634670#M1942622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bravo ! honestly&amp;nbsp; I dont know how an answer as yours could be constructive somehow .&amp;nbsp;&amp;nbsp; I was asking for advice no for criticism .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your fantastic answer,&amp;nbsp; there are hundreds of programs in the standard&amp;nbsp; which use a procedural approach , are you telling me&amp;nbsp; because they didnt use POO they dont know the&amp;nbsp; "BASICS"&amp;nbsp; ? .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Man Avoid those answers , what a terrible attitude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 12:39:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-05-11T12:39:32Z</dc:date>
    <item>
      <title>Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634663#M1942615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt; Please give me&amp;nbsp; an advice , I need to implement same code in two different methods of a BADI implementation ,&amp;nbsp;&amp;nbsp; so I dont want to repeat the code in both obviously , I was thinking create third method in a global class but there I wont have&amp;nbsp; available elements of Interface of the BADI ( like methods&amp;nbsp; ) what do you recommend me for REUSE?&amp;nbsp; I appreciate your advices. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 10:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634663#M1942615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634664#M1942616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a private method within the implementation class and call that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 10:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634664#M1942616</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-05-11T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634665#M1942617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is always a recommendation for reuse!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your two different methods are in one BADI implementation (class), why don't you add a private method to it doing the job and calling from the two methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach would be to create an own "service" class with an appropriate method, which does the job and you can call from the both BADI methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 10:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634665#M1942617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634666#M1942618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Armin, &lt;/P&gt;&lt;P&gt;thanks for your answer , What do you mean with add&amp;nbsp; ? in the BADI implementation ?&amp;nbsp; could you give more details of the other option&amp;nbsp; "service" please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 11:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634666#M1942618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T11:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634667#M1942619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Do you have any knowledge of ABAP Objects? You see, if you can't understand the terminology, how will you understand any solution given?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This site doesn't exist to teach you ABAP basics, I'm afraid.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 12:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634667#M1942619</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-05-11T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634668#M1942620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Z-class in SE24 and inside that a method with the required import and export parameters. Call this method in your implementation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 12:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634668#M1942620</guid>
      <dc:creator>pranay570708</dc:creator>
      <dc:date>2016-05-11T12:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634669#M1942621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What &lt;SPAN class="j-post-author" style="font-size: 0.9em; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.8px; font-family: inherit; background: transparent;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1053" data-externalid="" data-presence="null" data-userid="24079" data-username="matthew.billingham" href="https://answers.sap.com/people/matthew.billingham" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7; background: transparent;"&gt;Matthew Billingham &lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;wrote in his first post. Though if you don't understand what he says, maybe consider creating a function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 12:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634669#M1942621</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2016-05-11T12:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634670#M1942622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bravo ! honestly&amp;nbsp; I dont know how an answer as yours could be constructive somehow .&amp;nbsp;&amp;nbsp; I was asking for advice no for criticism .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your fantastic answer,&amp;nbsp; there are hundreds of programs in the standard&amp;nbsp; which use a procedural approach , are you telling me&amp;nbsp; because they didnt use POO they dont know the&amp;nbsp; "BASICS"&amp;nbsp; ? .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Man Avoid those answers , what a terrible attitude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 12:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634670#M1942622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634671#M1942623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADIs are Object Oriented. To be able to use them effectively requires understanding the basics of ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question was merely to assess your level of knowledge, not to criticise. If you don't know the basics of ABAP Objects then do not use the methods suggested that utilise OO techniques. However, it would be far better if you were to learn the basics. You can do this through material on this site and others, by going on a training course or getting a book a working your way through it. If you are a competent programmer you should not find this difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you cannot do and really should not do, is request a step by step guide to your solution in this discussion. If you don't know what you're doing,you won't understand the solutions, and may be hard pressed to maintain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My personal view is that so much of SAP is now OO, that ABAP Objects has become part of the basic knowledge set required to work in it effectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634671#M1942623</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-05-11T13:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634672#M1942624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no benefit to this. The correct OO approach is to create a private method and call that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634672#M1942624</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-05-11T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634673#M1942625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with "add" I mean: create an additional method (private) to your BADI implementation class. If you navigate to the class you are in the class builder, where you can implement your BADI methods. And also it's possible to create new methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "service" idea is, that you encapsulate the reused logic into an own class with a public method (maybe static). The big advantage here is, that you could reuse the logic also for other parts in your application. But this depends in a strong way of your logic you want to seperate and reuse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you need the logic only in the BADI methods or it is only meaningful in this context, I would prefer the private method.&lt;/P&gt;&lt;P&gt;Additionally I want to say, you are in an OO context with the BADI methods, so use also the OO techniques in a correct way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are new to OO, please take some time to learn more about it. A well defined usage of the correct concepts is very powerful for your application and it can simplify your maintenance work later. But using bad concepts can lead to frustration. That's also valid for procedural or functional programming &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Armin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634673#M1942625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Implement a BADI reuse code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634674#M1942626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Armin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your advices . I really appreciate them. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-a-badi-reuse-code/m-p/11634674#M1942626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-11T13:56:28Z</dc:date>
    </item>
  </channel>
</rss>

