<?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 Question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092654#M978668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;Below is the sample code for the dynamic field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    concatenate:
                  'KST00' c_count  into l_field_qty.
 assign:
                component l_field_qty of structure w_keph to &amp;lt;fs&amp;gt;.
              w_keph-kst001 = w_keph-kst001 + &amp;lt;fs&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;*******&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;**********&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2008 14:03:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-26T14:03:05Z</dc:date>
    <item>
      <title>ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092646#M978660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;       I am trying to develop a report to display the planned order requirements for a few weeks and then the subsequent months after that. The output is in ALV grid format. Now the problem is that the number of weeks to displayed varies and it is dependent on the date on which the report is run, so that it end before the subsequent month starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;     CALL METHOD v_alv_tree-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         is_variant          = wa_variant&lt;/P&gt;&lt;P&gt;         i_save              = c_save&lt;/P&gt;&lt;P&gt;         is_hierarchy_header = wa_hierarchy_header&lt;/P&gt;&lt;P&gt;         it_list_commentary  = i_list_commentary&lt;/P&gt;&lt;P&gt;         i_logo              = c_pepsico_logo&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;         it_outtab           = i_output1[]&lt;/P&gt;&lt;P&gt;         it_fieldcatalog     = i_fieldcat[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for example if the total columns is 30, depending on the date columns 12 or/and 13 or/and 14 should not be displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a logic to change the field catalog based on the date.&lt;/P&gt;&lt;P&gt;But the output still shows all the data as i am not changing the output tab.&lt;/P&gt;&lt;P&gt;How can i acheive this? Do I have to use dynamic tables, or is there a easier way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092646#M978660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092647#M978661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that using fieldcatalog. may be some where you are doing the mistake in building the fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do that using Dynamic Tables also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092647#M978661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092648#M978662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In field catalog don't use NO_OUT field but activate TECH field for the week not to display to insure the column are hidden and not displayable through a variant action. You may also bypass ALV buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092648#M978662</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-06-26T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092649#M978663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;Create a dynamic field catalog . It will solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092649#M978663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092650#M978664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raymond, How do i use the TECH field to not display the column, Maybe i am taking the wrong approch here. The modification i did was to not populate the particular week columns in the field catalog which should not be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_build_field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop for week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if date &amp;gt; v_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the field catalog&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;Loop for month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the field catalog&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;How do we create dynamic field catalog??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092650#M978664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092651#M978665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Loop for month

fill the field catalog

Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many months you are looping and...what is the condition to exclude them from layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092651#M978665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092652#M978666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The total display is for one year.&lt;/P&gt;&lt;P&gt;So if i run the report on 1st jan it should show sixteen weeks and the 8 months&lt;/P&gt;&lt;P&gt;but if i run on 7th it should show 15 weeks and 8 months&lt;/P&gt;&lt;P&gt;and like wise....&lt;/P&gt;&lt;P&gt;Months are fixed. ie I have to show 8 months of requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092652#M978666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092653#M978667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep each and every field in the catalog, just set fieldcat-tech = 'X' for field you don't want to be displayed. &lt;/P&gt;&lt;P&gt;ALV do some buffering, not referencing field in fieldcatalog may be insufficient, in peculiar if user select a ALV display variant, use also parameter I_BYPASSING_BUFFER to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 13:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092653#M978667</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-06-26T13:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092654#M978668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;Below is the sample code for the dynamic field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    concatenate:
                  'KST00' c_count  into l_field_qty.
 assign:
                component l_field_qty of structure w_keph to &amp;lt;fs&amp;gt;.
              w_keph-kst001 = w_keph-kst001 + &amp;lt;fs&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;*******&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;**********&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 14:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092654#M978668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092655#M978669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing Thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 02:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-question/m-p/4092655#M978669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T02:53:24Z</dc:date>
    </item>
  </channel>
</rss>

