<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746438#M1302471</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;We can't display the variants wrt user inputs on selection screen.&lt;/P&gt;&lt;P&gt;Here user should select the correct variant to run corresponding option, where we can maintain th eshort text also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 08:55:27 GMT</pubDate>
    <dc:creator>naveen_inuganti2</dc:creator>
    <dc:date>2009-05-26T08:55:27Z</dc:date>
    <item>
      <title>ALV Variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746436#M1302469</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;&lt;/P&gt;&lt;P&gt;I'm developing a ALV report where in i've two radio buttons based on which the report output varies.&lt;/P&gt;&lt;P&gt;Now for each i've saved two variant.&lt;/P&gt;&lt;P&gt;I've a variant option also on my selection screen.&lt;/P&gt;&lt;P&gt;When 1st radio button is clicked in the F4 help it is showing both the variants which are  saved. I need to show a variant related to the report output of the radio button. &lt;/P&gt;&lt;P&gt;Is there any way to differentiate, where  in i can pass an extra field while saving the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746436#M1302469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T08:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746437#M1302470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well actually the variant saves which radio button is checked, so you end up getting a snake here biting its own edge when trying to do what you plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No its not possible to differentiate while saving the variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746437#M1302470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T08:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746438#M1302471</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;We can't display the variants wrt user inputs on selection screen.&lt;/P&gt;&lt;P&gt;Here user should select the correct variant to run corresponding option, where we can maintain th eshort text also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746438#M1302471</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-05-26T08:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746439#M1302472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;I hope this ill help u&lt;/P&gt;&lt;P&gt;TABLES : sflight.&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;**INTERNAL TABLE DECLARTION&lt;/P&gt;&lt;P&gt;DATA : wa_sflight TYPE sflight,&lt;/P&gt;&lt;P&gt;       it_sflight TYPE TABLE OF sflight.&lt;/P&gt;&lt;P&gt;**DATA DECLARTION&lt;/P&gt;&lt;P&gt;DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      gd_layout    TYPE slis_layout_alv,&lt;/P&gt;&lt;P&gt;      gd_repid     LIKE sy-repid,&lt;/P&gt;&lt;P&gt;      g_save TYPE c VALUE 'X',&lt;/P&gt;&lt;P&gt;      g_variant TYPE disvariant,&lt;/P&gt;&lt;P&gt;      gx_variant TYPE disvariant,&lt;/P&gt;&lt;P&gt;      g_exit TYPE c,&lt;/P&gt;&lt;P&gt;      ispfli TYPE TABLE OF spfli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To understand the importance of the following parameter, click here.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**SELECTION SCREEN DETAILS&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002 .&lt;/P&gt;&lt;P&gt;PARAMETERS: variant LIKE disvariant-variant DEFAULT '/DEFAULT'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;**GETTING DEFAULT VARIANT&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  gx_variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR variant.&lt;/P&gt;&lt;P&gt;  DATA: ls_layout TYPE salv_s_layout_info,&lt;/P&gt;&lt;P&gt;         ls_key    TYPE salv_s_layout_key.&lt;/P&gt;&lt;P&gt;  DATA :i_restrict TYPE salv_de_layout_restriction.&lt;/P&gt;&lt;P&gt;  ls_key-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_layout = cl_salv_layout_service=&amp;gt;f4_layouts(&lt;/P&gt;&lt;P&gt;   s_key    = ls_key&lt;/P&gt;&lt;P&gt;   restrict = i_restrict ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  variant = ls_layout-layout.&lt;/P&gt;&lt;P&gt;  g_variant-report   = ls_key-report.&lt;/P&gt;&lt;P&gt;  g_variant-username = sy-uname.&lt;/P&gt;&lt;P&gt;  g_variant-variant = variant.&lt;/P&gt;&lt;P&gt;**PERFORM DECLARATIONS&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM data_retrivel.&lt;/P&gt;&lt;P&gt;  PERFORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;  PERFORM display_alv_report.&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  BUILD_FIELDCATALOG&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 build_fieldcatalog .&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'CARRID'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Airline Code'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'CONNID'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Flight Connection Number'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'FLDATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Flight date'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'PRICE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m   = 'Airfare'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  fieldcatalog-outputlen   = 20.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR  fieldcatalog.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;&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  DISPLAY_ALV_REPORT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 display_alv_report .&lt;/P&gt;&lt;P&gt;  gd_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&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      = gd_repid&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page  = 'TOP-OF-PAGE'  "see FORM&lt;/P&gt;&lt;P&gt;      i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;      i_save                  = 'X'&lt;/P&gt;&lt;P&gt;      is_variant              = g_variant&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                = it_sflight&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;" DISPLAY_ALV_REPORT&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  DATA_RETRIVEL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 data_retrivel .&lt;/P&gt;&lt;P&gt;  SELECT * FROM sflight INTO TABLE it_sflight.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " DATA_RETRIVEL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form  TOP-OF-PAGE                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Report Header                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 top-of-page.&lt;/P&gt;&lt;P&gt;*ALV Header declarations&lt;/P&gt;&lt;P&gt;  DATA: t_header TYPE slis_t_listheader,&lt;/P&gt;&lt;P&gt;        wa_header TYPE slis_listheader,&lt;/P&gt;&lt;P&gt;        t_line LIKE wa_header-info,&lt;/P&gt;&lt;P&gt;        ld_lines TYPE i,&lt;/P&gt;&lt;P&gt;        ld_linesc(10) TYPE c.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_header-typ  = 'H'.&lt;/P&gt;&lt;P&gt;  wa_header-info = 'SFLIGHT Table Report'.&lt;/P&gt;&lt;P&gt;  APPEND wa_header TO t_header.&lt;/P&gt;&lt;P&gt;  CLEAR wa_header.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = 'Date: '.&lt;/P&gt;&lt;P&gt;  CONCATENATE  sy-datum+6(2) '.'&lt;/P&gt;&lt;P&gt;               sy-datum+4(2) '.'&lt;/P&gt;&lt;P&gt;               sy-datum(4) INTO wa_header-info.   "todays date&lt;/P&gt;&lt;P&gt;  APPEND wa_header TO t_header.&lt;/P&gt;&lt;P&gt;  CLEAR: wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_list_commentary = t_header.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "TOP-OF-PAGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 09:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746439#M1302472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746440#M1302473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its solved by passing the different handle values on saving the variant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 08:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant/m-p/5746440#M1302473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T08:27:07Z</dc:date>
    </item>
  </channel>
</rss>

