<?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: field sorting problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517570#M1068162</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 sort the values while inserting into the z-table means, you want to &lt;/P&gt;&lt;P&gt;to create a TMG for the table and you can use the events to sort the values before &lt;/P&gt;&lt;P&gt;inserting into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Utilities -&amp;gt; Table Maintenance Generator&lt;/P&gt;&lt;P&gt; and then Environment -&amp;gt; Modification -&amp;gt; Events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bofore inserting and while accessing the values use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab ASCENDING BY field_name.&lt;/P&gt;&lt;P&gt;SORT itab DESCENDING BY field_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Sep 2008 05:22:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-20T05:22:53Z</dc:date>
    <item>
      <title>field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517564#M1068156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a one vendor field in z table but this vendor field is data sort wrongly pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 04:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517564#M1068156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517565#M1068157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SORT itab BY lifnr -- &amp;gt; if you want to sort ascending&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to sort by dscending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT itab DSCENDING BY lifnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Z tables it will get stored in the order how and when the tables gets updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517565#M1068157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517566#M1068158</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;you have to put your fields in an i_tab then use&lt;/P&gt;&lt;P&gt;sort tablename by ( i_tab ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS dbtab TYPE c LENGTH 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS columns FOR dbtab NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: otab TYPE abap_sortorder_tab,&lt;/P&gt;&lt;P&gt;oline TYPE abap_sortorder,&lt;/P&gt;&lt;P&gt;dref TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;column&amp;gt; LIKE LINE OF columns,&lt;/P&gt;&lt;P&gt;&amp;lt;itab&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CREATE DATA dref TYPE STANDARD TABLE OF (dbtab).&lt;/P&gt;&lt;P&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;CATCH cx_sy_create_data_error.&lt;/P&gt;&lt;P&gt;MESSAGE 'Wrong data type!' TYPE 'I' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM (dbtab)&lt;/P&gt;&lt;P&gt;INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;CATCH cx_sy_dynamic_osql_semantics.&lt;/P&gt;&lt;P&gt;MESSAGE 'Wrong database table!' TYPE 'I' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT columns ASSIGNING &amp;lt;column&amp;gt;.&lt;/P&gt;&lt;P&gt;oline-name = &amp;lt;column&amp;gt;-low.&lt;/P&gt;&lt;P&gt;APPEND oline TO otab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;SORT &amp;lt;itab&amp;gt; BY (otab).&lt;/P&gt;&lt;P&gt;CATCH cx_sy_dyn_table_ill_comp_val.&lt;/P&gt;&lt;P&gt;MESSAGE 'Wrong column name!' TYPE 'I' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517566#M1068158</guid>
      <dc:creator>satsrockford</dc:creator>
      <dc:date>2008-09-20T05:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517567#M1068159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;z table updated Correctly , but vender field showing worng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help me sir.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: siva kumar on Sep 20, 2008 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517567#M1068159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517568#M1068160</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;what do u mean by vendor field showing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r updating data correctly in to the ztable then u will not be having any problem with sorting the ztable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517568#M1068160</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-09-20T05:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517569#M1068161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose xxxx vendor update in 15 records in z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I give the same vendor in selection screen it showing 10 records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatu2019s the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517569#M1068161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517570#M1068162</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 sort the values while inserting into the z-table means, you want to &lt;/P&gt;&lt;P&gt;to create a TMG for the table and you can use the events to sort the values before &lt;/P&gt;&lt;P&gt;inserting into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Utilities -&amp;gt; Table Maintenance Generator&lt;/P&gt;&lt;P&gt; and then Environment -&amp;gt; Modification -&amp;gt; Events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bofore inserting and while accessing the values use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab ASCENDING BY field_name.&lt;/P&gt;&lt;P&gt;SORT itab DESCENDING BY field_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517570#M1068162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517571#M1068163</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;u just look for the other conditions tht u have mentioned in ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r retriving data only from tht table using only vendor condition thn u shd get all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check ur code properly or post it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517571#M1068163</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-09-20T05:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: field sorting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517572#M1068164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many records update in z table itu2019s not new table, itu2019s already created table I insert a vendor filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that vendor filed is problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 05:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-sorting-problem/m-p/4517572#M1068164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T05:34:43Z</dc:date>
    </item>
  </channel>
</rss>

