<?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: Get Fields equalent to ALV Layout Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672825#M1448275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;used fm LVC_VARIANT_SELECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Mar 2010 10:26:54 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2010-03-02T10:26:54Z</dc:date>
    <item>
      <title>Get Fields equalent to ALV Layout Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672823#M1448273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ALV report that have ALV layout selected by user. My requirement is i need to get same set of fields from the layout selected. and using this i need to create the internal table at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any info on this appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 08:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672823#M1448273</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-01T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Fields equalent to ALV Layout Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672824#M1448274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Check the below sample code how you have to get build internal table at run time. 
&lt;PRE&gt;&lt;CODE&gt;
*----------------------------------------------------------------------*
*       Form  GET_FIELDCAT_FROM_VARIANT
*----------------------------------------------------------------------*
*       Retrieve the fieldcatalog stored for the variant
*----------------------------------------------------------------------*
form get_fieldcat_from_variant using disvar    like disvariant
                                     itab_head type c
                                     itab_item type c.

  data: fieldcat_new type kkblo_t_fieldcat.

  call function 'REUSE_ALV_TRANSFER_DATA'
       exporting
            it_fieldcat = fieldcat
            is_layout   = layout
       importing
            et_fieldcat = fieldcat_kkb
            es_layout   = layout_kkb.

  call function 'LT_VARIANT_LOAD'
       exporting
            i_tabname           = itab_head
            i_tabname_slave     = itab_item
            i_dialog            = space
            i_user_specific     = 'X'
       importing
            et_fieldcat         = fieldcat_new
       changing
            ct_default_fieldcat = fieldcat_kkb
            cs_layout           = layout_kkb
            cs_variant          = disvar
       exceptions
            wrong_input         = 1
            fc_not_complete     = 2
            not_found           = 3
            others              = 4.

  if sy-subrc = 0.
    refresh fieldcat.
    call function 'REUSE_ALV_TRANSFER_DATA_BACK'
         exporting
              it_fieldcat = fieldcat_new
         importing
              et_fieldcat = fieldcat.

    clear: fieldcat_ln.
    modify fieldcat from fieldcat_ln transporting no_out
      where no_out &amp;lt;&amp;gt; 'X'.
  endif.
endform.                               " GET_FIELDCAT_FROM_VARIANT
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 08:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672824#M1448274</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-01T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get Fields equalent to ALV Layout Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672825#M1448275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;used fm LVC_VARIANT_SELECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 10:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-fields-equalent-to-alv-layout-fields/m-p/6672825#M1448275</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-02T10:26:54Z</dc:date>
    </item>
  </channel>
</rss>

