<?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 internel table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873731#M1139286</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;If you want to update it_ekpo u need to use the INDEX option, because the statament MODIFY is not in a LOOP of IT_EKPO table, so the system can't know which record has to be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_ekko into wa_ekko.
  read table it_ekpo into wa_ekpo with key ebeln = wa_ekko-ebeln.
  if sy-subrc = 0.
*   wa_ekpo-ebeln = wa_ekko-ebeln.
   wa_ekpo-bedat = wa_ekko-bedat.
   wa_ekpo-reswk = wa_ekko-reswk. 
*   modify it_ekpo from wa_ekpo.
   modify it_ekpo from wa_ekpo index sy-tabix. &amp;lt;-----------------------------
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2008 14:52:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-10T14:52:58Z</dc:date>
    <item>
      <title>modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873730#M1139285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;                   My code is Below. my requirement is all the work area fields are modify comparing ebeln.&lt;/P&gt;&lt;P&gt;but i am use append duplicates entris allowed.only possible to modify.&lt;/P&gt;&lt;P&gt;                      All the work area is filled.but when debugger is execute modify statement should be short dump error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt; read table it_ekpo into wa_ekpo with key ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; wa_ekpo-ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt; wa_ekpo-bedat = wa_ekko-bedat.&lt;/P&gt;&lt;P&gt; wa_ekpo-reswk = wa_ekko-reswk.&lt;/P&gt;&lt;P&gt; modify  it_ekpo from wa_ekpo.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;                Plz solved it.how to use modify statement is my code.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 14:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873730#M1139285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873731#M1139286</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;If you want to update it_ekpo u need to use the INDEX option, because the statament MODIFY is not in a LOOP of IT_EKPO table, so the system can't know which record has to be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_ekko into wa_ekko.
  read table it_ekpo into wa_ekpo with key ebeln = wa_ekko-ebeln.
  if sy-subrc = 0.
*   wa_ekpo-ebeln = wa_ekko-ebeln.
   wa_ekpo-bedat = wa_ekko-bedat.
   wa_ekpo-reswk = wa_ekko-reswk. 
*   modify it_ekpo from wa_ekpo.
   modify it_ekpo from wa_ekpo index sy-tabix. &amp;lt;-----------------------------
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 14:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873731#M1139286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T14:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873732#M1139287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PARAMETERS p_carrid TYPE scarr-carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA scarr_tab TYPE SORTED TABLE OF scarr &lt;/P&gt;&lt;P&gt;               WITH UNIQUE KEY carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: idx      TYPE sy-tabix, &lt;/P&gt;&lt;P&gt;      scarr_wa TYPE scarr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;       FROM scarr &lt;/P&gt;&lt;P&gt;       INTO TABLE scarr_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE scarr_tab &lt;/P&gt;&lt;P&gt;     WITH TABLE KEY carrid   = p_carrid &lt;/P&gt;&lt;P&gt;     TRANSPORTING NO FIELDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx = sy-tabix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scarr_wa-currcode = 'EUR'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY scarr_tab INDEX idx FROM scarr_wa &lt;/P&gt;&lt;P&gt;       TRANSPORTING currcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;P.S.Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 14:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873732#M1139287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873733#M1139288</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;&lt;/P&gt;&lt;P&gt;data : it_ekko type sorted table of Unique-KEY ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;read table it_ekpo into wa_ekpo with key ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_ekpo-ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;wa_ekpo-bedat = wa_ekko-bedat.&lt;/P&gt;&lt;P&gt;wa_ekpo-reswk = wa_ekko-reswk.&lt;/P&gt;&lt;P&gt;modify it_ekpo from wa_ekpo.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it will solve u r pbm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 14:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873733#M1139288</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2008-12-10T14:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873734#M1139289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EKPO is item level data.&lt;/P&gt;&lt;P&gt;There could be duplicate entries being created for the same ekko-ebeln. Hence the short dump.&lt;/P&gt;&lt;P&gt;Keep POSNR too in ekpo if you dont have it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 15:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873734#M1139289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873735#M1139290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 15:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873735#M1139290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T15:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: modify internel table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873736#M1139291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;gt;                    My code is Below. my requirement is all the work area fields are modify comparing ebeln.&lt;/P&gt;&lt;P&gt;&amp;gt; but i am use append duplicates entris allowed.only possible to modify.&lt;/P&gt;&lt;P&gt;&amp;gt;                       All the work area is filled.but when debugger is execute modify statement should be short dump error.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; loop at it_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;&amp;gt;  read table it_ekpo into wa_ekpo with key ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&amp;gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;gt;  wa_ekpo-ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&amp;gt;  wa_ekpo-bedat = wa_ekko-bedat.&lt;/P&gt;&lt;P&gt;&amp;gt;  wa_ekpo-reswk = wa_ekko-reswk.&lt;/P&gt;&lt;P&gt;&amp;gt;  modify  it_ekpo from wa_ekpo.&lt;/P&gt;&lt;P&gt;&amp;gt;  endif.&lt;/P&gt;&lt;P&gt;&amp;gt;  endloop.&lt;/P&gt;&lt;P&gt;&amp;gt;                 Plz solved it.how to use modify statement is my code.&lt;/P&gt;&lt;P&gt;&amp;gt; regards,&lt;/P&gt;&lt;P&gt;&amp;gt; raj.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Modify  it_ekpo from wa_ekpo &lt;STRONG&gt;index&lt;/STRONG&gt; and &lt;STRONG&gt;transporting&lt;/STRONG&gt; the fileds which you require .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 15:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internel-table/m-p/4873736#M1139291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T15:03:45Z</dc:date>
    </item>
  </channel>
</rss>

