<?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 Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234488#M140327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the fields is controlled by the fieldcatalog that gets built for the ALV.  There should be a column position field that can be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either that or the user can change the layout themselves once in the Grid using the layout functions available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2006 17:32:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-08T17:32:21Z</dc:date>
    <item>
      <title>ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234485#M140324</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;I am using an ALV grid to display inventory movement.  Everything is working correctly, I just need to be able to display the columns in a different order than is currently display on the ALV. I have the internal table in the order that I want the information to be displayed, but it is not coming out that way.  Any advice would be greatly appreciated.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 17:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234485#M140324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T17:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234486#M140325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Misunderstood question&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, 08 Mar 2006 17:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234486#M140325</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-08T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234487#M140326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not have to set the column position, if you don't, then the order is taken by the order in which the fields were added to the field catalog, not the order of the fields in the internal table.&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, 08 Mar 2006 17:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234487#M140326</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-08T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234488#M140327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the fields is controlled by the fieldcatalog that gets built for the ALV.  There should be a column position field that can be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either that or the user can change the layout themselves once in the Grid using the layout functions available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 17:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234488#M140327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234489#M140328</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;The order of colunm depends of the position it's setted in catalog table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change it updating the value of field col_pos of structure IT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fm REUSE_ALV_FIELDCATALOG_MERGE is usually used to build catalog table, you should have a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;            i_program_name     = gt_repid&lt;/P&gt;&lt;P&gt;            i_internal_tabname = 'T_OUTPUT'&lt;/P&gt;&lt;P&gt;            i_inclname         = gt_repid&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            ct_fieldcat        = gt_fieldcat[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fm results a catalog table where the colunms have the same order as internal table is defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you need change positions you can use a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_fieldcat into ls_fieldcat.&lt;/P&gt;&lt;P&gt;case ls_fieldcat-fieldname.&lt;/P&gt;&lt;P&gt; when '......'. ls_fieldcat-col_pos     = &amp;lt;pos&amp;gt;.&lt;/P&gt;&lt;P&gt; .............&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;modify gt_fieldcat from ls_fieldcat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.s.: Have you solved your problem of yesterday?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 17:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234489#M140328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T17:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234490#M140329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can build your Field catalog as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : WA_FLDCAT    TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;       LT_FLDCAT    TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-COL_POS    = '1'.  &amp;lt;column position&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-FIELDNAME  = 'FINANCIER_ID'. &amp;lt;field name in the Internal table&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-REF_TABLE  = &amp;lt;Database Table Name&amp;gt;.&lt;/P&gt;&lt;P&gt;WA_FLDCAT-REF_FIELD  = 'FINANCIER_ID'. &amp;lt;Field Name in Database&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-TABNAME    = 'LT_FINANCIER'. &amp;lt;Internal Table Name&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-OUTPUTLEN  = '20'. &amp;lt;output lenght&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-NO_OUT     = SPACE.&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-EDIT       = 'X'. &amp;lt;to make field editable&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-SCRTEXT_M  = 'Financier ID'(006). &amp;lt;Header text&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-F4AVAILABL = '1'.   &amp;lt;to activate F4 help&amp;gt;&lt;/P&gt;&lt;P&gt;  WA_FLDCAT-CHECKTABLE = '/ILAP/TRN_CLOSE'. &amp;lt;check table&amp;gt;&lt;/P&gt;&lt;P&gt;  APPEND WA_FLDCAT TO LT_FLDCAT01.&lt;/P&gt;&lt;P&gt;  CLEAR WA_FLDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your requirement you can assign different column numbers to different fields in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 18:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234490#M140329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234491#M140330</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 hope you are using the fm to populate the fieldcat.&lt;/P&gt;&lt;P&gt;in that case you need to modify the col_pos. &lt;/P&gt;&lt;P&gt;read the it_fieldcat with fieldname and modify the col_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 18:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234491#M140330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T18:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234492#M140331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your advice.  I did have everything set up correctly and after a few debugging sessions, it was displaying the way the fields are set up in the ITAB.  So everything is fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 18:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/1234492#M140331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T18:13:23Z</dc:date>
    </item>
  </channel>
</rss>

