<?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: LDB-Sort in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892318#M53606</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;  Sort is used only for sorting the internal table entries and not for the database tables, while using LDB, you can use Get &amp;lt;tablename/nodename&amp;gt; to get the contents of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Syntax would be like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Get &amp;lt;tabname1&amp;gt; where condition optional.&lt;/P&gt;&lt;P&gt;  Get&amp;lt;tabname2&amp;gt; .&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2005 12:40:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-08T12:40:09Z</dc:date>
    <item>
      <title>LDB-Sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892317#M53605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;After a long long time i am working on 3.1I and am using a LDB - BRF.&lt;/P&gt;&lt;P&gt;In my code i am using&lt;/P&gt;&lt;P&gt;GET BKPF Fields&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;GJAHR.&lt;/P&gt;&lt;P&gt;(at this step - can i SORT the BKPF data by BUKRS BELNR? before i go to BSEG)&lt;/P&gt;&lt;P&gt;and then use&lt;/P&gt;&lt;P&gt;GET BSEG FIELDS&lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt;Y&lt;/P&gt;&lt;P&gt;Z.&lt;/P&gt;&lt;P&gt;Please let me know the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;- PSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892317#M53605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: LDB-Sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892318#M53606</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;  Sort is used only for sorting the internal table entries and not for the database tables, while using LDB, you can use Get &amp;lt;tablename/nodename&amp;gt; to get the contents of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Syntax would be like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Get &amp;lt;tabname1&amp;gt; where condition optional.&lt;/P&gt;&lt;P&gt;  Get&amp;lt;tabname2&amp;gt; .&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892318#M53606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: LDB-Sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892319#M53607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems to be difficult, what this 'Get'-statment does.&lt;/P&gt;&lt;P&gt;At the GET statment you don't read the Table BKPF, but it is the event,when you get one (only one !) entry of table BKPF.&lt;/P&gt;&lt;P&gt;Since the fields BUKRS,BELNR,GJAHR are the primary keys of that table, a sort does not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At 'GET BSEG' you get the first position, then the next and so on to that BKPF entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be usefull to try this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET BKPF.&lt;/P&gt;&lt;P&gt;Write: / BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET BSEG.&lt;/P&gt;&lt;P&gt;WRite: / BSEG-BUKRS, BSEG-BELNR, BSEG-GJAHR, BSEG-BUZEI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And test it with a selection of ten FI-documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to sort in your program, you would use the old extract-logic. Look to the commands FIELD-GROUPS and EXTRACT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 14:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ldb-sort/m-p/892319#M53607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T14:00:21Z</dc:date>
    </item>
  </channel>
</rss>

