<?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: Grid display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136122#M1190472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide the part of your codes where you are displaying the output.&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, 04 Feb 2009 06:30:22 GMT</pubDate>
    <dc:creator>dev_parbutteea</dc:creator>
    <dc:date>2009-02-04T06:30:22Z</dc:date>
    <item>
      <title>Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136117#M1190467</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;I am about to dispaly a table with the help of a grid. The table may contain a single attribute(column) or multiple. It depends on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first time of display it is wokring fine for both type of (single column and multiple columns) tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From second time onwards, the length of the column is being expanded to the length of the grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case of multiple columns, it is working fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me reason and the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you very much..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balakrishna.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136117#M1190467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136118#M1190468</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;Refresh all your global data if you are re-populating them for each display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136118#M1190468</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-02-04T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136119#M1190469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not get the meaning of "refresh all you global data". Can you please explain me in detail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grid length....20.&lt;/P&gt;&lt;P&gt;Table has one column and lengh is 10 and has one record.&lt;/P&gt;&lt;P&gt;For the first time it display the one record in the grid with the length of 10 chars.&lt;/P&gt;&lt;P&gt;I entered one more record into the grid and at the time refreshing the table onto the grid, it is being displayed with the length of 20 which is equal to full length of grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Balakrishna.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136119#M1190469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136120#M1190470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF you are using ALV grid, try to give &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* declaration
DATA: LAYOUT TYPE slis_layout_alv.
 * after fieldcatalog give this stmt.
layout-colwidth_optimize = 'X'.  in layout. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to pass this LAYOUT in FM of grid.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Padmashree RamMaghenthar on Feb 4, 2009 11:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136120#M1190470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136121#M1190471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balakrishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what the FM you are using ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is something called colwidth_optimize in your layout, if you set this with 'X', it will optimize your colomn width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gautham Paspala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136121#M1190471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136122#M1190472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide the part of your codes where you are displaying the output.&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, 04 Feb 2009 06:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136122#M1190472</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-02-04T06:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136123#M1190473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

  lwa_layout-colwidth_optimize = c_x.
  lwa_layout-zebra = c_x.
  lv_repid = sy-repid.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = lv_repid
      is_layout          = lwa_layout
      it_fieldcat        = li_fieldcat
    TABLES
      t_outtab           = p_fs_final
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 06:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grid-display/m-p/5136123#M1190473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T06:44:50Z</dc:date>
    </item>
  </channel>
</rss>

