<?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 fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283391#M785273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Nicolai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 13:33:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T13:33:06Z</dc:date>
    <item>
      <title>ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283387#M785269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wassup !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A need to create a file in same as time as a display an ALV. In selection screen there is a field that the user can load a variant. I need to create the file with the same fields displayed in ALV, How can I discover witch fields will appear in screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a table for that ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx all. &lt;/P&gt;&lt;P&gt;Point will be rewards. !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 21:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283387#M785269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T21:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283388#M785270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out function group SLIS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 23:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283388#M785270</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2008-01-03T23:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283389#M785271</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 found this function modules under function group SALV&lt;/P&gt;&lt;P&gt;REUSE_ALV_VARIANT_DEFAULT_GET  Read default display variant (description only, w/o field catalog)&lt;/P&gt;&lt;P&gt;REUSE_ALV_VARIANT_SELECT            Read a display variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first function return the name of the variant,&lt;/P&gt;&lt;P&gt;the second one return fieldcats&lt;/P&gt;&lt;P&gt;i hope is usefull for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 23:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283389#M785271</guid>
      <dc:creator>mnicolai_77</dc:creator>
      <dc:date>2008-01-03T23:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283390#M785272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the function Module 'LT_DBDATA_READ_FROM_LTDX'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the field details to be passed by passing the variant name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: disvariant      TYPE disvariant.&lt;/P&gt;&lt;P&gt;  i_varkey = disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR i_varkey-type.&lt;/P&gt;&lt;P&gt;  i_varkey-type = 'F'&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LT_DBDATA_READ_FROM_LTDX'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_tool       = 'LT'&lt;/P&gt;&lt;P&gt;      is_varkey    = i_varkey&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_dbfieldcat = i_dbfieldcat&lt;/P&gt;&lt;P&gt;      t_dbsortinfo = i_sortinfo&lt;/P&gt;&lt;P&gt;      t_dbfilter   = i_filter&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found    = 1&lt;/P&gt;&lt;P&gt;      wrong_relid  = 2&lt;/P&gt;&lt;P&gt;      OTHERS       = 3.&lt;/P&gt;&lt;P&gt;After calling this FM the table  i_dbfieldcat field NO_OUT will contain 'X' for the fields which should not be displayed in the ALV output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this table to build your logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 01:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283390#M785272</guid>
      <dc:creator>rahul_kamble2</dc:creator>
      <dc:date>2008-01-04T01:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283391#M785273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Nicolai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 13:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283391#M785273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283392#M785274</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;I was glad to find information about the reading of display variants fields from field clusters of table LTDX but the code given as example does not pass abap control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm if compatible with ECC 6 unicode release ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information about the processing of this function would be a great help (does not return anything when tested in se37 test mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your cooperation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 11:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283392#M785274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T11:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283393#M785275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wassup ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the following code helps ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{    variante-report  = sy-repid.&lt;/P&gt;&lt;P&gt;     variante-variant = p_vari.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;     layout-zebra  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF NOT p_vari IS INITIAL.&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         i_dialog                 = ' '&lt;/P&gt;&lt;P&gt;         it_default_fieldcat      = t_fieldcat&lt;/P&gt;&lt;P&gt;         i_layout                 = layout&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ET_FIELDCAT               = t_fieldcat&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;         cs_variant               = variante&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        WRONG_INPUT               = 1&lt;/P&gt;&lt;P&gt;        FC_NOT_COMPLETE           = 2&lt;/P&gt;&lt;P&gt;        NOT_FOUND                 = 3&lt;/P&gt;&lt;P&gt;        PROGRAM_ERROR             = 4&lt;/P&gt;&lt;P&gt;        OTHERS                    = 5.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     LOOP AT t_fieldcat assigning &amp;lt;fs_fieldcat&amp;gt;.&lt;/P&gt;&lt;P&gt;          CLEAR: &amp;lt;fs_fieldcat&amp;gt;-no_out.&lt;/P&gt;&lt;P&gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       program          = sy-repid&lt;/P&gt;&lt;P&gt;       fieldname        = 'T_LISTA'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;       components       = tl_comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: vl_file.&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First u get the variant with 'REUSE_ALV_VARIANT_SELECT. After that u discovery with fields will be shown with that variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 14:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283393#M785275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283394#M785276</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 have used this FM on 4.7 Enterprise right now i don't &lt;/P&gt;&lt;P&gt;have access to ECC 6.0 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try using the function module through an ABAP program and &lt;/P&gt;&lt;P&gt; Pass the values for the parameter &lt;/P&gt;&lt;P&gt; is_varkey: &lt;/P&gt;&lt;P&gt; i_tool = 'LT'&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;for the parameter( is_varkey-Structure of type DISVARIANT ) the fields you need to pass are&lt;/P&gt;&lt;P&gt;1. Name of the current program.&lt;/P&gt;&lt;P&gt;2. Name of the display variant.&lt;/P&gt;&lt;P&gt;3. varkey type  = 'F'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rahul kamble on Mar 30, 2008 10:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 16:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283394#M785276</guid>
      <dc:creator>rahul_kamble2</dc:creator>
      <dc:date>2008-03-30T16:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Variant fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283395#M785277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download data according to layout set in excel on custom PF status button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i resolve this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 14:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-variant-fields/m-p/3283395#M785277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-20T14:00:54Z</dc:date>
    </item>
  </channel>
</rss>

