<?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: Idoc nested segment fields update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137781#M449939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying &lt;/P&gt;&lt;P&gt;The solution given in that path does not talk about nested child segment.&lt;/P&gt;&lt;P&gt;can u suggest me any other approch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 14:33:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-13T14:33:54Z</dc:date>
    <item>
      <title>Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137779#M449937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement like this &lt;/P&gt;&lt;P&gt;I have an IDOC say DOC1 &lt;/P&gt;&lt;P&gt;DOC1 has a segment say SEG1&lt;/P&gt;&lt;P&gt;SEG1 has a child segment say CLD1 &lt;/P&gt;&lt;P&gt;CLD1 has a filed  say FLD1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to update the data in field FLD1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one  please tel me how to read data in the FLD1 and how can I update that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 13:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137779#M449937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137780#M449938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link for sample codes on how to update segment field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapedi/idoc_abap.htm#Updating%20IDoc%20data%20in%20segments" target="test_blank"&gt;http://www.erpgenie.com/sapedi/idoc_abap.htm#Updating%20IDoc%20data%20in%20segments&lt;/A&gt;&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 13:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137780#M449938</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-13T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137781#M449939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying &lt;/P&gt;&lt;P&gt;The solution given in that path does not talk about nested child segment.&lt;/P&gt;&lt;P&gt;can u suggest me any other approch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 14:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137781#M449939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T14:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137782#M449940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this example ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
describe table dedidd lines l_count.
loop at dedidd from v_index to l_count.
   read table dedidd into st_dedidd index v_index.
     if st_dedidd-segnam eq 'CLD1'.
         st_dedidd-sdata+3(15) = 'Test'." Updated values
         modify dedidd index sy-tabix from st_dedidd.
     endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps to move forward....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ch@ndra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 14:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137782#M449940</guid>
      <dc:creator>former_member187255</dc:creator>
      <dc:date>2007-04-13T14:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137783#M449941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, it is used the same approach to update parent/child segment(s). You need to loop at internal table EDIDD and find the corresponding segment. Then you move to work area, do the modification and lastly update the internal table EDIDD with new value(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow step 2 to read and update the child segment field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: wa_cld1 like CLD1.

LOOP AT itab_edidd WHERE segnam = 'CLD1'. 

  wa_cld1 = itab_edidd-sdata. 

  IF wa_cld1-field1 = &amp;lt;the condition&amp;gt;. 

    wa_cld1-field1 = &amp;lt;new value&amp;gt;. 

    itab_edidd-sdata = wa_cld1. 

    MODIFY itab_edidd.

    EXIT.
 
  ENDIF.
ENDLOOP. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 14:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137783#M449941</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-13T14:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc nested segment fields update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137784#M449942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt;thanks for giving me valuable suggestions.&lt;/P&gt;&lt;P&gt;I got the concept.&lt;/P&gt;&lt;P&gt;I m new to IDOC ....&lt;/P&gt;&lt;P&gt; it will be a great help if u can send me some study material on IDOC&lt;/P&gt;&lt;P&gt;my id is venkat_info@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 15:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-nested-segment-fields-update/m-p/2137784#M449942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T15:37:18Z</dc:date>
    </item>
  </channel>
</rss>

