<?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 Dynamic Field catalog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966461#M1490538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an ALV using SLIS. The number of columns to be displayed in the ALV are not fixed they are determined using the function module dynamic_table_create. My problem is I want to create the field catalog for the ALV. How can  I create the field catalog dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jun 2010 11:40:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-21T11:40:26Z</dc:date>
    <item>
      <title>Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966461#M1490538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an ALV using SLIS. The number of columns to be displayed in the ALV are not fixed they are determined using the function module dynamic_table_create. My problem is I want to create the field catalog for the ALV. How can  I create the field catalog dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 11:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966461#M1490538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T11:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966462#M1490539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ucan do it this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P&gt;DATA: COUNTER TYPE I,&lt;/P&gt;&lt;P&gt;      LV_COUNTER TYPE CHAR2,&lt;/P&gt;&lt;P&gt;      LV_FIELD TYPE CHAR10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT INT_BUKRS INTO WA_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  COUNTER = COUNTER + 1.&lt;/P&gt;&lt;P&gt;  LV_COUNTER = COUNTER.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'BUKRS' LV_COUNTER INTO LV_FIELD.&lt;/P&gt;&lt;P&gt;  CONDENSE LV_FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IS_LVC_CAT-fieldname = LV_FIELD.&lt;/P&gt;&lt;P&gt; IS_LVC_CAT-SCRTEXT_L  = WA_BUKRS.&lt;/P&gt;&lt;P&gt;  APPEND IS_LVC_CAT TO IT_LVC_CAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_FIELDCAT-fieldname     = LV_FIELD.&lt;/P&gt;&lt;P&gt;IS_FIELDCAT-OUTPUTLEN     = 10.&lt;/P&gt;&lt;P&gt; IS_FIELDCAT-SELTEXT_L = WA_BUKRS.&lt;/P&gt;&lt;P&gt; APPEND IS_FIELDCAT TO IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create dynamic table:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a new Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = IT_LVC_CAT&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table        = new_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;There are lot of material in wiki explaining the same..&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;navin fernandes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 11:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966462#M1490539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966463#M1490540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; My problem is I want to create the field catalog for the ALV. How can  I create the field catalog dynamically.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SALV technique to display your dynamic internal table as it doesn't require a field catalog &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to my response in this thread: &lt;SPAN __jive_macro_name="message" id="9170874"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 11:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966463#M1490540</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-21T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966464#M1490541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use fm &lt;STRONG&gt;LVC_TRANSFER_TO_SLIS&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On input pass &lt;STRONG&gt;lvc&lt;/STRONG&gt; fieldcatalog (which you used for table generation), on output receive &lt;STRONG&gt;slis&lt;/STRONG&gt; one . Then pass your generated table and slis fieldcatalog to &lt;EM&gt;REUSE_ALV_GRID_DISPLAY&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 12:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966464#M1490541</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-06-21T12:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966465#M1490542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 10:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966465#M1490542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966466#M1490543</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;You can use the following code after populating your internaltable , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IFLDCAT INTO WA_FLDCAT.&lt;/P&gt;&lt;P&gt;IF WA_FLDCAT-FIELDNAME = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-EDIT = 'X'.&lt;/P&gt;&lt;P&gt;   WA_FLDCAT-seltext_m   = 'Curr.of fare'.&lt;/P&gt;&lt;P&gt;     WA_FLDCAT-seltext_s   = 'Fare in currency'.&lt;/P&gt;&lt;P&gt;   MODIFY  IFLDCAT FROM WA_FLDCAT .&lt;/P&gt;&lt;P&gt;  CLEAR WA_FLDCAT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards ,&lt;/P&gt;&lt;P&gt;Arvind Venai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 11:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-field-catalog/m-p/6966466#M1490543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T11:11:28Z</dc:date>
    </item>
  </channel>
</rss>

