<?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 CM21 user exit for undo dispatch? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm21-user-exit-for-undo-dispatch/m-p/633785#M26672</link>
    <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Looking for the suggestion/solution, in some case of CM21 after drag and drop, we got the message CY719/CY720/CY732/CY734.... etc. in planning log .&lt;/P&gt;
  &lt;P&gt; And user ask that in some specific message, for example CY719/CY720, program should display CY719/CY720 as Error message and undo "drag and drop".&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;1. We know that settings -&amp;gt; Strategy -&amp;gt; has option "Cancel dispatching due to error " but this will affected many warning message, not only those specific message .&lt;/P&gt;
  &lt;P&gt;2. There are some user exit CY* and PLAT0001:&lt;/P&gt;
  &lt;P&gt;I used PLAT0001 to get the planning log and change CY719/CY720 as Error if existed, but cannot find any way to undo dispatch.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;3. I also tried user exit CY*, for example call (SAPLCY04 form opr_object_undo ) or change parameter (SAPLCY04)EXTENDED_AFVG_TAB-FUNKTION1 as 'E' ... but no luck...&lt;/P&gt;
  &lt;P&gt;Any suggestion?? Thank you&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 08:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-06-21T08:33:46Z</dc:date>
    <item>
      <title>CM21 user exit for undo dispatch?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm21-user-exit-for-undo-dispatch/m-p/633785#M26672</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Looking for the suggestion/solution, in some case of CM21 after drag and drop, we got the message CY719/CY720/CY732/CY734.... etc. in planning log .&lt;/P&gt;
  &lt;P&gt; And user ask that in some specific message, for example CY719/CY720, program should display CY719/CY720 as Error message and undo "drag and drop".&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;1. We know that settings -&amp;gt; Strategy -&amp;gt; has option "Cancel dispatching due to error " but this will affected many warning message, not only those specific message .&lt;/P&gt;
  &lt;P&gt;2. There are some user exit CY* and PLAT0001:&lt;/P&gt;
  &lt;P&gt;I used PLAT0001 to get the planning log and change CY719/CY720 as Error if existed, but cannot find any way to undo dispatch.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;3. I also tried user exit CY*, for example call (SAPLCY04 form opr_object_undo ) or change parameter (SAPLCY04)EXTENDED_AFVG_TAB-FUNKTION1 as 'E' ... but no luck...&lt;/P&gt;
  &lt;P&gt;Any suggestion?? Thank you&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 08:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm21-user-exit-for-undo-dispatch/m-p/633785#M26672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-21T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: CM21 user exit for undo dispatch?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm21-user-exit-for-undo-dispatch/m-p/633786#M26673</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi :&lt;/P&gt;
  &lt;P&gt; Since there was no answer from community, I tried user-exit again and found a possible way - lots of coding.&lt;/P&gt;
  &lt;P&gt; Quick introduction how I do it, in case someone need it. &lt;/P&gt;
  &lt;P&gt;User exit CYPP0001.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; Loop (SAPLCY04)EXTENDED_AFVG_TAB[] =&amp;gt; need to get and compare processor/successor data one by one&lt;/P&gt;
  &lt;P&gt; 1. perform dates_check_all_opr(saplcy04) =&amp;gt; call standard form to get processor/successor table&lt;/P&gt;
  &lt;P&gt; 2. Get table of (SAPLCY04)PRED_OPR_TAB[], (SAPLCY04)SUCC_OPR_TAB[] =&amp;gt; processor/successor table&lt;/P&gt;
  &lt;P&gt; 3. Compare (SAPLCY04)EXTENDED_AFVG_TAB[] with (SAPLCY04)PRED_OPR_TAB[], (SAPLCY04)SUCC_OPR_TAB[] to simulate the situation of message 719/720. &lt;/P&gt;
  &lt;P&gt; =&amp;gt; Date/Time's comparation, refer to Program LCY04FD2 Form PREDECESSOR_CONFLICT_CHECK / SUCCESSOR_CONFLICT_CHECK&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; 4. if Step 3 existed, then undo dispatch - delete (SAPLCY04)OPR_OBJECTS_TAB[] &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 08:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm21-user-exit-for-undo-dispatch/m-p/633786#M26673</guid>
      <dc:creator>chuangmateo</dc:creator>
      <dc:date>2018-07-09T08:07:12Z</dc:date>
    </item>
  </channel>
</rss>

