<?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 Wrong sort in SM30 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184858#M126872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a maintenance dialog view for a Z*-table. In the PBO of the created screen I have added a module (before the LOOP AT EXTRACT WITH CONTROL) in which I sort the selected data. Instead of a sort by the key-fields the customer wants a sort on two other (non-key) fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE sort_extract_zjghost OUTPUT.
*
  SORT extract BY TABLE_LINE+13(3)
                  TABLE_LINE+16(2)
                  TABLE_LINE+3(10).
*
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Development and QA environment it is working fine. But in the Production environment the sort is performed on different parts of the line. Instead of the 'fields' mentioned above the sort is done on the 'fields' TABLE_LINE&lt;EM&gt;10(3), TABLE_LINE&lt;/EM&gt;13(2) and TABLE_LINE+0(10).&lt;/P&gt;&lt;P&gt;The tableline has no structure but contains the fields client(CLNT3), kunnr (CHAR10), ritnr (CHAR3), volg (CHAR2) and some extra fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me why there is a difference between Development/QA and the Production environment when sorting the data? I checked the transports and they are OK.&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;Arjan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2006 09:37:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-17T09:37:52Z</dc:date>
    <item>
      <title>Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184858#M126872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a maintenance dialog view for a Z*-table. In the PBO of the created screen I have added a module (before the LOOP AT EXTRACT WITH CONTROL) in which I sort the selected data. Instead of a sort by the key-fields the customer wants a sort on two other (non-key) fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE sort_extract_zjghost OUTPUT.
*
  SORT extract BY TABLE_LINE+13(3)
                  TABLE_LINE+16(2)
                  TABLE_LINE+3(10).
*
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Development and QA environment it is working fine. But in the Production environment the sort is performed on different parts of the line. Instead of the 'fields' mentioned above the sort is done on the 'fields' TABLE_LINE&lt;EM&gt;10(3), TABLE_LINE&lt;/EM&gt;13(2) and TABLE_LINE+0(10).&lt;/P&gt;&lt;P&gt;The tableline has no structure but contains the fields client(CLNT3), kunnr (CHAR10), ritnr (CHAR3), volg (CHAR2) and some extra fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me why there is a difference between Development/QA and the Production environment when sorting the data? I checked the transports and they are OK.&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;Arjan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184858#M126872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T09:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184859#M126873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arjan,&lt;/P&gt;&lt;P&gt; are you sure your client field is maintained with some values in the prod environment?&lt;/P&gt;&lt;P&gt;Is there any possibility that the mandt field has no values and the table_line is condensed and that is the reason for this behavior??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184859#M126873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184860#M126874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look in debugging mode the lines contain the same fields. So both Development/QA and Production contains data for client, kunnr, ritnr, volg and so on.&lt;/P&gt;&lt;P&gt;The code, the data, everything looks the same in debugging. The only thing that is different is the result of the SORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184860#M126874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184861#M126875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your exact structures, but I seems that your sorting routine doesn't handle the MANDT-Field correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to copy your extract table to a structured table, do sorting and copy back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing: Use the events within the table maintainance. Go to se11 -&amp;gt; Utilities -&amp;gt; Table Maintenance Generator -&amp;gt; Environment -&amp;gt; Modification -&amp;gt; Events. There you can define specific code for the different states in the dialog. Your solution to modify your created dynpro, is not the preferred option, because you have a lot more effort to maintain your dialogs (Think only about new fields in the screen). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184861#M126875</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2006-01-17T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184862#M126876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hendrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the &amp;lt;i&amp;gt;'events within the table maintenance'&amp;lt;/i&amp;gt; as you suggested but no event is suitable for my purpose. I placed a break-point in my form and only two events reached it. But in both cases no data was selected yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaves the &amp;lt;i&amp;gt;'copy extract table to a structured table'&amp;lt;/i&amp;gt; suggestion. I can program it that way but the only place to test it, is the Production environment.&lt;/P&gt;&lt;P&gt;And on the other hand... at the moment I've got a solution which is working perfectly except in the Production environment. I prefer to put some time in finding the explanation why this is so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 10:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184862#M126876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T10:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184863#M126877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Arjan,&lt;/P&gt;&lt;P&gt;  Do you see the same code that you see in DEV and Qual systems in Production environment also??&lt;/P&gt;&lt;P&gt;If you don't see the code that way, there may be some problem in transporting the object from QA to Prod or something like that.&lt;/P&gt;&lt;P&gt;Or possibly there is another request with a primitive code which you have developed in DEv/QA environments, where the sort os actually done on done on the 'fields' TABLE_LINE&lt;EM&gt;10(3), TABLE_LINE&lt;/EM&gt;13(2) and TABLE_LINE+0(10).&lt;/P&gt;&lt;P&gt;instead of the original one.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184863#M126877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184864#M126878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I see the same code. A remote compare does also not give any differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arjan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184864#M126878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sort in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184865#M126879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arjan Hoes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Goto SE11 -&amp;gt; Give Ur table Name -&amp;gt; Change &lt;/P&gt;&lt;P&gt;2. Now Goto Menu Utilities -&amp;gt; Table Maintanance Generator -&amp;gt; Change&lt;/P&gt;&lt;P&gt;3. Check Create Maintanance Screen -&amp;gt; ok.&lt;/P&gt;&lt;P&gt;4. Check Overview Of Screen -&amp;gt; ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This steps recreate the maintanance screen. Now, transport newly created request to Production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh Panchal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward points if it solve ur problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-sort-in-sm30/m-p/1184865#M126879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T11:52:12Z</dc:date>
    </item>
  </channel>
</rss>

