<?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: Persistent class Query Ordering in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618497#M25725</link>
    <description>&lt;P&gt;attr ASCENDING attr DESCENDING ...&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_comps.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_comps.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_sort_cond.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_sort_cond.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 16:45:48 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2018-03-14T16:45:48Z</dc:date>
    <item>
      <title>Persistent class Query Ordering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618496#M25724</link>
      <description>&lt;P&gt;Hello...&lt;/P&gt;
  &lt;P&gt;I am using persistent class for custom logs.&lt;/P&gt;
  &lt;P&gt;Everything is working OK, but I need one suggestion.&lt;/P&gt;
  &lt;P&gt;My code:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA(lv_query) = cl_os_system=&amp;gt;get_query_manager( )-&amp;gt;create_query( i_filter = |APPID = PAR1 AND GUID16 = PAR2| i_ordering = ??? ).

DATA(lt_obj) = /ktr/ca_sys_logs=&amp;gt;agent-&amp;gt;if_os_ca_persistency~get_persistent_by_query(i_query = lv_queryi_par1 = _appidi_par2 = _uuid).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;For creating the QUERY I use two parameters for APPID and GUID16. and that is for query parameter i_filter. That is OK! For that query I get internal table with more rows and my problem is that I want to sort this table by one column! &lt;/P&gt;
  &lt;P&gt;I think that parameter I_ORDERING in method create_query is for that purpose....or not?&lt;/P&gt;
  &lt;P&gt;Can anyone show me an example how to use parameter I_ORDERING syntax?&lt;/P&gt;
  &lt;P&gt;Thanks in advance!&lt;/P&gt;
  &lt;P&gt;Best Regards&lt;/P&gt;
  &lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618496#M25724</guid>
      <dc:creator>robert_ktr</dc:creator>
      <dc:date>2018-03-14T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent class Query Ordering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618497#M25725</link>
      <description>&lt;P&gt;attr ASCENDING attr DESCENDING ...&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_comps.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_comps.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_sort_cond.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenos_query_sort_cond.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 16:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618497#M25725</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-03-14T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent class Query Ordering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618498#M25726</link>
      <description>&lt;P&gt;Hello Mr. Keller...&lt;/P&gt;
  &lt;P&gt;Thank you very much for solution! Now it is working!&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA(lv_query)   = lv_manager-&amp;gt;create_query( i_filter   = |APPID = PAR1 AND GUID16 = PAR2|
                                             i_ordering = |SORTID DESCENDING| ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 08:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618498#M25726</guid>
      <dc:creator>robert_ktr</dc:creator>
      <dc:date>2018-03-15T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent class Query Ordering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618499#M25727</link>
      <description>&lt;P&gt;And I added that to the query example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 09:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-class-query-ordering/m-p/618499#M25727</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-03-15T09:41:22Z</dc:date>
    </item>
  </channel>
</rss>

