<?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: CM25: Sort standard table based on custom table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934225#M1333462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, let me say that I have no experience with this CM25 table and where/how it is used or displayed, but here's how I look at it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what is the real problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Don't know the user exit / BAdI to be used?&lt;/P&gt;&lt;P&gt;2. Don't know how to do the sorting?&lt;/P&gt;&lt;P&gt;3. .....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;1. This will be a matter of trying I would say and reading the documentation of the exit/BAdI.&lt;/P&gt;&lt;P&gt;2. You can do dynamic sorting of an internal table (if it is an internal table that is used before displaying it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_sort1 TYPE CHAR10 VALUE 'NAME_OF_COLUMN_FROM_ZTABLE',
           lv_sort2 TYPE CHAR10 VALUE 'NAME_OF_OTHER_COLUMN_FROM_ZTABLE'.

SORT itab BY (lv_sort1) ASCENDING (lv_sort2) DESCENDING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Jul 30, 2009 7:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 05:34:35 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2009-07-30T05:34:35Z</dc:date>
    <item>
      <title>CM25: Sort standard table based on custom table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934222#M1333459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sort the CM25 capacity table based on a ZTABLE where we will define the sequence number of each material. So when CM25 is executed the material should get sorted based on sequence number maintained in Ztable. Now the challenge is how to achieve this sorting before we display the capacity table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody has faced such scenerio please help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are few user exits available but not able to find out how to achieve the required functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jul 30, 2009 9:29 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;In future threads with meaningless subject titles will simply be deleted as you appear to be doing this intentionally&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934222#M1333459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: CM25: Sort standard table based on custom table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934223#M1333460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Raghav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Posts: 91
Registered: 11/16/04 " From 2004 to till now you still didn't know that we must always use a meaningful Subject ?
Forum Points: 2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have forgotten [Report DIsplay...!! |&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7710515"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Used Subject Lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display Heading&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALV Display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Report DIsplay...!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934223#M1333460</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-07-30T05:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: CM25: Sort standard table based on custom table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934224#M1333461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ask your BASIS Administrator and tell to them to raise the OSS note and ask the suggestion for this in Service Market Place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sankar M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934224#M1333461</guid>
      <dc:creator>p291102</dc:creator>
      <dc:date>2009-07-30T05:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: CM25: Sort standard table based on custom table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934225#M1333462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, let me say that I have no experience with this CM25 table and where/how it is used or displayed, but here's how I look at it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what is the real problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Don't know the user exit / BAdI to be used?&lt;/P&gt;&lt;P&gt;2. Don't know how to do the sorting?&lt;/P&gt;&lt;P&gt;3. .....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;1. This will be a matter of trying I would say and reading the documentation of the exit/BAdI.&lt;/P&gt;&lt;P&gt;2. You can do dynamic sorting of an internal table (if it is an internal table that is used before displaying it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_sort1 TYPE CHAR10 VALUE 'NAME_OF_COLUMN_FROM_ZTABLE',
           lv_sort2 TYPE CHAR10 VALUE 'NAME_OF_OTHER_COLUMN_FROM_ZTABLE'.

SORT itab BY (lv_sort1) ASCENDING (lv_sort2) DESCENDING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Jul 30, 2009 7:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934225#M1333462</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-07-30T05:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: CM25: Sort standard table based on custom table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934226#M1333463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cm25-sort-standard-table-based-on-custom-table/m-p/5934226#M1333463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T07:01:43Z</dc:date>
    </item>
  </channel>
</rss>

