<?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: Dynamic ALV Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676700#M1766706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarnadeepta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can 2 scenarios: &lt;/P&gt;&lt;P&gt;1. One start date &amp;amp; one end date accepted on the selection screen = all rows have same number of columns&lt;/P&gt;&lt;P&gt;2. Start date and end date in each data row = different number of columns for different rows. (Not possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming it is the first case, here's how you can achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;resuse_alv_grid_display (in PBO)&lt;/SPAN&gt;, while appending fields to the fieldcatalogue (you can use &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;slis_t_fieldcat_alv&lt;/SPAN&gt; for all cases), add the first 10 fields which will be present for all dates. For the dynamic fields, you can put a &lt;STRONG&gt;check &lt;/STRONG&gt;before appending that particular field to the fieldcatalogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;check &lt;/STRONG&gt;will be to see if the accepted date range falls in your criteria of dates or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 16:08:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-06T16:08:48Z</dc:date>
    <item>
      <title>Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676699#M1766705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;BR /&gt;I have got a requirement where i have to display some fixed coloumns and some variable dynamic columns which depend on date range .&lt;BR /&gt;Suppose the start date is 01-09-2013 and finish date is 20-09-2013, then the ALV should display 20 more fields other than the existing 10 fields. These 20 fields may vary as per the date range.&lt;BR /&gt;I have never worked on this DYnamci ALV and when i googled about for reference i got more confused.&lt;BR /&gt;I tried preparing the fieldcat and i have to use resuse_alv_grid_display for ALV display.&lt;BR /&gt;For the fixed columns do we need to use the fieldcatlog of slis_t_fieldcat_alv and for dynamic one lvc_t_fcat and does the dynamic one will have all the fields other than dynamic fields ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide how can i achieve this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;BR /&gt;Swarnadeepta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676699#M1766705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-06T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676700#M1766706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarnadeepta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can 2 scenarios: &lt;/P&gt;&lt;P&gt;1. One start date &amp;amp; one end date accepted on the selection screen = all rows have same number of columns&lt;/P&gt;&lt;P&gt;2. Start date and end date in each data row = different number of columns for different rows. (Not possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming it is the first case, here's how you can achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;resuse_alv_grid_display (in PBO)&lt;/SPAN&gt;, while appending fields to the fieldcatalogue (you can use &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;slis_t_fieldcat_alv&lt;/SPAN&gt; for all cases), add the first 10 fields which will be present for all dates. For the dynamic fields, you can put a &lt;STRONG&gt;check &lt;/STRONG&gt;before appending that particular field to the fieldcatalogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;check &lt;/STRONG&gt;will be to see if the accepted date range falls in your criteria of dates or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676700#M1766706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-06T16:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676701#M1766707</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;Have a look at the attached program y_r_eitan_test_06_03 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a dynamic weekly report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea here is to create a fix ALV but to control the appearance of columns using the "technical" flag .&lt;/P&gt;&lt;P&gt;&amp;lt;st_column_ref&amp;gt;-r_column-&amp;gt;set_technical( value = st_alv_hdrc_1-tech ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is using cl_salv_table but the principal can be adopted to REUSE_ALV_GRID_DISPLAY ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tech(1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type c,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " technical field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eitan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/275616" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 16:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676701#M1766707</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-09-06T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676702#M1766708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Swarnadeepta,&lt;/P&gt;&lt;P&gt;In addition to the above solutions.. I have also created the dynamic alv with some static columns and variable columns depending on the parameter where user can put no. Of columns user wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that I just created both slis field catalog and lvc field catalog with description of static columns and looping on the no. Of columns to add up description of variable columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you can loop on the difference of date range and create both field catalog... where slis field catalog is used for REUSE_ALV_GRID_DISPLAY and lvc field catalog is use to creat dynamic table using oops class method CREATE_DYNAMIC_TABLE.. this is the theoretical description if you need a coding logic you can update me I will post some dummy code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Harshit&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 13:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676702#M1766708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-07T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676703#M1766709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Add all the columns to the field catalogue and hide the the fields which should not be displayed by making the fieldcatalog attribute&amp;nbsp; NO_OUT = 'X' .&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;For eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;data ls_Fcat type lvc_s_fcat.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;data lt_fcat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; CLEAR&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_fcat&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; ls_fcat&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;fieldname &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= Name of the column in the internal table&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; ls_fcat&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;coltext &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= Title of the column to be displayed on the alv table&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; ls_fcat-no_out = 'X'." To hide the field&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;APPEND &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; ls_fcat &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;TO &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; lt_fcat&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Fill the field catalog as shown above and pass it to the method SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Now only those fields where no_out&amp;nbsp;&amp;nbsp; = ' ' are displayed on the alv table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Based on the requirement, adjust the attribute to change the fields displayed on the alv table.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Please get back to me if you need sample code snippet or more info on how to achieve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 14:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676703#M1766709</guid>
      <dc:creator>krishnakumarn</dc:creator>
      <dc:date>2013-09-07T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676704#M1766710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : date_check type c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform data_retreival. &lt;/P&gt;&lt;P&gt;perform check_flags. &lt;/P&gt;&lt;P&gt;perform create_field_catalog. &lt;/P&gt;&lt;P&gt;perform display_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the check_flags, set a flag variable for the different conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form check_flags.&lt;/P&gt;&lt;P&gt;clear : date_check. &lt;/P&gt;&lt;P&gt;&amp;nbsp; loop at it_data into wa_data. "data table. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wa_data-start-date = '20130901' and wa_data-finish_date = '20130920'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date_check = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear wa_data.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endloop. &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field catalog creation subroutine, Depending on the value of various check variable, set or clear the no_out attribute of the column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_field_catalog. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L1S52"&gt;data: lv_pos &lt;SPAN class="L1S52"&gt;type&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;i&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_pos = lv_pos + &lt;SPAN class="L1S32"&gt;1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;clear&lt;/SPAN&gt; gw_alv_fieldcat.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-fieldname = &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;Name of the column in the internal table&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt; that has to be displayed only if the above date condition is met.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S32"&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-tabname&amp;nbsp;&amp;nbsp; = &lt;SPAN class="L1S33"&gt;'IT_DATA'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-seltext_l = &lt;SPAN class="L1S52"&gt;text&lt;/SPAN&gt;-h02.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-col_pos&amp;nbsp;&amp;nbsp; = lv_pos.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-outputlen = &lt;SPAN class="L1S32"&gt;12&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; if check_date is initial.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " If tje condition is not satisfied, hide the column. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S32"&gt;&amp;nbsp;&amp;nbsp; gw_alv_fieldcat-&lt;/SPAN&gt;-no_out = 'X'." To hide the field&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S32"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;append&lt;/SPAN&gt; gw_alv_fieldcat &lt;SPAN class="L1S52"&gt;to&lt;/SPAN&gt; gt_alv_fieldcat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLEAR&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L1S32"&gt;gw_alv_fieldcat.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 06:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676704#M1766710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-08T06:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676705#M1766711</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;Check Out The Link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/Tutorial+abap+-+Code+for+Dynamic+Alv+grid"&gt;http://wiki.scn.sap.com/wiki/display/Snippets/Tutorial+abap+-+Code+for+Dynamic+Alv+grid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/ALV/DynamicALV/Demo.htm"&gt;http://saptechnical.com/Tutorials/ALV/DynamicALV/Demo.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.an-sap-consultant.com/2010/12/abap-dynamic-internal-creation-and.html"&gt;http://www.an-sap-consultant.com/2010/12/abap-dynamic-internal-creation-and.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alenlee &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 04:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676705#M1766711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-09T04:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676706#M1766712</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;These are some useful links to guide you to create dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/ABAP/Dynamic+Internal+table" title="http://wiki.scn.sap.com/wiki/display/ABAP/Dynamic+Internal+table"&gt;http://wiki.scn.sap.com/wiki/display/ABAP/Dynamic+Internal+table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/Create+Multiple+Dynamic+Tables" title="http://wiki.scn.sap.com/wiki/display/Snippets/Create+Multiple+Dynamic+Tables"&gt;http://wiki.scn.sap.com/wiki/display/Snippets/Create+Multiple+Dynamic+Tables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after creating dynamic internal table you can start populating data to the same and this internal table in turn can be used to create an alv grid or list display by creating a dynamic field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dineshwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 05:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676706#M1766712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-09T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676707#M1766713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the solution.&lt;BR /&gt;Because of which i was able to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took all the fields into two&amp;nbsp; fieldcatalogs ( LVC_t_fieldcat and slis_t_fieldcat_alv).&lt;BR /&gt;And i used the fieldcatalog of type lvc_t_fcat for creating the dynamic internal table with the help of the method create_dynamic_table. and then filled up the dynamic internal table. &lt;BR /&gt;Passed the fieldcat of type slis_t_fieldcat_alv and dynamic internal table to resue_alv_grid_display for final output display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the logic of date i used one FM DAY_ATTRIBUTES_GET. This FM provides no. of days between the start date and end date . Suppose you pass 01.09.2013 to 03.09.2013.&lt;BR /&gt;then the FM will provide an internal table with values as &lt;/P&gt;&lt;P&gt;01.09.2013 &lt;/P&gt;&lt;P&gt;02.09.2013&lt;BR /&gt;03.09.2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So looped that internal table and built the fieldcatalog accordingly and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a text file with some code with the help of which i was able to know how to fill the dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards ,&lt;BR /&gt;Swarnadeepta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-display/m-p/9676707#M1766713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-18T12:16:02Z</dc:date>
    </item>
  </channel>
</rss>

