<?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 associate the comment with the button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288126#M786642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts:&lt;/P&gt;&lt;P&gt;I have a problem:  do you know how to associate the comment with the button. In Selection Screen, the FOR FIELD is used to associate the comment with the PARAMETERS and SELECT-OPTIONS, but it doesn't work for button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(30) text-802 y07 MODIF ID y97.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong:&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(30) text-802 &lt;STRONG&gt;for field&lt;/STRONG&gt; y07 MODIF ID y97.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 05:50:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T05:50:34Z</dc:date>
    <item>
      <title>associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288126#M786642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts:&lt;/P&gt;&lt;P&gt;I have a problem:  do you know how to associate the comment with the button. In Selection Screen, the FOR FIELD is used to associate the comment with the PARAMETERS and SELECT-OPTIONS, but it doesn't work for button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(30) text-802 y07 MODIF ID y97.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong:&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(30) text-802 &lt;STRONG&gt;for field&lt;/STRONG&gt; y07 MODIF ID y97.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 05:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288126#M786642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T05:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288127#M786643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob &lt;/P&gt;&lt;P&gt;                why u want to use for field statment for providing the comment to a button.&lt;/P&gt;&lt;P&gt;i have seen your code and tried at my end , if u simply write comment statment with text-element fot button text , it will work&lt;/P&gt;&lt;P&gt;here is your code.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 31(50) text-002 USER-COMMAND rfsh MODIF ID y07.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(25) text-001 MODIF ID y97.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i understood ur problem correctly &lt;/P&gt;&lt;P&gt;rewards if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 06:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288127#M786643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288128#M786644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION-SCREEN COMMENT [/]&amp;lt;pos(len)&amp;gt; &amp;lt;comm&amp;gt; FOR FIELD &amp;lt;f&amp;gt;&lt;/P&gt;&lt;P&gt;MODIF ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement writes the &amp;lt;comm&amp;gt; comment on the selection screen. For &amp;lt;comm&amp;gt;, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length &amp;lt;len&amp;gt;. The field must be filled before the selection screen is called. You must always specify the &amp;lt;pos(len)&amp;gt; addition. Only if there are several elements in one line, can you omit &amp;lt;pos&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text &amp;lt;comm&amp;gt; will be displayed, starting in column &amp;lt;pos&amp;gt;, for a length of &amp;lt;len&amp;gt;. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use FOR FIELD &amp;lt;f&amp;gt; to assign a field label to the comment. &amp;lt;f&amp;gt; can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field &amp;lt;f&amp;gt; is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIF ID &amp;lt;key&amp;gt; addition has the same function as for the PARAMETERS statement. You can use it to modify the comment before the selection screen is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 10(20) TEXT-001 FOR FIELD PARM.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION POS_LOW.&lt;/P&gt;&lt;P&gt;PARAMETERS PARM LIKE SAPLANE-PLANETYPE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 06:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288128#M786644</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2008-01-18T06:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288129#M786645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the text in initialization event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.
*SELECTION-SCREEN COMMENT 1(30) text-802 y07 MODIF ID y97.  " &amp;lt;-- Commented
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
MOVE 'BUTT TEXT' TO BUTT. " &amp;lt;--- Text for Push Button
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 06:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288129#M786645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T06:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288130#M786646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, all.&lt;/P&gt;&lt;P&gt;Actually I wanna add a text before the button, just like a label for a input field.&lt;/P&gt;&lt;P&gt;After I searched from the F1 help for Commnect. It seems impossible. "If the addition FOR FIELD is used, the output field is linked to a parameter or sel selection criterion of the same program defined by PARAMETERS or SELECT-OPTIONS ". It doesn't allow to associate to the button. &lt;/P&gt;&lt;P&gt;Now I would use your ways and add the text on the button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 07:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288130#M786646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T07:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: associate the comment with the button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288131#M786647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, you can do it as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-802.  "&amp;lt;--- Label
SELECTION-SCREEN PUSHBUTTON 31(57) butt USER-COMMAND rfsh MODIF ID y07.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.

MOVE 'BUTT TEXT' TO BUTT. "&amp;lt;-- Text to be displayed on button, For no text, ignore passing the value in Initialization event.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the above code, create the text element, execute and check the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 07:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/associate-the-comment-with-the-button/m-p/3288131#M786647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T07:27:45Z</dc:date>
    </item>
  </channel>
</rss>

