<?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 Flat IDOC structure on adding Zsegment to ORDERS05 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967737#M1967185</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;My requirement is to extend outbound IDOC for ORDERS05 as follow&lt;/P&gt;
  &lt;P&gt;--&amp;gt;E1EDP01 (item level)&lt;/P&gt;
  &lt;P&gt;----------&amp;gt; under E1EDP01 segment add new custom segment.&lt;/P&gt;
  &lt;P&gt;In order to achieve this, I have completed the needful steps in WE30, WE31, partner profile maintenance, etc.&lt;/P&gt;
  &lt;P&gt;I have added below logic in EXIT_SAPLVEDC_002&lt;/P&gt;
  &lt;P&gt; IF int_edidd-segnam = 'E1EDP01'. &lt;/P&gt;
  &lt;P&gt; CLEAR int_edidd.&lt;/P&gt;
  &lt;P&gt; int_edidd-segnam = 'ZEX_ORDERS05'. &lt;/P&gt;
  &lt;P&gt; int_edidd-sdata = ls_orders05. &lt;/P&gt;
  &lt;P&gt; APPEND int_edidd. &lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;ENDIF. " At this point, INT_EDIDD is appended with custom segment details.&lt;/P&gt;
  &lt;P&gt;However, when IDOC is generated, the structure is flat.&lt;/P&gt;
  &lt;P&gt;I have tried searching in the forum but none of the suggestion worked. Your help will be greatly appreciated and the right answer would be rewarded.&lt;/P&gt;
  &lt;P&gt;TIA.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 17:28:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-07-18T17:28:01Z</dc:date>
    <item>
      <title>Flat IDOC structure on adding Zsegment to ORDERS05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967737#M1967185</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;My requirement is to extend outbound IDOC for ORDERS05 as follow&lt;/P&gt;
  &lt;P&gt;--&amp;gt;E1EDP01 (item level)&lt;/P&gt;
  &lt;P&gt;----------&amp;gt; under E1EDP01 segment add new custom segment.&lt;/P&gt;
  &lt;P&gt;In order to achieve this, I have completed the needful steps in WE30, WE31, partner profile maintenance, etc.&lt;/P&gt;
  &lt;P&gt;I have added below logic in EXIT_SAPLVEDC_002&lt;/P&gt;
  &lt;P&gt; IF int_edidd-segnam = 'E1EDP01'. &lt;/P&gt;
  &lt;P&gt; CLEAR int_edidd.&lt;/P&gt;
  &lt;P&gt; int_edidd-segnam = 'ZEX_ORDERS05'. &lt;/P&gt;
  &lt;P&gt; int_edidd-sdata = ls_orders05. &lt;/P&gt;
  &lt;P&gt; APPEND int_edidd. &lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;ENDIF. " At this point, INT_EDIDD is appended with custom segment details.&lt;/P&gt;
  &lt;P&gt;However, when IDOC is generated, the structure is flat.&lt;/P&gt;
  &lt;P&gt;I have tried searching in the forum but none of the suggestion worked. Your help will be greatly appreciated and the right answer would be rewarded.&lt;/P&gt;
  &lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967737#M1967185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-18T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flat IDOC structure on adding Zsegment to ORDERS05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967738#M1967186</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are clearing the whole structure for int_edidd !!! You should clear only the field int_edidd-sdata which you are overwriting with whatever is in ls_orders05...&lt;/P&gt;&lt;P&gt;Dev.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967738#M1967186</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-07-18T19:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flat IDOC structure on adding Zsegment to ORDERS05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967739#M1967187</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I guess you will extend the IDOC using WE30.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE int_edidd-segnam.
WHEN 'E1EDP01'.
MOVE int_edidd-sdata TO e1edp01.
"your logic


MOVE e1edp01 TO int_edidd-sdata.
MODIFY int_edidd INDEX sy-tabix.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nawa&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flat-idoc-structure-on-adding-zsegment-to-orders05/m-p/11967739#M1967187</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-07-18T19:34:30Z</dc:date>
    </item>
  </channel>
</rss>

