<?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: Change the Idoc segment field value while processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206565#M1910651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All 3 function modules has to be called in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_OPEN_FOR_EDIT&amp;nbsp; --&amp;gt; Open the IDOC for editing&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_CHANGE_DATA_SEGMENTS&amp;nbsp; --&amp;gt; Change the segment data&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_CLOSE_EDIT&amp;nbsp;&amp;nbsp; --&amp;gt; Close the edited IDOC&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IDOC has to be opened, changed and closed.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;So it is necessary to use EDIT function module.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 07:12:35 GMT</pubDate>
    <dc:creator>ThangaPrakash</dc:creator>
    <dc:date>2015-07-24T07:12:35Z</dc:date>
    <item>
      <title>Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206559#M1910645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Hi All, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;I am processing a Idoc with we19 ttnsaction. I am processing by inbound custom function module. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Inside that , for a particular segment i need to change the value of the field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;For example : In the&amp;nbsp; segment = 'A1BDEF'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the segment-field1 = '1000'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change it to '2000'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;I am changing the value in the Internal table which is defined in the function module tables parameter. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Even though,after processing when i check in WE02, the segment-field1 remains '1000'. Please share your ideas how can i change it exactly . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pradeep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 05:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206559#M1910645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-23T05:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206560#M1910646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the below option, where you can ope the IDOC, do changes and close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below function modules in sequence to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_OPEN_FOR_EDIT&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_CHANGE_DATA_SEGMENTS&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_CLOSE_EDIT&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Search for the where used lit of the function modules to find how it is used.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 11:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206560#M1910646</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2015-07-23T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206561#M1910647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanga Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input . I have tried the 3 function modules in sequence with the proper subrc checks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the EDI_DOCUMENT_OPEN_FOR_EDIT , i have changed the segment value and then i have called the remaining 2 function modules. After completion i have checked in WE02.&lt;/P&gt;&lt;P&gt;But still the segment field VSTEL has the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 06:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206561#M1910647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-24T06:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206562#M1910648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using COMMIT WORK after you change the segment data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC data is stored in table EDID4. Might be it is not updating this table once you edit the Idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try COMMIT WORK and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 06:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206562#M1910648</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2015-07-24T06:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206563#M1910649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanga Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot . It works now.&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;. Best solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 06:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206563#M1910649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-24T06:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206564#M1910650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do we need to call EDI_DOCUMENT_OPEN_FOR_EDIT? Is it mandatory ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206564#M1910650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-24T07:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206565#M1910651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All 3 function modules has to be called in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_OPEN_FOR_EDIT&amp;nbsp; --&amp;gt; Open the IDOC for editing&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_CHANGE_DATA_SEGMENTS&amp;nbsp; --&amp;gt; Change the segment data&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EDI_DOCUMENT_CLOSE_EDIT&amp;nbsp;&amp;nbsp; --&amp;gt; Close the edited IDOC&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IDOC has to be opened, changed and closed.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;So it is necessary to use EDIT function module.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206565#M1910651</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2015-07-24T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206566#M1910652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asking this because after &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EDI_DOCUMENT_OPEN_FOR_EDIT', &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;The idoc_data-sdata is getting changed after execution of the above fm .&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206566#M1910652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-24T07:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206567#M1910653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, it is better you can use them all in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try by removing them in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206567#M1910653</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2015-07-24T07:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Idoc segment field value while processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206568#M1910654</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;There are other way to Edit the IDoc (Data Segments). Its from WE02 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WE02,once you have idoc details on WE02 transaction, select the segment (double click segment) that you want to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then from menu-&amp;gt; Data Record -&amp;gt; Display change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit the value and then SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the value in data segments of IDoc during the processing, please check for the user exits or BADI inside the Function module and there you can write your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-idoc-segment-field-value-while-processing/m-p/11206568#M1910654</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2015-07-24T07:48:04Z</dc:date>
    </item>
  </channel>
</rss>

