<?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: SELECTION-SCREEN COMMENT does not work as documented? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-comment-does-not-work-as-documented/m-p/9055891#M1702305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could have edited, but I chose to reply to my own message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection screen is not as simple as the excerpt above seems. For reasons which are not important here, the screen is defined as a subscreen 0000 with elements included in subscreens 0100 and 0200, and the main selection screen displaying either 0100 or 0200 in addition to a block of common criteria.&lt;/P&gt;&lt;P&gt;Turns out that the behaviour can be re-produced by using the INCLUDE BLOCK statement directly in the main selection screen as well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 0000 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS SUBSCREEN. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b_other &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH FRAME TITLE text-s99. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE. &lt;/P&gt;&lt;P&gt;PARAMETERS: p_tstrun TYPE z_onep_dev_bts_testrun DEFAULT c_true AS CHECKBOX USER-COMMAND p_commit. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (25) text-tst FOR FIELD p_tstrun. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION POS_LOW. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (75) c_logcmt FOR FIELD p_logobj. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b_other. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 0000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Standard selection screen (1000) &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN INCLUDE BLOCKS b_other. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 13:19:57 GMT</pubDate>
    <dc:creator>KjetilKilhavn</dc:creator>
    <dc:date>2012-10-10T13:19:57Z</dc:date>
    <item>
      <title>SELECTION-SCREEN COMMENT does not work as documented?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-comment-does-not-work-as-documented/m-p/9055890#M1702304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen where I wanted to add a changeable comment, and now the text for the parameter is not displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE. &lt;/P&gt;&lt;P&gt;PARAMETERS: p_tstrun TYPE z_onep_dev_bts_testrun DEFAULT gc_xfeld_true AS CHECKBOX USER-COMMAND p_commit. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (25) text-tst FOR FIELD p_tstrun. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION POS_LOW. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (75) c_logcmt FOR FIELD p_logobj. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the &lt;A href="http://help.sap.com/abapdocu_70/en/ABAPSELECTION-SCREEN_COMMENT.htm"&gt;documentation&lt;/A&gt; this should work just fine (I &lt;SPAN style="text-decoration: underline;"&gt;have&lt;/SPAN&gt; tried replacing text-tst with text-999), but the text from text-tst is not displayed, only the text from c_logcmt. However, if I use a variable name, e.g. c_tstrun, instead of text-tst and initialise this variable with text-tst the text is displayed as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;&lt;P&gt;I looked for relevant OSS Notes, but could not find any. I haven't reported it either (yet...).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-comment-does-not-work-as-documented/m-p/9055890#M1702304</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2012-10-10T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION-SCREEN COMMENT does not work as documented?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-comment-does-not-work-as-documented/m-p/9055891#M1702305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could have edited, but I chose to reply to my own message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection screen is not as simple as the excerpt above seems. For reasons which are not important here, the screen is defined as a subscreen 0000 with elements included in subscreens 0100 and 0200, and the main selection screen displaying either 0100 or 0200 in addition to a block of common criteria.&lt;/P&gt;&lt;P&gt;Turns out that the behaviour can be re-produced by using the INCLUDE BLOCK statement directly in the main selection screen as well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 0000 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS SUBSCREEN. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b_other &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH FRAME TITLE text-s99. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE. &lt;/P&gt;&lt;P&gt;PARAMETERS: p_tstrun TYPE z_onep_dev_bts_testrun DEFAULT c_true AS CHECKBOX USER-COMMAND p_commit. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (25) text-tst FOR FIELD p_tstrun. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION POS_LOW. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (75) c_logcmt FOR FIELD p_logobj. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b_other. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 0000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Standard selection screen (1000) &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN INCLUDE BLOCKS b_other. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 13:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-comment-does-not-work-as-documented/m-p/9055891#M1702305</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2012-10-10T13:19:57Z</dc:date>
    </item>
  </channel>
</rss>

