<?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: Modify field from idocs segment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948370#M1335755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is standard function module then you need to find some exit which is called before IDOC generation were you can modify &lt;/P&gt;&lt;P&gt;IDOC fields. In this case you need to locate correct exit and create enhancement project in CMOD transaction and then you &lt;/P&gt;&lt;P&gt;can write code in include provided for that exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is Z program then you can access IDOC just like any other internal table and modify it's content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2009 08:21:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-23T08:21:16Z</dc:date>
    <item>
      <title>Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948366#M1335751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am new with Idocs and i have to change 2 fields from a segment in my idoc.Is this possible.If yes,how can they be modified?&lt;/P&gt;&lt;P&gt;Also i tried to place a break-point in my FM that generates the idoc but the debugger does not stop in my FM,eventhough the idoc is generated with succes.Help please. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948366#M1335751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T08:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948367#M1335752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have to change the datas of the segment or needs to change the segment defenition?... Whats the Idoc type  its inbound or outbound?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948367#M1335752</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2009-07-23T08:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948368#M1335753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is type 2 Inbound and i have to change the segments definition,not the content of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948368#M1335753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T08:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948369#M1335754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cant modify the std segment, but I hope yours is custom segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE31--&amp;gt; Segment name --&amp;gt; Add Version then you can modify the segment defenition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948369#M1335754</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2009-07-23T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948370#M1335755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is standard function module then you need to find some exit which is called before IDOC generation were you can modify &lt;/P&gt;&lt;P&gt;IDOC fields. In this case you need to locate correct exit and create enhancement project in CMOD transaction and then you &lt;/P&gt;&lt;P&gt;can write code in include provided for that exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is Z program then you can access IDOC just like any other internal table and modify it's content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948370#M1335755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948371#M1335756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello  Seba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I though you want to change data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For changing segment if it is standard you can create new zsegment in WE31 and create extension of standard IDoc in WE30 and assign newly created zsegment to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948371#M1335756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify field from idocs segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948372#M1335757</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;Creating Custom IDoc type and Message type&lt;/P&gt;&lt;P&gt;All the objects created should be present on both source as well as target system(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create segments - Transaction WE31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a segment ZRZSEG1 &lt;/P&gt;&lt;P&gt;Add all fields of table ZCUSTOMERS to it &lt;/P&gt;&lt;P&gt;Save the segment &lt;/P&gt;&lt;P&gt;Release it using the menu path Edit -&amp;gt; Set Release &lt;/P&gt;&lt;P&gt;Similarly create two more segments given below &lt;/P&gt;&lt;P&gt;Seg. ZRZSEG2 - to hold all fields of table ZSOHEADERS &lt;/P&gt;&lt;P&gt;Seg. ZRZSEG3 - to hold all fields of table ZSOITEMS &lt;/P&gt;&lt;P&gt;2. Create Basic IDoc type - Transaction WE30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Basic type ZRZORDER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the created segments in the hierarchy shown &lt;/P&gt;&lt;P&gt;Maintain attributes for each of the segments &lt;/P&gt;&lt;P&gt;Save the object and go back &lt;/P&gt;&lt;P&gt;Release the object using the menu path Edit -&amp;gt; Set Release &lt;/P&gt;&lt;P&gt;3. Create/Assign Message type - Transactions WE81/WE82&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to WE81 &lt;/P&gt;&lt;P&gt;Create a new Message type ZRZSO_MT &lt;/P&gt;&lt;P&gt;Save the object &lt;/P&gt;&lt;P&gt;Go to WE82 and create new entry &lt;/P&gt;&lt;P&gt;Assign the message type ZRZSO_MT to the basic type ZRZORDER &lt;/P&gt;&lt;P&gt;Also specify the Release Version &lt;/P&gt;&lt;P&gt;Save the object &lt;/P&gt;&lt;P&gt;Thus we have defined the IDoc structure which will hold the data to be transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Refer Following Link of IDOCS,&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/ALE+IDOCS" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/ALE+IDOCS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/ALE%2CIDOC" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/ALE%2CIDOC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Debugging IDOC.&lt;/P&gt;&lt;P&gt;Execute transaction WE19 , in Existing Idoc give the Idoc number and Execute it will take you to another screen. In this press the Inbound Function Module tab , Give the Function Module and check the check box Call in Debugging Mode , and process In ForeGround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;ShreeMohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;\ShreeMohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-field-from-idocs-segment/m-p/5948372#M1335757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T08:51:56Z</dc:date>
    </item>
  </channel>
</rss>

