<?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: Help required - For ALV program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891760#M373203</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;I will modify the requirement slightly.&lt;/P&gt;&lt;P&gt;It is the left hand side columns, which are fixed&lt;/P&gt;&lt;P&gt;So initially, the ALV should display field1, 2, 8,9,10.&lt;/P&gt;&lt;P&gt;Now when I click on horizontal scrollbr, the visible fields should be field 1, 2, 7,8,9&lt;/P&gt;&lt;P&gt;in the next click , it should be field 1, 2, 6,7,8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my idea, is that we should load all the 10 fields in the field catalog. By setting a field in the field catalog structure ( I don't know which field it is ), only fields 1,2,8,9,10 should be visible . Then by clicking on the horizontal scrollbar, it should be changed to 1,2,7,8,9. and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is such a concept possible...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 19:06:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T19:06:34Z</dc:date>
    <item>
      <title>Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891755#M373198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an ALV  (using containers) with , say , 10 fields. As the container size is not large enough to accomodate all the 10 fields, it is getting displayed as &lt;/P&gt;&lt;P&gt;field1, field2,field8, field9 and field10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on the horizontal scrollbar, the fields getting displayed should change as follows.&lt;/P&gt;&lt;P&gt;First click: Field2, Field3, Field8,Field9, Field10&lt;/P&gt;&lt;P&gt;Second click: Field3,Field4, 8, 9,10&lt;/P&gt;&lt;P&gt;Third click: Field4,Field5,8,9,10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for one of my friends.Can you provide me with good ideas as to how to approach this problem and if any one has worked on similar problem, please provide the code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the code and will award points to all helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 20:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891755#M373198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T20:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891756#M373199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know if you we have any event to catch the user scrolling for the CL_GUI_ALV_GRID method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a possible solution though, you could set up three buttons on the toolbar for selecting the three field combinations. Then when the user presses any of the buttons. one way could be use the method 'set_scroll_info_via_id' and set the existing grid to the new position without even having to scroll. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you need the fields in a specific order, say 1st click : Field 2, 3 , 8 etc..you would need to modify the Field catelog and change the order in which the fields were displayed and and then use the refresh grid display method also here specify the order in which you want to display the fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ketan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 21:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891756#M373199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T21:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891757#M373200</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;Don't fix the columns..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning don't pass KEY= 'X' OR FIX_COLUMN = 'X' to the fieldcatalog internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if you move it..The for first time , the first column will be moved..Second time 1 and 2 will be moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you want??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 21:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891757#M373200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T21:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891758#M373201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sylendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As developer of ALV lists we do not care that much about the layout of the list because the user has all the options available to adjust it to her specific needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is to be able to "freeze" columns at the right border of the ALV list. This is, as far as I know, not possible, only at the left border.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call the context menu for a column heading you will see the options&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- Freeze to Column
- Unfreeze Columns&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you freeze a column all columns to its left side remain fixed. Thus, in your case you have to change the order of your columns that the fixed columns (field8 - field10) appear on the left side of the ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 22:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891758#M373201</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-01-23T22:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891759#M373202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies. I will check all your suggestions in my system later and let you know about the progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 23:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891759#M373202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T23:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891760#M373203</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;I will modify the requirement slightly.&lt;/P&gt;&lt;P&gt;It is the left hand side columns, which are fixed&lt;/P&gt;&lt;P&gt;So initially, the ALV should display field1, 2, 8,9,10.&lt;/P&gt;&lt;P&gt;Now when I click on horizontal scrollbr, the visible fields should be field 1, 2, 7,8,9&lt;/P&gt;&lt;P&gt;in the next click , it should be field 1, 2, 6,7,8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my idea, is that we should load all the 10 fields in the field catalog. By setting a field in the field catalog structure ( I don't know which field it is ), only fields 1,2,8,9,10 should be visible . Then by clicking on the horizontal scrollbar, it should be changed to 1,2,7,8,9. and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is such a concept possible...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 19:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891760#M373203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - For ALV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891761#M373204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field in the fieldcatalog, is NO_OUT,  by setting this, the column will not be display, but can be by changing the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fc_tmp-no_out = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as using the horizontial scroll bar to fire an event, I don't think that this is one which will be handled by the application.  You should add "Scroll" buttons to the application toolbar of the grid to handle this.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest,  I don't see why there is a need to hide the columns in the first place, but again, I don't know your real requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 19:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-for-alv-program/m-p/1891761#M373204</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-24T19:12:10Z</dc:date>
    </item>
  </channel>
</rss>

