<?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: Dialog Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333498#M1396366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nisha,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;You understand my problem correctly. I want to save the text first and then i want to use it in another program.&lt;/P&gt;&lt;P&gt;But still I am littile bit confuse. My confusion is whether i have to create text object, text name  and text id in STXH table first or there is no need create in STXH.&lt;/P&gt;&lt;P&gt;So can you pls send me steps in detail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2009 06:53:44 GMT</pubDate>
    <dc:creator>former_member440649</dc:creator>
    <dc:date>2009-11-03T06:53:44Z</dc:date>
    <item>
      <title>Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333495#M1396363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have created a screen For Data entry which is for shipment Details. &lt;/P&gt;&lt;P&gt;In that i created long text by using custom container.&lt;/P&gt;&lt;P&gt;i Wrote following code.&lt;/P&gt;&lt;P&gt;module PBO output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if CUSTOM_CONTAINER is initial.&lt;/P&gt;&lt;P&gt;CREATE OBJECT CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTAINER_NAME = 'TEDITOR'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 1&lt;/P&gt;&lt;P&gt;CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;P&gt;CREATE_ERROR = 3&lt;/P&gt;&lt;P&gt;LIFETIME_ERROR = 4&lt;/P&gt;&lt;P&gt;LIFETIME_DYNPRO_DYNPRO_LINK = 5.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;CREATE OBJECT TEXT_EDITOR&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PARENT = CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;WORDWRAP_MODE = CL_GUI_TEXTEDIT=&amp;gt;WORDWRAP_AT_WINDOWBORDER&lt;/P&gt;&lt;P&gt;WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_CNTL_CREATE = 1&lt;/P&gt;&lt;P&gt;ERROR_CNTL_INIT = 2&lt;/P&gt;&lt;P&gt;ERROR_CNTL_LINK = 3&lt;/P&gt;&lt;P&gt;ERROR_DP_CREATE = 4&lt;/P&gt;&lt;P&gt;GUI_TYPE_NOT_SUPPORTED = 5.&lt;/P&gt;&lt;P&gt;endmodule.                 " PBO  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is how to store this text  because i want to use this text in another report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 12:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333495#M1396363</guid>
      <dc:creator>former_member440649</dc:creator>
      <dc:date>2009-11-02T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333496#M1396364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_textedit TYPE REF TO cl_gui_textedit,
      r_cont     TYPE REF TO cl_gui_custom_container.

DATA: itab TYPE TABLE OF char255.

DATA: eename(10) TYPE c,
      prev_eename(10) TYPE c.

CALL SCREEN 100.

MODULE pbo OUTPUT.
  IF r_cont IS INITIAL.
    CREATE OBJECT r_cont
      EXPORTING
        container_name              = 'CUSTOM_CONTROL'.

    CREATE OBJECT r_textedit
      EXPORTING
        wordwrap_mode          = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
        parent                 = r_cont.
  ENDIF.

  CALL METHOD r_textedit-&amp;gt;set_text_as_r3table
    EXPORTING
      table = itab.  


ENDMODULE.                   


MODULE pai INPUT.
  REFRESH itab.

  IF prev_eename is not INITIAL and
     eename = prev_eename.

    CALL METHOD r_textedit-&amp;gt;get_text_as_r3table   
      IMPORTING
        table = itab.   "here your entered text stored in ITAB
  ENDIF.

  prev_eename = eename.
ENDMODULE.                    "pai INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 15:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333496#M1396364</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-11-02T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333497#M1396365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Marcin rightly said, if you want to use the entered text in the same program, you should call the method get_text_as_r3table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your requirement is to save the text, and use it later in another report, then you should use the concept of &lt;STRONG&gt;Text Object&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its explained simply in the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/How" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/How&lt;/A&gt;&lt;EM&gt;to&lt;/EM&gt;save&lt;EM&gt;and&lt;/EM&gt;retreive&lt;EM&gt;Text&lt;/EM&gt;objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to call SAVE_TEXT to save the entered text, and READ_TEXT to get back the saved text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if your problem is not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 17:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333497#M1396365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-02T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333498#M1396366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nisha,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;You understand my problem correctly. I want to save the text first and then i want to use it in another program.&lt;/P&gt;&lt;P&gt;But still I am littile bit confuse. My confusion is whether i have to create text object, text name  and text id in STXH table first or there is no need create in STXH.&lt;/P&gt;&lt;P&gt;So can you pls send me steps in detail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 06:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333498#M1396366</guid>
      <dc:creator>former_member440649</dc:creator>
      <dc:date>2009-11-03T06:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333499#M1396367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you need to create Z-Text object, using SE75.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you go through the link I pasted in my previous reply ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is another link, which has detailed steps with screenshots:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1563399350DB00914972311903381490End?blog=/pub/wlg/13574%3Fpage%3Dlast%26x-maxdepth%3D0" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1563399350DB00914972311903381490End?blog=/pub/wlg/13574%3Fpage%3Dlast%26x-maxdepth%3D0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below one is also good.&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Long+Texts" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Long+Texts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you face any issues while coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nisha Vengal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nisha G. Vengal on Nov 4, 2009 12:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 11:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/6333499#M1396367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T11:08:10Z</dc:date>
    </item>
  </channel>
</rss>

