<?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: Sorting a TABLE within an RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196924#M129934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I export and then import the table before the function module ends, it will force the new sorting to take effect within the outgoing table?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give that a shot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2006 14:29:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-18T14:29:47Z</dc:date>
    <item>
      <title>Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196913#M129923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running up against a strange problem.  I'm trying to return data from an RFC in a table data structure.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm finding is that no matter how I sort the data in the function module, SAP resorts the data alphanumerically before it leaves the RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can get my data to -stay- in the sort order I specified using the SORT command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 21:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196913#M129923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T21:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196914#M129924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is really no one who knows how function modules sort tables by default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 13:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196914#M129924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196915#M129925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ColtsFan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the internal table declared?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Signed,&lt;/P&gt;&lt;P&gt;A Steelers Fan...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196915#M129925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196916#M129926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just tested it,  it is keeping the sort sequence in my example.  Can you post some of your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196916#M129926</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-18T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196917#M129927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.  It's in the "tables" section of the function module defined LIKE a data dictionary structure with the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR	4&lt;/P&gt;&lt;P&gt;CHAR	20&lt;/P&gt;&lt;P&gt;CHAR	20&lt;/P&gt;&lt;P&gt;CHAR	20&lt;/P&gt;&lt;P&gt;CHAR	20&lt;/P&gt;&lt;P&gt;CHAR	18&lt;/P&gt;&lt;P&gt;CHAR	20&lt;/P&gt;&lt;P&gt;CHAR	1&lt;/P&gt;&lt;P&gt;INT4	10&lt;/P&gt;&lt;P&gt;CURR	15&lt;/P&gt;&lt;P&gt;CUKY	5&lt;/P&gt;&lt;P&gt;CURR	15&lt;/P&gt;&lt;P&gt;CUKY	5&lt;/P&gt;&lt;P&gt;DEC	5&lt;/P&gt;&lt;P&gt;CHAR	8&lt;/P&gt;&lt;P&gt;CURR	15&lt;/P&gt;&lt;P&gt;CUKY	5&lt;/P&gt;&lt;P&gt;CURR	15&lt;/P&gt;&lt;P&gt;CUKY	5&lt;/P&gt;&lt;P&gt;INT4	10&lt;/P&gt;&lt;P&gt;INT4	10&lt;/P&gt;&lt;P&gt;CHAR	1&lt;/P&gt;&lt;P&gt;CURR	15&lt;/P&gt;&lt;P&gt;CUKY	5&lt;/P&gt;&lt;P&gt;CHAR	30&lt;/P&gt;&lt;P&gt;CHAR	10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I sort the table in the function module, it looks good!  But as soon as the RFC completes the data in the table seems to be re-sorted alphanumberically based on the first CHAR fields in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196917#M129927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196918#M129928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the entire internal table declaration and the code around your "forced" SORT command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196918#M129928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196919#M129929</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;Do you change anything in this table except the order? Because there is a delta managing mechanism to minimize network load during parameter and result passing. In case of internal tables, the RFC server receives the table entries, it creates a local copy of the internal table. Then only delta information is returned to the RFC client. This information is not returned to the RFC client every time a table operation occurs, however; instead, all collected delta information is passed on at once when the function returns to the client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe sorting is not defined as 'change'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich, did you fill the table inside or outside of the RFC-FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196919#M129929</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-01-18T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196920#M129930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In Function Module use &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    Export itab to memory Id 'TEST'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    Import itab from memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196920#M129930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196921#M129931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I filled the table inside the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196921#M129931</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-18T14:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196922#M129932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will importing and exporting the itab to memory do for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196922#M129932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196923#M129933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like we have tracked down to the source of this riddle. In case of field changes, it's not a problem, otherwise using import / export parameter will be a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196923#M129933</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-01-18T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196924#M129934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I export and then import the table before the function module ends, it will force the new sorting to take effect within the outgoing table?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give that a shot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196924#M129934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196925#M129935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Export will write the data to temporary ABAP memory &lt;/P&gt;&lt;P&gt;import will get the data from ABAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab structure should be same in calling and called program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196925#M129935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196926#M129936</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;I was referring the FM interface definition. Send your table as import parameter (from FM point of view) and give back the result as export parameter - then you trick out the workload optimization of SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shouldn't need to export into memory / import from memory. This can't work anyway, because you have a &amp;lt;i&amp;gt;remote&amp;lt;/i&amp;gt; function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196926#M129936</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-01-18T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a TABLE within an RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196927#M129937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for reference........but I think Christian is right.  Haven't tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003 .


data: itab type table of t001 with header line.
call function 'Z_TEST'.
import itab = itab from memory id 'ZRICHTEST'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


function z_Test.

data: itab type table of t001 with header line.

* Get data and sort it.

export itab = itab to memory id 'ZRICHTEST'.

ENdfunction.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-a-table-within-an-rfc/m-p/1196927#M129937</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-18T14:37:35Z</dc:date>
    </item>
  </channel>
</rss>

