<?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: delete a segment in the IDOC_DATA. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683748#M1576290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user exit EXIT_SAPLV56K_002 when SEGNAM = 'FINAL_RUN_DELVRY'. This time the Idoc is fully filled in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at idoc_data.&lt;/P&gt;&lt;P&gt;check the required condition.&lt;/P&gt;&lt;P&gt;then change the name of the segment as 'X' which you want to delete.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete idoc_data where segnam = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 10:44:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-09T10:44:43Z</dc:date>
    <item>
      <title>delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683741#M1576283</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'm sending an outbound 856(IDOC type DELVRY03).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this,&lt;/P&gt;&lt;P&gt;if the E1EDL26 - PSTYV = ZPAR, &lt;/P&gt;&lt;P&gt;I need to delete the entire information related to that particular line item meaning.. all child segments under the segment E1EDL24.. (because I don't want the material with this item category to go to the customer.)&lt;/P&gt;&lt;P&gt;but I'm confused on how to do it as.. by the time I read the E1EDL26 - PSTYV, i would already have the E1EDL24 segment in my IDOC_DATA. So I need to go back and delete it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;promise removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks for all for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 8, 2011 9:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 20:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683741#M1576283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-08T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683742#M1576284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the FM that you are using? Standard FM or Custom Function module ? Why don't you delete the content related to raw delivery data  rather than removing it from your segments? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using standard FM like IDOC_OUTPUT_DELVRY, there is a BADI BADI_V56K where you can manipulate your raw data (tab_lips), which will ensure that IDOC_DATA is not even filled...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 20:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683742#M1576284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-08T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683743#M1576285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the user exit where you check E1EDL26 - PSTYV, put follwing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at Idoc data where sname = 'E1EDL24'.&lt;/P&gt;&lt;P&gt; v_index = sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;This index will be the line number of Idoc data internal table with E1EDL24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete idoc_data index v_index .&lt;/P&gt;&lt;P&gt;do the same thing for E1EDL25 segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 05:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683743#M1576285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T05:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683744#M1576286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could do it for all the Segments above E1EDL26 in the IDOC Structure.&lt;/P&gt;&lt;P&gt;This did not work for the segments after this.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 06:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683744#M1576286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T06:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683745#M1576287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I'm using 002 exit to do this change in the function module IDOC_OUTPUT_DELVRY.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 06:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683745#M1576287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T06:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683746#M1576288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define one global variable for flag. When your condition get satisfied set this flag = X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your user-exit in for segname = E1EDL20 delete other segments when flag = X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sgname.&lt;/P&gt;&lt;P&gt;when E1EDL20&lt;/P&gt;&lt;P&gt;if flag = X.&lt;/P&gt;&lt;P&gt; loop idoc_data and delete the segments which you would like to delete.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sachin G patil on Mar 9, 2011 1:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 08:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683746#M1576288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683747#M1576289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with this option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried with delete idoc_data where segnam eq XXX&lt;/P&gt;&lt;P&gt;it removes all the segments from the IDoc_data with that segment name.&lt;/P&gt;&lt;P&gt;I only want to delete the segments under the item which has the PSTYV as ZPAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way that I can have a delete statement with index and but still check for the segment name?&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 09:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683747#M1576289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683748#M1576290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user exit EXIT_SAPLV56K_002 when SEGNAM = 'FINAL_RUN_DELVRY'. This time the Idoc is fully filled in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at idoc_data.&lt;/P&gt;&lt;P&gt;check the required condition.&lt;/P&gt;&lt;P&gt;then change the name of the segment as 'X' which you want to delete.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete idoc_data where segnam = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 10:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683748#M1576290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T10:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683749#M1576291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra, &lt;/P&gt;&lt;P&gt;In IDOC_OUTPUT_DELVRY, check out the subroutine EXIT_BADI_V56K (In this subroutine, there is  a call to BADI BADI_V56k)... you need to implement method (RAW_DATA_MANIPULATION)... You can play with the raw data (and remove the rows that you don't want from here (TAB_LIPS)... This is probably the cleanest way to do it and this BADI is provided only for that purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 15:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683749#M1576291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: delete a segment in the IDOC_DATA.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683750#M1576292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Could solve my problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 16:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-segment-in-the-idoc-data/m-p/7683750#M1576292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T16:53:06Z</dc:date>
    </item>
  </channel>
</rss>

