<?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: Function module to copy INVOIC IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-copy-invoic-idoc/m-p/1585090#M263812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make a copy of idoc message type, you simply have to find the linked Function module of the Idoc. So for INVOIC, there would be a linked Function Module , you can copy the interface of the Function Module and build your own custom Function Module (Z function module) to attach it to the message type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the steps to your problem would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy the FM to attached mesaage type into a Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Write the functionality you require in your Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Attach the message type/ idoc type to this function module. The systematic steps to this can be simply carried out in the Transaction WEDI which is an area menu for EDI/IDOC . Depending on whether it is inbound/outbound, you can follow the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2006 14:42:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-12T14:42:13Z</dc:date>
    <item>
      <title>Function module to copy INVOIC IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-copy-invoic-idoc/m-p/1585089#M263811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of our customers use the IDOC message type INVOIC. When the IDOC are received and the proces has been started, we will like to make a copy of the IDOC with the status code 70. &lt;/P&gt;&lt;P&gt;I know this functionality exist when we change the segment data using the transaction code BD87, and I have debugged this transaction, but the "copy" functionality are developed in the program SAPLEDI5 and not in a function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a function module to handle this functionality. Hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per Larsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 14:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-copy-invoic-idoc/m-p/1585089#M263811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to copy INVOIC IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-copy-invoic-idoc/m-p/1585090#M263812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make a copy of idoc message type, you simply have to find the linked Function module of the Idoc. So for INVOIC, there would be a linked Function Module , you can copy the interface of the Function Module and build your own custom Function Module (Z function module) to attach it to the message type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the steps to your problem would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy the FM to attached mesaage type into a Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Write the functionality you require in your Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Attach the message type/ idoc type to this function module. The systematic steps to this can be simply carried out in the Transaction WEDI which is an area menu for EDI/IDOC . Depending on whether it is inbound/outbound, you can follow the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 14:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-copy-invoic-idoc/m-p/1585090#M263812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T14:42:13Z</dc:date>
    </item>
  </channel>
</rss>

