<?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 Enhancement spot with multiple implementations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470981#M2000983</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I'm trying to add some code to this enhancement spot. The code doesn't trigger and I've been reading about "switches" and "conflict switches" and how you can't have multiple implemtentations....&lt;/P&gt;
  &lt;P&gt;Can anyone help me understand what I need to do to activate my code here?&lt;/P&gt;
  &lt;P&gt;The switch framework seems interesting but I can't find anything meaningful in there.&lt;/P&gt;
  &lt;P&gt;It sounds like we can only have 1 switch active. So, if we need two active, we have to.... create a custom one and copy the code from the others??? How do you find the switches? How do you create this "conflict" switch to control which one is the "active" switch?&lt;/P&gt;
  &lt;P&gt;Thanks for any help you can offer.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM docflow_user_command                                  "#EC CALLED.
  USING
    iv_selected_item     TYPE document_flow_alv_struc
    ir_details_container TYPE REF TO cl_gui_docking_container
    ir_tree_control      TYPE REF TO cl_gui_alv_tree
  CHANGING
    cv_ucommand       TYPE syucomm
    ct_docflow        TYPE document_flow_alv_tt
    ct_listheader     TYPE docfl_t_listheader.


  STATICS: lv_details_displayed TYPE c.


  DATA: ls_listheader TYPE docfl_s_listheader.


  MOVE-CORRESPONDING iv_selected_item TO hide_info.


ENHANCEMENT-SECTION     DOCFLOW_USER_COMMAND_1 SPOTS ES_MV75FF04ALV INCLUDE BOUND .
  hide_info-vbeln = iv_selected_item-docnum.
END-ENHANCEMENT-SECTION.
*$*$-Start: DOCFLOW_USER_COMMAND_1--------------------------------------------------------------$*$*
ENHANCEMENT 1  FIN_CFIN_SDFLOW.    "active version
  IF iv_selected_item-vbeln IS INITIAL.
    hide_info-vbeln = iv_selected_item-docnum.
  ELSE.
    hide_info-vbeln = iv_selected_item-vbeln.
  ENDIF.
  IF iv_selected_item-vrkme = cl_im_fin_cfin_sd_docflow=&amp;gt;gc_vrkme_cfin.
    hide_info-logsys = cl_im_fin_cfin_sd_docflow=&amp;gt;get_logsys_cfin( ).
  ENDIF.
ENDENHANCEMENT.
ENHANCEMENT 2  OIC_MV75FF04ALV.    "active version
  IF iv_selected_item-VBTYP_N NE 'J' AND  iv_selected_item-VBTYP_N NE 'M' AND iv_selected_item-VBTYP_N NE 'N'.
    hide_info-vbeln = iv_selected_item-docnum.
  ENDIF.
ENDENHANCEMENT.
ENHANCEMENT 3  ZEI_SALESFORCE_DOCFLOW_SD.    "active version
  hide_info-vbeln = iv_selected_item-docnum.
  include ZSF_SD_DOCFLOW_USER_COMMAND.
ENDENHANCEMENT.
*$*$-End:   DOCFLOW_USER_COMMAND_1--------------------------------------------------------------$*$*
  hide_info-posnr = iv_selected_item-itemnum.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 27 Jun 2021 15:21:34 GMT</pubDate>
    <dc:creator>ray_mannion</dc:creator>
    <dc:date>2021-06-27T15:21:34Z</dc:date>
    <item>
      <title>Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470981#M2000983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I'm trying to add some code to this enhancement spot. The code doesn't trigger and I've been reading about "switches" and "conflict switches" and how you can't have multiple implemtentations....&lt;/P&gt;
  &lt;P&gt;Can anyone help me understand what I need to do to activate my code here?&lt;/P&gt;
  &lt;P&gt;The switch framework seems interesting but I can't find anything meaningful in there.&lt;/P&gt;
  &lt;P&gt;It sounds like we can only have 1 switch active. So, if we need two active, we have to.... create a custom one and copy the code from the others??? How do you find the switches? How do you create this "conflict" switch to control which one is the "active" switch?&lt;/P&gt;
  &lt;P&gt;Thanks for any help you can offer.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM docflow_user_command                                  "#EC CALLED.
  USING
    iv_selected_item     TYPE document_flow_alv_struc
    ir_details_container TYPE REF TO cl_gui_docking_container
    ir_tree_control      TYPE REF TO cl_gui_alv_tree
  CHANGING
    cv_ucommand       TYPE syucomm
    ct_docflow        TYPE document_flow_alv_tt
    ct_listheader     TYPE docfl_t_listheader.


  STATICS: lv_details_displayed TYPE c.


  DATA: ls_listheader TYPE docfl_s_listheader.


  MOVE-CORRESPONDING iv_selected_item TO hide_info.


ENHANCEMENT-SECTION     DOCFLOW_USER_COMMAND_1 SPOTS ES_MV75FF04ALV INCLUDE BOUND .
  hide_info-vbeln = iv_selected_item-docnum.
END-ENHANCEMENT-SECTION.
*$*$-Start: DOCFLOW_USER_COMMAND_1--------------------------------------------------------------$*$*
ENHANCEMENT 1  FIN_CFIN_SDFLOW.    "active version
  IF iv_selected_item-vbeln IS INITIAL.
    hide_info-vbeln = iv_selected_item-docnum.
  ELSE.
    hide_info-vbeln = iv_selected_item-vbeln.
  ENDIF.
  IF iv_selected_item-vrkme = cl_im_fin_cfin_sd_docflow=&amp;gt;gc_vrkme_cfin.
    hide_info-logsys = cl_im_fin_cfin_sd_docflow=&amp;gt;get_logsys_cfin( ).
  ENDIF.
ENDENHANCEMENT.
ENHANCEMENT 2  OIC_MV75FF04ALV.    "active version
  IF iv_selected_item-VBTYP_N NE 'J' AND  iv_selected_item-VBTYP_N NE 'M' AND iv_selected_item-VBTYP_N NE 'N'.
    hide_info-vbeln = iv_selected_item-docnum.
  ENDIF.
ENDENHANCEMENT.
ENHANCEMENT 3  ZEI_SALESFORCE_DOCFLOW_SD.    "active version
  hide_info-vbeln = iv_selected_item-docnum.
  include ZSF_SD_DOCFLOW_USER_COMMAND.
ENDENHANCEMENT.
*$*$-End:   DOCFLOW_USER_COMMAND_1--------------------------------------------------------------$*$*
  hide_info-posnr = iv_selected_item-itemnum.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Jun 2021 15:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470981#M2000983</guid>
      <dc:creator>ray_mannion</dc:creator>
      <dc:date>2021-06-27T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470982#M2000984</link>
      <description>&lt;P&gt;You say that your "code doesn't trigger", have you checked that in debug you stop at the first statement of the subroutine DOCFLOW_USER_COMMAND, and after "step by step" debug, your code is not reached? If you activated your enhancement, and you don't use a switch, and you restarted the whole program, I see no reason that your code is not called.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 17:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470982#M2000984</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-06-27T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470983#M2000985</link>
      <description>&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;There are switches assigned to the enhancement operation. So, you can go to the respective enhancement operation and find out the switches and the status whether it's active or not.&lt;/P&gt;&lt;P&gt;The below images shows available enhancement implementations for enhancement point ES_MV75FF04ALV&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1949859-enh-point.png" /&gt;&lt;/P&gt;&lt;P&gt;Let's open the enhancement implementation OIC_MV75FF04ALV and let's go to the Property tab.&lt;/P&gt;&lt;P&gt;In below image we can see the switch and the status of the implementation.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1949860-implementation.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourab &lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 18:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470983#M2000985</guid>
      <dc:creator>Gourab_Dey</dc:creator>
      <dc:date>2021-06-27T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470984#M2000986</link>
      <description>&lt;P&gt;Regarding the copy, the code inside enhancement section will be copied to the new enhancment implementation. Once you figured out the implementation which is switched on, you can copy the code from respective implementation. For example, let's say we found out the enhancement 2 active, then we can copy the code to our new implementation.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1949861-copy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourab&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 18:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470984#M2000986</guid>
      <dc:creator>Gourab_Dey</dc:creator>
      <dc:date>2021-06-27T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470985#M2000987</link>
      <description>&lt;P&gt;Thank you very much. I really appreciate you taking the time to provide such a helpful explanation.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 11:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470985#M2000987</guid>
      <dc:creator>ray_mannion</dc:creator>
      <dc:date>2021-06-29T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470986#M2000988</link>
      <description>&lt;P&gt;Welcome Ray! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 11:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470986#M2000988</guid>
      <dc:creator>Gourab_Dey</dc:creator>
      <dc:date>2021-06-29T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470987#M2000989</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;ray.mannion&lt;/SPAN&gt; If you find the reason why your enhancement implementation was not called, I'd be glad to hear it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470987#M2000989</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-06-29T13:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470988#M2000990</link>
      <description>&lt;P&gt;Well, I'm sorry to say that I still haven't figured it out.&lt;/P&gt;&lt;P&gt;I implemented this same functionality at a different client (ECC) without any issues.&lt;/P&gt;&lt;P&gt;Thank you  &lt;SPAN class="mention-scrubbed"&gt;gdey.sapabap&lt;/SPAN&gt; and  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I went through all of the enhancement implementations and the ones that have switches were all set to "Off".&lt;/P&gt;&lt;P&gt;I tried creating a new one and copying the code from the active implementation ( FIN_CFIN_SDFLOW ) - that is the one which executes when I single step into it from the statement preceeding the enhancement spot.&lt;/P&gt;&lt;P&gt;I can't change that one without an access key.&lt;/P&gt;&lt;P&gt;So, I'm still quite stuck.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2049798-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 00:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470988#M2000990</guid>
      <dc:creator>ray_mannion</dc:creator>
      <dc:date>2022-05-12T00:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement spot with multiple implementations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470989#M2000991</link>
      <description>&lt;P&gt;I read again your initial question about using a conflict switch, and I don't understand how your "answer" is related to conflict switches. If it's not, you'd better ask a new question. You should ask a clear question, what is the context (your ERP version), what you want to achieve (I guess creating an implementation on spot ES_MV75FF04ALV, but which point, which section?), what are the steps to reproduce, what do you actually get, what do you expect.&lt;/P&gt;&lt;P&gt;In my S/4HANA system, for ES_MV75FF04ALV, I have only 2 standard implementations linked to deactivated switches, so I can't try it myself, but of course in a simple case I don't have any issue when creating an implementation of a standard enhancement point/section.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 06:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-spot-with-multiple-implementations/m-p/12470989#M2000991</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-05-12T06:47:52Z</dc:date>
    </item>
  </channel>
</rss>

