<?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: Planned Order Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500848#M565088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock the planned order : 'ENQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;Unlock the planned order :'DEQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i_plaf like plaf occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from plaf into table i_plaf&lt;/P&gt;&lt;P&gt;                  PLNUM = '0000999923'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_plaf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum          = i_plaf-plnum&lt;/P&gt;&lt;P&gt;              _scope         = '3'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              foreign_lock   = 2&lt;/P&gt;&lt;P&gt;              system_failure = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;P&gt;   message &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear : w_cm61w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get MRP control indicator at plant level&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'MD_READ_PLANT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              ewerks = i_plaf-plwrk&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              icm61w = w_cm61w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'LOESCHEN_PLANAUFTRAG'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              ecm61w              = w_cm61w&lt;/P&gt;&lt;P&gt;              eplaf               = i_plaf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              undefined_interface = 1&lt;/P&gt;&lt;P&gt;              OTHERS              = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MOVE: i_plaf-plnum TO i_error-order,&lt;/P&gt;&lt;P&gt;            text-012     TO i_error-messg.&lt;/P&gt;&lt;P&gt;      i_error-val = 'E'.&lt;/P&gt;&lt;P&gt;      APPEND i_error.&lt;/P&gt;&lt;P&gt;      CLEAR  i_error.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum = i_plaf-plnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 16:00:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T16:00:08Z</dc:date>
    <item>
      <title>Planned Order Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500846#M565086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Is there any function module which checks the locking of a planned order?&lt;/P&gt;&lt;P&gt;I want to check whether a planned order is already being locked by some other user while I am processing the same. Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 15:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500846#M565086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Order Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500847#M565087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;go to following link.it will help u:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/advancedsearch?query=planned%20order&amp;amp;cat=sdn_all" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/advancedsearch?query=planned%20order&amp;amp;cat=sdn_all&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Srikanta Gope&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 15:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500847#M565087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Order Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500848#M565088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock the planned order : 'ENQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;Unlock the planned order :'DEQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i_plaf like plaf occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from plaf into table i_plaf&lt;/P&gt;&lt;P&gt;                  PLNUM = '0000999923'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_plaf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum          = i_plaf-plnum&lt;/P&gt;&lt;P&gt;              _scope         = '3'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              foreign_lock   = 2&lt;/P&gt;&lt;P&gt;              system_failure = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;P&gt;   message &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear : w_cm61w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get MRP control indicator at plant level&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'MD_READ_PLANT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              ewerks = i_plaf-plwrk&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              icm61w = w_cm61w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'LOESCHEN_PLANAUFTRAG'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              ecm61w              = w_cm61w&lt;/P&gt;&lt;P&gt;              eplaf               = i_plaf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              undefined_interface = 1&lt;/P&gt;&lt;P&gt;              OTHERS              = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MOVE: i_plaf-plnum TO i_error-order,&lt;/P&gt;&lt;P&gt;            text-012     TO i_error-messg.&lt;/P&gt;&lt;P&gt;      i_error-val = 'E'.&lt;/P&gt;&lt;P&gt;      APPEND i_error.&lt;/P&gt;&lt;P&gt;      CLEAR  i_error.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock planned order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_EMPLAFE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              plnum = i_plaf-plnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 16:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-order-check/m-p/2500848#M565088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T16:00:08Z</dc:date>
    </item>
  </channel>
</rss>

