<?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: how to code commet box in the dialouge programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358206#M1233538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For comment use &lt;STRONG&gt;textedit&lt;/STRONG&gt; control like in below program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_textedit_fm.

DATA: it_str TYPE TABLE OF char72.

CALL SCREEN 100.

MODULE pbo_0100 OUTPUT.
  SET PF-STATUS space.

  CALL FUNCTION 'RH_EDITOR_SET'
    EXPORTING
      repid          = sy-repid
      dynnr          = '0100'
      controlname    = 'CONTAINER'
      max_cols       = 72
      max_lines      = 20
    TABLES
      lines          = it_str
    EXCEPTIONS
      create_error   = 1
      internal_error = 2
      OTHERS         = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                    "pbo_0100 OUTPUT


MODULE pai_0100 INPUT.
  IF sy-ucomm = 'BACK' OR
     sy-ucomm = '%EX'  OR
     sy-ucomm = 'RW'.
    LEAVE TO SCREEN 0.
  ENDIF.

  CALL FUNCTION 'RH_EDITOR_GET'
    EXPORTING
      controlname    = 'CONTAINER'
      col_width      = 72
    TABLES
      lines          = it_str
    EXCEPTIONS
      internal_error = 1
      OTHERS         = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                    "pai_0100 INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...or see this demo program &lt;STRONG&gt;SAPTEXTEDIT_DEMO_1&lt;/STRONG&gt; for textedit control by means of &lt;EM&gt;cl_gui_textedit&lt;/EM&gt; class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 16:40:39 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-03-24T16:40:39Z</dc:date>
    <item>
      <title>how to code commet box in the dialouge programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358205#M1233537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, &lt;/P&gt;&lt;P&gt;             My reqirement is i need add a commet fieds in dialouge programming, i have a standered function module popup_to_confirm ,i have everything in this like title bar ,yes and no buttons,but after the buttons i need to write comments in commet box so how can i do this please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358205#M1233537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to code commet box in the dialouge programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358206#M1233538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For comment use &lt;STRONG&gt;textedit&lt;/STRONG&gt; control like in below program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_textedit_fm.

DATA: it_str TYPE TABLE OF char72.

CALL SCREEN 100.

MODULE pbo_0100 OUTPUT.
  SET PF-STATUS space.

  CALL FUNCTION 'RH_EDITOR_SET'
    EXPORTING
      repid          = sy-repid
      dynnr          = '0100'
      controlname    = 'CONTAINER'
      max_cols       = 72
      max_lines      = 20
    TABLES
      lines          = it_str
    EXCEPTIONS
      create_error   = 1
      internal_error = 2
      OTHERS         = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                    "pbo_0100 OUTPUT


MODULE pai_0100 INPUT.
  IF sy-ucomm = 'BACK' OR
     sy-ucomm = '%EX'  OR
     sy-ucomm = 'RW'.
    LEAVE TO SCREEN 0.
  ENDIF.

  CALL FUNCTION 'RH_EDITOR_GET'
    EXPORTING
      controlname    = 'CONTAINER'
      col_width      = 72
    TABLES
      lines          = it_str
    EXCEPTIONS
      internal_error = 1
      OTHERS         = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                    "pai_0100 INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...or see this demo program &lt;STRONG&gt;SAPTEXTEDIT_DEMO_1&lt;/STRONG&gt; for textedit control by means of &lt;EM&gt;cl_gui_textedit&lt;/EM&gt; class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 16:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358206#M1233538</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-03-24T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to code commet box in the dialouge programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358207#M1233539</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;just copy the below code and paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

where p_comment is the text which is already ther if it there it will allow to change in run time else it will allow to enter new text with dialog box.

  DATA : p_answer TYPE char30.

  CALL FUNCTION 'POPUP_TO_GET_VALUE'
    EXPORTING
      fieldname = 'DESCRIPTION'
      tabname   = 'WOSCR_EXI_VALT'
      titel     = 'dialog for code comment'
      valuein   = p_comment   "Old comment
    IMPORTING
      answer    = p_answer
      valueout  = p_comment.   "After editing new comment is added 
  IF sy-subrc &amp;lt;&amp;gt; 0.
  ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 17:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-code-commet-box-in-the-dialouge-programming/m-p/5358207#M1233539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T17:56:31Z</dc:date>
    </item>
  </channel>
</rss>

