<?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: ALV data refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212513#M133907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTING - From the table that is coming back, I am sure you will be able to figure the SORTING Criteria using the FIELDNAME, SORT POS, UP (Ascending), DOWN (Descending).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you can SORT you table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT dynamic_table by (fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILTERING - This is a little complex. I am only throwing ideas here, as I have never done this myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of Filter info, the following fields will be of use for us. You need to figure out what data comes into each of these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         FIELDNAME TYPE SLIS_FIELDNAME,&lt;/P&gt;&lt;P&gt;         TABNAME TYPE SLIS_TABNAME,&lt;/P&gt;&lt;P&gt;         SELTEXT(40),&lt;/P&gt;&lt;P&gt;         VALUF(80),&lt;/P&gt;&lt;P&gt;         VALUT(80),&lt;/P&gt;&lt;P&gt;         VALUF_INT(80),&lt;/P&gt;&lt;P&gt;         VALUT_INT(80),&lt;/P&gt;&lt;P&gt;         SIGN0(1),&lt;/P&gt;&lt;P&gt;         SIGN_ICON(4),&lt;/P&gt;&lt;P&gt;         OPTIO(2),&lt;/P&gt;&lt;P&gt;         STYPE(1),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These fields are acting like SELECT OPTIONS. I can figure out SIGNO and OPTIO are, however I am not sure where are the values for upper limit and lower limit, it has to be two of VALUF and VALUT fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we figure that out, we need to apply the criteria manually, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SIGN = 'I' and OPTIO = 'EQ'.&lt;/P&gt;&lt;P&gt;  LOOP AT THE DATA TABLE WHERE (FIELDNAME) = VALUET -  ASSUMING THAT VALUET HAS THE LOWER LIMIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for the other options as well. I know its painful, but we will have to manually handle all the options of the SELECT OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 16:12:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-10T16:12:15Z</dc:date>
    <item>
      <title>ALV data refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212510#M133904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using FM : REUSE_ALV_GRID_DISPLAY to set up an ALV list.&lt;/P&gt;&lt;P&gt;I have added a button to export the data to a particular format of text as a *.txt document.&lt;/P&gt;&lt;P&gt;I use the function REUSE_ALV_GRID_LAYOUT_INFO_GET to know which fields are visible and I also get back the sort and filter criterias. &lt;/P&gt;&lt;P&gt;I now want to apply these criteria to my internal table so that I am only left with the same data as the ALV display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not found a function that applies the filter and sort types to an internal table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got an idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 15:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212510#M133904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T15:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV data refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212511#M133905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means you will have to create a internal table at run time with only those fields that have been left out after filtering, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As discussed in the previous thread, REUSE_ALV_GRID_LAYOUT_INFO_GET will give you back the fields which are still existing on the screen. Now with those field create another field catalog (say DYNAMIC_FCAT) by manually appending the data. This fieldcat will be of type LVC_T_FCAT. Once you have that field catalog, create a table dynamically using the procedure show in the blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/05/31/expand-the-list-of-columns-in-a-report-dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have a table, loop at the main data table, move the corresponding fields into the work area of the dynamic table and append that to the table. At the end of the loop you will have a separate internal table with only those fields which are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can download the table data easily.&lt;/P&gt;&lt;P&gt;Hope this solves your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 15:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212511#M133905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV data refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212512#M133906</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;I have got the part about the fields working fine, it's rather the filtering and sorting I need to apply now...&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 15:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212512#M133906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T15:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV data refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212513#M133907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTING - From the table that is coming back, I am sure you will be able to figure the SORTING Criteria using the FIELDNAME, SORT POS, UP (Ascending), DOWN (Descending).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you can SORT you table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT dynamic_table by (fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILTERING - This is a little complex. I am only throwing ideas here, as I have never done this myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of Filter info, the following fields will be of use for us. You need to figure out what data comes into each of these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         FIELDNAME TYPE SLIS_FIELDNAME,&lt;/P&gt;&lt;P&gt;         TABNAME TYPE SLIS_TABNAME,&lt;/P&gt;&lt;P&gt;         SELTEXT(40),&lt;/P&gt;&lt;P&gt;         VALUF(80),&lt;/P&gt;&lt;P&gt;         VALUT(80),&lt;/P&gt;&lt;P&gt;         VALUF_INT(80),&lt;/P&gt;&lt;P&gt;         VALUT_INT(80),&lt;/P&gt;&lt;P&gt;         SIGN0(1),&lt;/P&gt;&lt;P&gt;         SIGN_ICON(4),&lt;/P&gt;&lt;P&gt;         OPTIO(2),&lt;/P&gt;&lt;P&gt;         STYPE(1),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These fields are acting like SELECT OPTIONS. I can figure out SIGNO and OPTIO are, however I am not sure where are the values for upper limit and lower limit, it has to be two of VALUF and VALUT fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we figure that out, we need to apply the criteria manually, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SIGN = 'I' and OPTIO = 'EQ'.&lt;/P&gt;&lt;P&gt;  LOOP AT THE DATA TABLE WHERE (FIELDNAME) = VALUET -  ASSUMING THAT VALUET HAS THE LOWER LIMIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for the other options as well. I know its painful, but we will have to manually handle all the options of the SELECT OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 16:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212513#M133907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV data refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212514#M133908</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;Did you solve the issue? &lt;/P&gt;&lt;P&gt;Let me know what was the solution implemented.&lt;/P&gt;&lt;P&gt;&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>Mon, 10 Apr 2006 18:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-data-refresh/m-p/1212514#M133908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T18:24:44Z</dc:date>
    </item>
  </channel>
</rss>

