<?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 variant help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241773#M773734</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 wish that this code will help you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :        w_gx_variant    like disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b5 with frame title text-t01.&lt;/P&gt;&lt;P&gt;*- Display variant&lt;/P&gt;&lt;P&gt;parameters: p_vari like disvariant-variant.   "obligatory.&lt;/P&gt;&lt;P&gt;selection-screen comment 47(40) varname for field p_vari.&lt;/P&gt;&lt;P&gt;selection-screen end of block b5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form pai_of_selection_screen.&lt;/P&gt;&lt;P&gt;  if not p_vari is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Vérification de l'existence de la variante saisie&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear  w_gx_variant.&lt;/P&gt;&lt;P&gt;    clear  w_gx_variant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move w_g_variant to w_gx_variant.&lt;/P&gt;&lt;P&gt;    move p_vari to w_gx_variant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'REUSE_ALV_VARIANT_EXISTENCE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_save     = w_g_save&lt;/P&gt;&lt;P&gt;         changing&lt;/P&gt;&lt;P&gt;              cs_variant = w_gx_variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_g_variant = w_gx_variant.&lt;/P&gt;&lt;P&gt;    varname = w_g_variant-text.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    varname = ''.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " pai_of_selection_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program     = w_g_repid&lt;/P&gt;&lt;P&gt;            is_layout              = t_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat            = t_fieldcat&lt;/P&gt;&lt;P&gt;            i_default              = 'X'&lt;/P&gt;&lt;P&gt;            i_save                 = w_g_save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;            is_variant             = w_g_variant&lt;/P&gt;&lt;P&gt;*/////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;            it_events              = t_events&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            es_exit_caused_by_user = t_exit&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab               = t_edition&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            program_error          = 1&lt;/P&gt;&lt;P&gt;            others                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helpful.&lt;/P&gt;&lt;P&gt;Mustapha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 15:48:19 GMT</pubDate>
    <dc:creator>MusAbaper</dc:creator>
    <dc:date>2008-01-15T15:48:19Z</dc:date>
    <item>
      <title>Alv variant help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241770#M773731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, i need to add a variant to selection screen in order to modify the layout of my alv.does anyone know how to do this .thx?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 15:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241770#M773731</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2008-01-15T15:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alv variant help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241771#M773732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as far as I remember sy-variant is a system variable which you can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 15:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241771#M773732</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-15T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alv variant help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241772#M773733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do i proceed then?thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 15:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241772#M773733</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2008-01-15T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alv variant help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241773#M773734</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 wish that this code will help you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :        w_gx_variant    like disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b5 with frame title text-t01.&lt;/P&gt;&lt;P&gt;*- Display variant&lt;/P&gt;&lt;P&gt;parameters: p_vari like disvariant-variant.   "obligatory.&lt;/P&gt;&lt;P&gt;selection-screen comment 47(40) varname for field p_vari.&lt;/P&gt;&lt;P&gt;selection-screen end of block b5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form pai_of_selection_screen.&lt;/P&gt;&lt;P&gt;  if not p_vari is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Vérification de l'existence de la variante saisie&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear  w_gx_variant.&lt;/P&gt;&lt;P&gt;    clear  w_gx_variant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move w_g_variant to w_gx_variant.&lt;/P&gt;&lt;P&gt;    move p_vari to w_gx_variant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'REUSE_ALV_VARIANT_EXISTENCE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              i_save     = w_g_save&lt;/P&gt;&lt;P&gt;         changing&lt;/P&gt;&lt;P&gt;              cs_variant = w_gx_variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_g_variant = w_gx_variant.&lt;/P&gt;&lt;P&gt;    varname = w_g_variant-text.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    varname = ''.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " pai_of_selection_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program     = w_g_repid&lt;/P&gt;&lt;P&gt;            is_layout              = t_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat            = t_fieldcat&lt;/P&gt;&lt;P&gt;            i_default              = 'X'&lt;/P&gt;&lt;P&gt;            i_save                 = w_g_save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;            is_variant             = w_g_variant&lt;/P&gt;&lt;P&gt;*/////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;            it_events              = t_events&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            es_exit_caused_by_user = t_exit&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab               = t_edition&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            program_error          = 1&lt;/P&gt;&lt;P&gt;            others                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helpful.&lt;/P&gt;&lt;P&gt;Mustapha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 15:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-help/m-p/3241773#M773734</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2008-01-15T15:48:19Z</dc:date>
    </item>
  </channel>
</rss>

