<?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 ALV List display - header width adjust in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323938#M1395017</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 am using REUSE_ALV_LIST_DISPLAY for my ALV display.The width of the ALV varies for different inputs.&lt;/P&gt;&lt;P&gt;I have a header followed by sub heading.Subheading has been structured into boxes on top of the fields label using TOP OF PAGE.Is there a way to fix the right alignment of the subheading with the width of the ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE:/50 'heading'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE: 145 'subheading'.&lt;/P&gt;&lt;P&gt;    WRITE: 169 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the value of sy-vline be adjusted as per the width of my ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2009 10:14:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-21T10:14:54Z</dc:date>
    <item>
      <title>ALV List display - header width adjust</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323938#M1395017</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 am using REUSE_ALV_LIST_DISPLAY for my ALV display.The width of the ALV varies for different inputs.&lt;/P&gt;&lt;P&gt;I have a header followed by sub heading.Subheading has been structured into boxes on top of the fields label using TOP OF PAGE.Is there a way to fix the right alignment of the subheading with the width of the ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE:/50 'heading'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE: 145 'subheading'.&lt;/P&gt;&lt;P&gt;    WRITE: 169 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the value of sy-vline be adjusted as per the width of my ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323938#M1395017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV List display - header width adjust</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323939#M1395018</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;You can dynamically position text using the write statement -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;This example outputs a text field text at different positions, with different output lengths. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text TYPE string VALUE '0123456789ABCDEF', &lt;/P&gt;&lt;P&gt;      col  TYPE i VALUE 25, &lt;/P&gt;&lt;P&gt;      len  TYPE i VALUE 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE text. &lt;/P&gt;&lt;P&gt;WRITE /5(10) text. &lt;/P&gt;&lt;P&gt;WRITE AT col(len) text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to determine the width of your ALV before the TOP-OF-PAGE event is triggered and then pass the position value into the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323939#M1395018</guid>
      <dc:creator>david_lees</dc:creator>
      <dc:date>2009-10-21T10:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV List display - header width adjust</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323940#M1395019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the prompt reply...I am sure your suggestion is just fine,but how will i determine the width of ALV before event top of page is triggered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323940#M1395019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T10:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV List display - header width adjust</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323941#M1395020</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;In the example you would need to determine the length manually and the position value would be in variable LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure of your criteria for the width your ALV however it could be that you calculate the length of fields in your internal table before it is output and perhaps take the maximum value? You can use the in built method STRLEN for example to work out the length of a data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323941#M1395020</guid>
      <dc:creator>david_lees</dc:creator>
      <dc:date>2009-10-21T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV List display - header width adjust</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323942#M1395021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will confirm with client for the correct length option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-display-header-width-adjust/m-p/6323942#M1395021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T10:50:42Z</dc:date>
    </item>
  </channel>
</rss>

