<?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: Populating Field Catalog using Global Classes. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541453#M1752005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your should fill the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;FIELDNAME&lt;/EM&gt; with fieldname of your internal table&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;REF_TABLE&lt;/EM&gt; with DDIC table name&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;REF_FIELD&lt;/EM&gt; with DDIC field name of table referenced in REF_TABLE&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use the function '&lt;EM&gt;LVC_FIELDCATALOG_MERGE&lt;/EM&gt;' or use SALV model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 14:19:59 GMT</pubDate>
    <dc:creator>aferngas</dc:creator>
    <dc:date>2013-06-26T14:19:59Z</dc:date>
    <item>
      <title>Populating Field Catalog using Global Classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541452#M1752004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm new to ABAP. I want to display an alv report using oops abap. While populating field catalog I'm defining work area type lvc_s_fcat and an internal table type lvc_t_fcat and doing the field catalog population as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_fieldcatalog type lvc_s_fcat&lt;/P&gt;&lt;P&gt;t_fieldcatalog type lvc_t_fcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_fieldcat&lt;/P&gt;&lt;P&gt;i_fieldcatalog-colpos = 1.&lt;/P&gt;&lt;P&gt;i_fieldcatalog-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;i_fieldcatalog-tabname = 'IT_FINAL'.........&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;append i_fieldcatalog to t_fieldcatalog.&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in similar manner i'm populating the field catalog internal table and finally calling set_table_for_first_display method and passing structure and internal table to it and I'm getting the alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of this manner is there any other manner by which I can populate field catalog i.e., is there any global class which I can use by which when I call that class and pass my internal table to its parameter and my field catalog internal table will be automatically populated ??? Please respond.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541452#M1752004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-26T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Field Catalog using Global Classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541453#M1752005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your should fill the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;FIELDNAME&lt;/EM&gt; with fieldname of your internal table&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;REF_TABLE&lt;/EM&gt; with DDIC table name&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;REF_FIELD&lt;/EM&gt; with DDIC field name of table referenced in REF_TABLE&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use the function '&lt;EM&gt;LVC_FIELDCATALOG_MERGE&lt;/EM&gt;' or use SALV model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541453#M1752005</guid>
      <dc:creator>aferngas</dc:creator>
      <dc:date>2013-06-26T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Field Catalog using Global Classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541454#M1752006</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;have you tried the SALV-Framework? There, you do not have to deal directly with the field-catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the classes CL_SALV_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp; lt_sflight&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE TABLE OF sflight.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp; lr_columns&amp;nbsp; TYPE REF TO cl_salv_columns_list,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lr_funcs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_salv_functions_list&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; lr_salv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_salv_table&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM sflight INTO TABLE lt_sflight.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;cl_salv_table&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;factory&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;IMPORTING &lt;/SPAN&gt;r_salv_table&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lr_salv&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;CHANGING&amp;nbsp; &lt;/SPAN&gt;t_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_sflight&lt;BR /&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;lr_funcs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lr_salv&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_functions&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*lr_funcs-&amp;gt;set_default( ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;lr_funcs-&amp;gt;set_all( ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S31"&gt;lr_columns = lr_salv-&amp;gt;GET_COLUMNS( ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;* Modify columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;lr_salv&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;display&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-field-catalog-using-global-classes/m-p/9541454#M1752006</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2013-06-26T14:21:24Z</dc:date>
    </item>
  </channel>
</rss>

