<?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 Comment Box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079610#M975439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am designing a screen layout. My requirement is, i need to insert a Comment Box in the screen layout. How can i insert a comment Box in the screen layout? It must be allow nearly 10 lines of information &amp;amp; width is 60 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 09:19:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-10T09:19:30Z</dc:date>
    <item>
      <title>Comment Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079610#M975439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am designing a screen layout. My requirement is, i need to insert a Comment Box in the screen layout. How can i insert a comment Box in the screen layout? It must be allow nearly 10 lines of information &amp;amp; width is 60 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079610#M975439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comment Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079611#M975440</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;try to use custom container..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079611#M975440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comment Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079612#M975441</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;is the sceen an input or output screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079612#M975441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comment Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079613#M975442</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;It is an Input &amp;amp; output also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079613#M975442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comment Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079614#M975443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to Design the Custom cotrol in the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you have to use the class &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_TEXTEDIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For making it to work as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use the class please check this sample&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_TEST.
*module create_container_pbo_2000 output.
DATA:
  obj_cust_cont_credential  TYPE REF TO cl_gui_custom_container,
*  obj_cust_cont_character   TYPE REF TO cl_gui_custom_container,
*  obj_cust_cont_preempmnt   TYPE REF TO cl_gui_custom_container,
  obj_text_cred        TYPE REF TO cl_gui_textedit,
*  obj_text_char        TYPE REF TO cl_gui_textedit,
*  obj_text_pemp        TYPE REF TO cl_gui_textedit,
* Internal table to hold text for container reason1
  BEGIN OF i_table_text OCCURS 0,
    line(132) TYPE c,                  " Line text
  END OF i_table_text,

* Internal table to hold text for container reason2
  BEGIN OF i_table_text1 OCCURS 0,
    line(132) TYPE c,                  " Line text
  END OF i_table_text1,

* Internal table to hold text for container looking for another job
  beGIN OF i_table_text2 OCCURS 0,
    line(132) TYPE c,                  " Line text
  END OF i_table_text2.

* Subroutine to create text container for remarks on credentials
  PERFORM get_container_credential.
* Subroutine to create text container for remarks on character
*  PERFORM get_container_character.
* Subroutine to create text container for remarks on preemployeement
*  PERFORM get_container_preempmnt.
call screen 100.
*endmodule.                 " create_container_pbo_2000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_container_credential
*&amp;amp;---------------------------------------------------------------------*
*  Subroutine to create text container for remarks on credentials
*----------------------------------------------------------------------*
* No interface parameters to this subroutine
*----------------------------------------------------------------------*
form get_container_credential .
  IF obj_cust_cont_credential IS INITIAL.
* To create the object custom container and link to the container on
* screen
    CREATE OBJECT obj_cust_cont_credential
        EXPORTING
            container_name = 'CCREDENTIALS'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.

*  To create the a TextEdit Control and link to the custom container
    CREATE OBJECT obj_text_CRED
      EXPORTING
         parent = obj_cust_cont_credential
         wordwrap_mode = cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER
         wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
      EXCEPTIONS
          others = 1.
    IF sy-subrc EQ 0.
* To remove the toolbar
      CALL METHOD obj_text_CRED-&amp;gt;set_toolbar_mode
        EXPORTING
          toolbar_mode           = 0
        EXCEPTIONS
          error_cntl_call_method = 1
          invalid_parameter      = 2
          OTHERS                 = 3.

* To remove the status bar
      CALL METHOD obj_text_CRED-&amp;gt;set_statusbar_mode
        EXPORTING
          statusbar_mode         = 0
        EXCEPTIONS
          error_cntl_call_method = 1
          invalid_parameter      = 2
          OTHERS                 = 3
              .
    ENDIF.                             " IF sy-subrc EQ 0
  ENDIF.                               " IF obj_cust_cont_credential

endform.                               " get_container_credential
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
  SET PF-STATUS 'ZTEST'.
  SET TITLEBAR 'xxx'.

endmodule.                 " STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.
if sy-ucomm EQ 'BACK'.
  leave to screen 0.
endif.
endmodule.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comment-box/m-p/4079614#M975443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:29:42Z</dc:date>
    </item>
  </channel>
</rss>

