<?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 Queries regarding ALV formating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478658#M1418578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following queries regarding ALV usage using CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One of the fields in the ALV is actually a URL to a site and the requirment is that when user clicks on it, it must navigate to the&lt;/P&gt;&lt;P&gt;    site. Can you tell me how can this be done in ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some of the fields are usually very long for instance a field contains text enterend by user which can vary from 20 characters to 1000 characters. I want to acheive something like for that field the width in the ALV must be set automatically to &lt;/P&gt;&lt;P&gt; the maximum length in that field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Naveen M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 12:23:27 GMT</pubDate>
    <dc:creator>MNaveen</dc:creator>
    <dc:date>2009-12-17T12:23:27Z</dc:date>
    <item>
      <title>Queries regarding ALV formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478658#M1418578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following queries regarding ALV usage using CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One of the fields in the ALV is actually a URL to a site and the requirment is that when user clicks on it, it must navigate to the&lt;/P&gt;&lt;P&gt;    site. Can you tell me how can this be done in ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some of the fields are usually very long for instance a field contains text enterend by user which can vary from 20 characters to 1000 characters. I want to acheive something like for that field the width in the ALV must be set automatically to &lt;/P&gt;&lt;P&gt; the maximum length in that field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Naveen M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 12:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478658#M1418578</guid>
      <dc:creator>MNaveen</dc:creator>
      <dc:date>2009-12-17T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Queries regarding ALV formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478659#M1418579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the answers to your queries:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) To acheive this, you have to use the attribute &lt;STRONG&gt;HREF_HNDL&lt;/STRONG&gt; of the fieldcatalog LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;2) To achieve this, you have to use attribute &lt;STRONG&gt;CWIDTH_OPT&lt;/STRONG&gt; ( to optimize the width of the column) of the fieldcatalog     &lt;/P&gt;&lt;P&gt;     LVC_T_FCAT.&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;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 12:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478659#M1418579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Queries regarding ALV formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478660#M1418580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. col_opt is the field i guess&lt;/P&gt;&lt;P&gt;2. HREF_HNDL is of type int4? what should be stored here? Can you elaborate a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Naveen M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 12:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478660#M1418580</guid>
      <dc:creator>MNaveen</dc:creator>
      <dc:date>2009-12-17T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Queries regarding ALV formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478661#M1418581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ==&amp;gt; Try with HREF_HNDL in fieldcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle to which an URL is assigned. The ALV Grid Control displays all cells of the column as hyperlinks. You must maintain the target address of the hyperlink in a table of type LVC_T_HYPE and pass it using set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP Help|http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 ==&amp;gt; Not possible to have more then 128 char in one column in ALV &lt;STRONG&gt;GRID&lt;/STRONG&gt; .. Try the same using ALV &lt;STRONG&gt;LIST&lt;/STRONG&gt; by providing as &lt;STRONG&gt;it's possible in ALV LIST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCAT-OUTPUTLEN = '512'. " Length whatever you want.. but still some limitations are there.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 12:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/queries-regarding-alv-formating/m-p/6478661#M1418581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T12:53:57Z</dc:date>
    </item>
  </channel>
</rss>

