<?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 IDOC: message type ORDERS: sending empty segments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480950#M225020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send a idoc to the 3rd party system to inform them  that the purchase orders has been cancelled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i delete all line items and save the order, no idoc are created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do send empty segments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2006 13:52:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-25T13:52:32Z</dc:date>
    <item>
      <title>IDOC: message type ORDERS: sending empty segments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480950#M225020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send a idoc to the 3rd party system to inform them  that the purchase orders has been cancelled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i delete all line items and save the order, no idoc are created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do send empty segments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 13:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480950#M225020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC: message type ORDERS: sending empty segments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480951#M225021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IDOC_OUTPUT_ORDERS fm raises error e757 'No Items Exist' if there are no items. I think you have to copy the idoc fm and comment that error in form LESEN_BELEG of the function module and other changes to generate idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define another message output type to send idocs using a custom idoc processing module to generate idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be using process code ME10 in the partner profiles. Create a new process code, ZME10, assign a Z function module with same interface as IDOC_OUTPUT_ORDERS. In that module, read EKPO table, if there are no items, call idoc generating Z function module else, call IDOC_OUTPUT_ORDERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sridhar K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 14:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480951#M225021</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-25T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC: message type ORDERS: sending empty segments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480952#M225022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did copy the function IDOC_OUTPUT_ORDERS but when i compile the function i get errors of procedures not found and fields not known. I used se37 to copy the function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me not all includes are copied. How can i make sure that all are copied?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Aug 2006 18:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480952#M225022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-27T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC: message type ORDERS: sending empty segments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480953#M225023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In se37, when you copy the function module, check all the checkboxes and then click on copy button, it gives you a dialog box listing all the included and the right side you get to enter the 'Z' program new(to which the include should be copied) and click on copy, it works fine, after copying dont forget to activate all the includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:-&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Santosh.D&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 03:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-message-type-orders-sending-empty-segments/m-p/1480953#M225023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T03:19:02Z</dc:date>
    </item>
  </channel>
</rss>

