<?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: Error while activating BAdI enhancement implementation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454146#M1999784</link>
    <description>&lt;P&gt;Can you please put a screenshot of the error?&lt;/P&gt;&lt;P&gt;Also for which Tcode you are trying to implement the Badi and the name of the Badi.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 06:13:30 GMT</pubDate>
    <dc:creator>Saumil_Kadukkatt</dc:creator>
    <dc:date>2021-09-09T06:13:30Z</dc:date>
    <item>
      <title>Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454143#M1999781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I got the below syntax error while activating a BAdI enhancement implementation, can you please help me to get rid of it?&lt;/P&gt;
  &lt;P&gt;Error message : "The variant of command enhancement is not allowed in the restricted language scope."&lt;/P&gt;
  &lt;P&gt;I am only a novice at ABAP, trying to implement this enhancement for a PoC. &lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 05:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454143#M1999781</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2021-09-09T05:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454144#M1999782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sounds like you are in Steampunk (ABAP Cloud) ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 05:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454144#M1999782</guid>
      <dc:creator>RobertVit</dc:creator>
      <dc:date>2021-09-09T05:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454145#M1999783</link>
      <description>&lt;P&gt;If it's a syntax error, you should have a line number and a line of ABAP code...&lt;/P&gt;&lt;P&gt;Or is it an ATC check?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 06:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454145#M1999783</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T06:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454146#M1999784</link>
      <description>&lt;P&gt;Can you please put a screenshot of the error?&lt;/P&gt;&lt;P&gt;Also for which Tcode you are trying to implement the Badi and the name of the Badi.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 06:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454146#M1999784</guid>
      <dc:creator>Saumil_Kadukkatt</dc:creator>
      <dc:date>2021-09-09T06:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454147#M1999785</link>
      <description>&lt;P&gt;Please go through below link it might help&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2020/07/23/restricted-abap-and-sap-s-4hana-on-premise/" target="test_blank"&gt;https://blogs.sap.com/2020/07/23/restricted-abap-and-sap-s-4hana-on-premise/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 06:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454147#M1999785</guid>
      <dc:creator>vipinsaraika</dc:creator>
      <dc:date>2021-09-09T06:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454148#M1999786</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Thank you for your responses.&lt;/P&gt;&lt;P&gt;I have attached a screenshot of the error.&lt;/P&gt;&lt;P&gt;The BAdI is "FCO_COEP_QUANTITY"&lt;/P&gt;&lt;P&gt;Enhancement Spot  EHS_FCO_COEP_QUANTITY&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; , when I double click on the error, it does not point to any specific line, but points to the very first line of the Method.&lt;/P&gt;&lt;P&gt;P.S. : I created the enhancement implementation directly via SE24, and below is the reason for that: &lt;/P&gt;&lt;P&gt;Initially, for the above enhancement spot, when I tried to create an enhancement implementation via SE19, after saving the implementation name as a local object, I got a screen where I assigned this new implementation to a class CL_FIN_CODOC_ITEM_QUANTITY_EX, and to the above BAdI. But then further I got the below question pop-up. When I selected yes for this question, then it asked for a Transport request, which I wanted to avoid.&lt;/P&gt;&lt;P&gt;"Class does not implement the BAdI interface. Add an interface relationship?"&lt;/P&gt;&lt;P&gt;Hence, I implemented the enhancement directly in the method of the above class, where I got the error.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Lucy&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1974454-screenshot-2021-09-09-154950.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 07:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454148#M1999786</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2021-09-09T07:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454149#M1999787</link>
      <description>&lt;P&gt;It seems you implemented a implicit enhancement option at the end of the method, you did not implement an explicit enhancement option of an enhancement spot. By the way, your screenshot looks strange to me, you should normally have this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form SHOW_APPL_LOG, End                                                                                                                           A
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  Z_TRANSFER_QUANTITIES.    "active version
" your code
ENDENHANCEMENT.
*$*$-End:   (1)---------------------------------------------------------------------------------$*$*
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Sep 2021 09:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454149#M1999787</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454150#M1999788</link>
      <description>&lt;P&gt;Concerning the message "Class does not implement the BAdI interface. Add an interface relationship?" it's like if you had created the class before creating the implementation. So, you should just say YES so that the line "INTERFACES IF_FCO_COEP_QUANTITY" is automatically added to your public section. (or you can do it manually and you avoid the message, anyway it leads to the same result)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 09:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454150#M1999788</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T09:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454151#M1999789</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;Do you mean that I should be performing an &lt;EM&gt;&lt;STRONG&gt;explicit&lt;/STRONG&gt;&lt;/EM&gt; enhancement instead? I can't find an option for an &lt;STRONG&gt;&lt;EM&gt;explicit&lt;/EM&gt;&lt;/STRONG&gt; enhancement in the menu, all I can see is the option to create an implicit enhancement.&lt;/P&gt;&lt;P&gt;So, you should just say YES so that the line "INTERFACES IF_FCO_COEP_QUANTITY" is automatically added to your public section.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Is this step mandatory? If I click Yes, it asks to create a Transport reuquest, there is no option save as a local object.&lt;/P&gt;&lt;P&gt;Thank you &amp;amp; Regards,&lt;BR /&gt;Lucy&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 10:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454151#M1999789</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2021-09-09T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454152#M1999790</link>
      <description>&lt;P&gt;No. I just answer your several questions.&lt;/P&gt;&lt;P&gt;In your case, I would recommend that you create a BAdI implementation as you initially planned!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 11:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454152#M1999790</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T11:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454153#M1999791</link>
      <description>&lt;P&gt;Concerning your question about creating a transport request, it means that this existing class has already been assigned a transport request in the past (it's assigned a transportable package). Nothing prevents you to create a class locally, without a transport request.&lt;/P&gt;&lt;P&gt;EDIT but it's bad practice to develop locally, because you risk errors when you decide to really transport, except if you are in a sandbox system, and you will recreate everything from scratch in the dev system&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 11:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454153#M1999791</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454154#M1999792</link>
      <description>&lt;P&gt;To your question "Is this step mandatory?" Yes, it's how you can implement the method(s) of the BAdI.&lt;/P&gt;&lt;P&gt;EDIT: because you must define the custom code inside a method, you need a method definition (METHODS) with the right BAdI method parameters. How would you indicate it otherwise?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 11:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454154#M1999792</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-09T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while activating BAdI enhancement implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454155#M1999793</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;I realized my mistake, while defining the BAdI implementation initially, when I was asked to assign it to a BAdI, in the field for Class, I had provided the name of a SAP delivered demo Class, and because this Class's namespace was a SAP reserved one, the system was not allowing me to save the implementation locally.&lt;BR /&gt;I should have given a Class name starting with Z.&lt;/P&gt;&lt;P&gt;Furthermore, performing an implicit enhancement in a SAP delivered Class was another fundamental mistake, which might be causing the syntax error.&lt;/P&gt;&lt;P&gt;Now I have implemented the BAdI correctly, and no such syntax error occurred.&lt;BR /&gt;&lt;BR /&gt;Thanks for being there and guiding me.&lt;BR /&gt;Regards,&lt;BR /&gt;Lucy&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 11:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-activating-badi-enhancement-implementation/m-p/12454155#M1999793</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2021-09-09T11:57:45Z</dc:date>
    </item>
  </channel>
</rss>

