<?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 to sort an message internal table.? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192089#M1519982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your getting this dump in standard program then you have to contact SAP on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using some standard FM return message internal table in custom program then you can delete adjacent duplicates no issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 06:57:12 GMT</pubDate>
    <dc:creator>former_member206439</dc:creator>
    <dc:date>2010-08-17T06:57:12Z</dc:date>
    <item>
      <title>How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192083#M1519976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I'm looping the standard messages of SAP into an internal table.&lt;/P&gt;&lt;P&gt;The standard messages were stored in SAP internal table as below format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSGTYP	MSGID    MSGNO MSGV1 MSGV2     MSGV3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W          FB_ICRC  058       1        Company   008340&lt;/P&gt;&lt;P&gt;W          FB_ICRC  058       2        Company   008340&lt;/P&gt;&lt;P&gt;W          FB_ICRC  058       3        Company   008340&lt;/P&gt;&lt;P&gt;W          FB_ICRC  058       4        Company   008340&lt;/P&gt;&lt;P&gt;W          FB_ICRC  058       5        Company   008340&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the function module CALL FUNCTION 'FORMAT_MESSAGE' and pass the  above parameters ,to get the original messages..&lt;/P&gt;&lt;P&gt;My Issue is that i am getting the duplicate entries in the internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line         5: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         4: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         3: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         2: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         1: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         4: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         3: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         2: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         1: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         3: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         2: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         1: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         2: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;Line         1: Field Company: 008340 not valid according to restrictions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the duplicate entries which is leading to SAP  Dump because of Paging Memory ...while i'm trying to export the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to eliminate the duplicate entries in the above internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192083#M1519976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192084#M1519977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT the table based on MSGTYP MSGID MSGNO and delete the adjacent duplicates from the table by using DELETE ADJACENT DUPLICATES statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192084#M1519977</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2010-08-17T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192085#M1519978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i use the function module BAL_LOG_MSG_ADD instead of 'FORMAT_MESSAGE' to eliminate the duplicate entries?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192085#M1519978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192086#M1519979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MSG TYP, MSG ID were in SAP internal table (standard) i cant change the standard fuunctionality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192086#M1519979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192087#M1519980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said you are using 'FORMAT_MESSAGE' to display the message. So we understand there is a custom code written somewhere. This implies you've access to the internal table with the messages. The idea is to sort the table &amp;amp; delete the duplicate recs before calling 'FORMAT_MESSAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT IT_MSG.

DELETE ADJACENT DUPLICATES FROM IT_MSG COMPARING ALL FIELDS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i don't understand why you can't write the above logic in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: You can use MESSAGE ... INTO addition instead of FORMAT_MESSAGE to get the message text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192087#M1519980</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-17T06:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192088#M1519981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_msg ASSIGNING &amp;lt;fs_msg&amp;gt;.


  MESSAGE ID &amp;lt;fs_msg&amp;gt;-msgid TYPE &amp;lt;fs_msg&amp;gt;-msgty NUMBER &amp;lt;fs_msg&amp;gt;-msgno
                INTO wa_msg
                WITH &amp;lt;fs_msg&amp;gt;-msgv1 &amp;lt;fs_msg&amp;gt;-msgv2 &amp;lt;fs_msg&amp;gt;-msgv3.

  APPEND wa_msg TO it_output.

ENDLOOP.

SORT it_output ASCENDING.

DELETE ADJACENT DUPLICATES FROM it_output COMPARING ALL FIELDS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192088#M1519981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort an message internal table.?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192089#M1519982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your getting this dump in standard program then you have to contact SAP on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using some standard FM return message internal table in custom program then you can delete adjacent duplicates no issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-sort-an-message-internal-table/m-p/7192089#M1519982</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2010-08-17T06:57:12Z</dc:date>
    </item>
  </channel>
</rss>

