<?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 regarding alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351635#M519173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; in ALV's How to assign field width at runtime?????????&lt;/P&gt;&lt;P&gt;give me with example?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 13:25:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T13:25:37Z</dc:date>
    <item>
      <title>regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351635#M519173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; in ALV's How to assign field width at runtime?????????&lt;/P&gt;&lt;P&gt;give me with example?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 13:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351635#M519173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351636#M519174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot do that in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 13:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351636#M519174</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-06-05T13:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351637#M519175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the OUTPUTLEN in the field catalog to specify the output width of a specific column within the ALV.&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>Tue, 05 Jun 2007 13:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351637#M519175</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351638#M519176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003 .

* Global ALV Data Declarations
type-pools: slis.

* Internal Tables
data: begin of ialv occurs 0,
      test1(10) type c,
      test2(10) type c,
      end of ialv.

data: fieldcat  type slis_t_fieldcat_alv.

start-of-selection.

  perform get_data.
  perform call_alv.

*********************************************************************
*      Form  GET_DATA
*********************************************************************
form get_data.

  ialv-test1 = 'ABC'.
  ialv-test2 = 'DEF'.
  append ialv.

  ialv-test1 = 'GHI'.
  ialv-test2 = 'JKL'.
  append ialv.

  ialv-test1 = '123'.
  ialv-test2 = '456'.
  append ialv.

endform.

************************************************************************
*  CALL_ALV
************************************************************************
form call_alv.

  data: tmp_fc type slis_fieldcat_alv.

  clear: fieldcat. refresh: fieldcat.

  clear tmp_fc.
  tmp_fc-reptext_ddic = 'Test1'.
  tmp_fc-fieldname    = 'TEST1'.
  tmp_fc-tabname      = 'IALV'.
  tmp_fc-outputlen    = '10'.       "  &amp;lt;- SPECIFY OUTPUT LENGTH
  append tmp_fc to fieldcat.

  clear tmp_fc.
  tmp_fc-reptext_ddic = 'Test2'.
  tmp_fc-fieldname    = 'TEST2'.
  tmp_fc-tabname      = 'IALV'.
  tmp_fc-outputlen    = '20'.       "  &amp;lt;- SPECIFY OUTPUT LENGTH
  append tmp_fc to fieldcat.



* Call ABAP List Viewer (ALV)
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      it_fieldcat  = fieldcat
    tables
      t_outtab     = ialv.

endform.

&lt;/CODE&gt;&lt;/PRE&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>Tue, 05 Jun 2007 13:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351638#M519176</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351639#M519177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;form call_alv.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: tmp_fc type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear: fieldcat. refresh: fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear tmp_fc.&lt;/P&gt;&lt;P&gt;  tmp_fc-reptext_ddic = 'Test1'.&lt;/P&gt;&lt;P&gt;  tmp_fc-fieldname    = 'TEST1'.&lt;/P&gt;&lt;P&gt;  tmp_fc-tabname      = 'IALV'.&lt;/P&gt;&lt;P&gt;  tmp_fc-outputlen    = '10'.       "  &amp;lt;- SPECIFY OUTPUT LENGTH&lt;/P&gt;&lt;P&gt;  append tmp_fc to fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear tmp_fc.&lt;/P&gt;&lt;P&gt;  tmp_fc-reptext_ddic = 'Test2'.&lt;/P&gt;&lt;P&gt;  tmp_fc-fieldname    = 'TEST2'.&lt;/P&gt;&lt;P&gt;  tmp_fc-tabname      = 'IALV'.&lt;/P&gt;&lt;P&gt;  tmp_fc-outputlen    = '20'.       "  &amp;lt;- SPECIFY OUTPUT LENGTH&lt;/P&gt;&lt;P&gt;  append tmp_fc to fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if user want to change the tmp_fc-outputlen  to 10 for TEST2 IN RUNTIME HOW we can solve the problem?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 14:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351639#M519177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351640#M519178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the user needs to do is expand the column by grabbing the right side of the column and move towards the right.  You know, exactly how you can do this in Excel.  That's it.  No programming required.&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>Tue, 05 Jun 2007 14:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351640#M519178</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351641#M519179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, but if the user wants to change the outputlen  to 30. how can u do it?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 14:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351641#M519179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351642#M519180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, he can simply manipulate the output just like you can in Excel, where you click on the side of the cell or column and drag it to the desired length.  If he then always wants to see it this way, he can save the ALV layout as a variant and then he would not need to do this each time.&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>Tue, 05 Jun 2007 14:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/2351642#M519180</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-05T14:13:35Z</dc:date>
    </item>
  </channel>
</rss>

