<?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: How I can modify a sorted table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278379#M152078</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;It's very strange because you're trying to modify a table into its loop and it shouldn't have a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the index:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_LIST_2 into list_2.&lt;/P&gt;&lt;P&gt;TABIX = SY-TABIX.&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;MODIFY gt_LIST_2 FROM LIST_2 INDEX TABIX&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2006 17:50:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-10T17:50:26Z</dc:date>
    <item>
      <title>How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278378#M152077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I make a loop..in a table like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT GT_LIST_2 into list_2.&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;   ......&lt;/P&gt;&lt;P&gt;   MODIFY gt_LIST_2 FROM LIST_2.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The definition of a table I made like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  BEGIN OF LIST_2 OCCURS 0,&lt;/P&gt;&lt;P&gt;        EBELN          LIKE  EKBE-EBELN,&lt;/P&gt;&lt;P&gt;          EBELP          LIKE  EKBE-EBELP,&lt;/P&gt;&lt;P&gt;          GJAHR          LIKE  EKBE-GJAHR,&lt;/P&gt;&lt;P&gt;          BELNR          LIKE  EKBE-BELNR,&lt;/P&gt;&lt;P&gt;          BEWTP          LIKE  EKBE-BEWTP,&lt;/P&gt;&lt;P&gt;          BUDAT          LIKE  EKBE-BUDAT,&lt;/P&gt;&lt;P&gt;          MENGE          LIKE  EKBE-MENGE,&lt;/P&gt;&lt;P&gt;          WRBTR          LIKE  EKBE-WRBTR,&lt;/P&gt;&lt;P&gt;          WAERS          LIKE  EKBE-WAERS,&lt;/P&gt;&lt;P&gt;          WERKS          LIKE  EKBE-WERKS,  &lt;/P&gt;&lt;P&gt;          SHKZG          LIKE  EKBE-SHKZG,  &lt;/P&gt;&lt;P&gt;          DMBTR          LIKE  EKBE-DMBTR,  &lt;/P&gt;&lt;P&gt;       END OF LIST_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 LIKE SORTED TABLE&lt;/P&gt;&lt;P&gt;      OF list_2&lt;/P&gt;&lt;P&gt;      WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But... When the program arrive to MODIFY has a mistake... I don´t know exactly how I can modify the sorted table, can anybody tell me how I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278378#M152077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278379#M152078</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;It's very strange because you're trying to modify a table into its loop and it shouldn't have a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the index:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_LIST_2 into list_2.&lt;/P&gt;&lt;P&gt;TABIX = SY-TABIX.&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;MODIFY gt_LIST_2 FROM LIST_2 INDEX TABIX&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278379#M152078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278380#M152079</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 try with SY-INDEX but has a mistake too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What other statment can I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278380#M152079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278381#M152080</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;Excuse me: but what does it mean to have a mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember: if you use a sorted table you haven't to update the fields used to define the key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278381#M152080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278382#M152081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;  The mistake say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You tried to insert or change a line at postion 2 in the internal table "\PROGRAM=ZMMRP046_ALICIA\DATA=GT_LIST_2 " (of the kind sorted table). This violate the sort sequence of the table, wich was laid down when the table was declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give other option please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 17:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278382#M152081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T17:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278383#M152082</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 think you're tryng to update the key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have define your table in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LIST_2 OCCURS 0,&lt;/P&gt;&lt;P&gt;EBELN LIKE EKBE-EBELN,&lt;/P&gt;&lt;P&gt;EBELP LIKE EKBE-EBELP,&lt;/P&gt;&lt;P&gt;GJAHR LIKE EKBE-GJAHR,&lt;/P&gt;&lt;P&gt;BELNR LIKE EKBE-BELNR,&lt;/P&gt;&lt;P&gt;BEWTP LIKE EKBE-BEWTP,&lt;/P&gt;&lt;P&gt;BUDAT LIKE EKBE-BUDAT,&lt;/P&gt;&lt;P&gt;MENGE LIKE EKBE-MENGE,&lt;/P&gt;&lt;P&gt;WRBTR LIKE EKBE-WRBTR,&lt;/P&gt;&lt;P&gt;WAERS LIKE EKBE-WAERS,&lt;/P&gt;&lt;P&gt;WERKS LIKE EKBE-WERKS, &lt;/P&gt;&lt;P&gt;SHKZG LIKE EKBE-SHKZG, &lt;/P&gt;&lt;P&gt;DMBTR LIKE EKBE-DMBTR, &lt;/P&gt;&lt;P&gt;END OF LIST_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 LIKE SORTED TABLE&lt;/P&gt;&lt;P&gt;OF list_2&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all char fields are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use only the fields you haven't to change as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table have fields of EKBE, so only the key fields of EKBE should be used to define the key of your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE KEY EBELN EBELP GJAHR BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 18:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278383#M152082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T18:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278384#M152083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try changing this line of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA gt_list_2 
         LIKE SORTED TABLE  OF list_2
                  &amp;lt;b&amp;gt;WITH NON-UNIQUE KEY EBELN EBELP.&amp;lt;/b&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 18:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278384#M152083</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-10T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278385#M152084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try with the definition of:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LIST_2 OCCURS 0,&lt;/P&gt;&lt;P&gt;EBELN LIKE EKBE-EBELN,&lt;/P&gt;&lt;P&gt;EBELP LIKE EKBE-EBELP,&lt;/P&gt;&lt;P&gt;GJAHR LIKE EKBE-GJAHR,&lt;/P&gt;&lt;P&gt;BELNR LIKE EKBE-BELNR,&lt;/P&gt;&lt;P&gt;BEWTP LIKE EKBE-BEWTP,&lt;/P&gt;&lt;P&gt;BUDAT LIKE EKBE-BUDAT,&lt;/P&gt;&lt;P&gt;MENGE LIKE EKBE-MENGE,&lt;/P&gt;&lt;P&gt;WRBTR LIKE EKBE-WRBTR,&lt;/P&gt;&lt;P&gt;WAERS LIKE EKBE-WAERS,&lt;/P&gt;&lt;P&gt;WERKS LIKE EKBE-WERKS, &lt;/P&gt;&lt;P&gt;SHKZG LIKE EKBE-SHKZG, &lt;/P&gt;&lt;P&gt;DMBTR LIKE EKBE-DMBTR, &lt;/P&gt;&lt;P&gt;END OF LIST_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 LIKE SORTED TABLE&lt;/P&gt;&lt;P&gt;OF list_2&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but give a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 &lt;/P&gt;&lt;P&gt;         LIKE SORTED TABLE  OF list_2&lt;/P&gt;&lt;P&gt;                  WITH NON-UNIQUE KEY EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the error:&lt;/P&gt;&lt;P&gt;   the error that I told you but in position 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to especify the fields that I need to modify??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 19:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278385#M152084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T19:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278386#M152085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will there be any case where there will be more than one record for a purchase order/item combonation, if not, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA gt_list_2 
        LIKE SORTED TABLE OF list_2
         &amp;lt;b&amp;gt;       WITH UNIQUE KEY EBELN EBELP.&amp;lt;/b&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make it a unique key.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 19:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278386#M152085</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-10T19:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278387#M152086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk these examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb37b2358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb37b2358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 19:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278387#M152086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T19:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How I can modify a sorted table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278388#M152087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_list_2 LIKE SORTED TABLE&lt;/P&gt;&lt;P&gt;      OF list_2&lt;/P&gt;&lt;P&gt;      WITH UNIQUE KEY mandt ebeln ebelp zekkn vgabe gjahr belnr buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the program with most than 12 rows...and its seem that will be ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have other problem with more rows..I will told you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 20:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-can-modify-a-sorted-table/m-p/1278388#M152087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T20:13:07Z</dc:date>
    </item>
  </channel>
</rss>

