<?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: Selection Screen Button for Variant selection for ALV output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651491#M1285851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Function Module "REUSE_ALV_VARIANT_F4" to get all the variants for a particular report. This returns the selected variant, which get then be passed directly to the ALV display FM. You would also want to use the FM "REUSE_ALV_VARIANT_EXISTENCE" to check a valid entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 16:19:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T16:19:44Z</dc:date>
    <item>
      <title>Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651490#M1285850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a selection screen, where in I need to have a BUTTON - when user clicks on this button - all the variants associated with the selection screen output ( output is an ALV list containing say 30 columns) -  By selecting the appropriate variant user can filter the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module - LT_VARIANTS_READ_FROM_LTDX to get the list variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on the exact steps to be followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Madan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 15:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651490#M1285850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651491#M1285851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Function Module "REUSE_ALV_VARIANT_F4" to get all the variants for a particular report. This returns the selected variant, which get then be passed directly to the ALV display FM. You would also want to use the FM "REUSE_ALV_VARIANT_EXISTENCE" to check a valid entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 16:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651491#M1285851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651492#M1285852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Using the FM "REUSE_ALV_VARIANT_F4" to get all the layouts available for the report. This returns the selected variant which can directly be used in the FM call to Display the ALV. You might also want to use the FM "REUSE_ALV_VARIANT_EXISTENCE" to check the existence of a variant input by the user for validation. Probably you do not need a separate button, it can be handled using a normal parameter on the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 17:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651492#M1285852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651493#M1285853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can please elaborate more on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Madan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 05:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651493#M1285853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T05:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651494#M1285854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of ALV are you using? The selection of the display variant is a method of the class you're using and should be automatic if you've set the parameters correctly on your first_display call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the i_save = 'A'. This will allow you to save display variants.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call table for 1st display. Table must be empty at beginning.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL METHOD g_alv_tree-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_hierarchy_header = l_hierarchy_header&lt;/P&gt;&lt;P&gt;is_variant = g_variant&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;i_default = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = t_fieldcat_batch&lt;/P&gt;&lt;P&gt;it_outtab = t_display_batch_tab. "table must be empty !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This routine is called at_selection to pull in previously saved variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form F4_FOR_VARIANT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_for_variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_variant = g_variant&lt;/P&gt;&lt;P&gt;i_save = g_save&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_exit = g_exit&lt;/P&gt;&lt;P&gt;es_variant = gx_variant&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;not_found = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 2.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;IF g_exit = space.&lt;/P&gt;&lt;P&gt;p_vari = gx_variant-variant.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " F4_FOR_VARIANT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 05:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651494#M1285854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T05:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651495#M1285855</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;Please follow this ...&lt;/P&gt;&lt;P&gt;DATA : R_VARIANT LIKE DISVARIANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_LAYOUT LIKE DISVARIANT-VARIANT.&lt;/P&gt;&lt;P&gt;INITIALIZATION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_VARIANT-report    = sy-repid.&lt;/P&gt;&lt;P&gt;  R_variant-variant   = p_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PASS r_variant to resue_alv_grid_display or set_table_for)_fist_display method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still u can use RESUE_ALV_VARIANTS_F4  within AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LAYOUT TO PROVIDE ALL THE ALYTOUS AVAIALBE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 05:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651495#M1285855</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-05-20T05:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Button for Variant selection for ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651496#M1285856</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've got the same problematic BUT I'm using ALV OO (SALV Table). I've got 1 selection subscreen and 1 SALV output field on the same dynpro.&lt;/P&gt;&lt;P&gt;So how can I display/implement the "Save Variants" and "Choose Variant" buttons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAYA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 08:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-button-for-variant-selection-for-alv-output/m-p/5651496#M1285856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T08:02:25Z</dc:date>
    </item>
  </channel>
</rss>

