<?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 dialog program query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531663#M242948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me how to create a free txt in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I NEED TO TYPE IN WHATEVER IN NEED AND I NEED TO DISPLAY WHEN I NEED TO DO SO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to create a table for that .if yes what should be the fields in the table.&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, 15 Aug 2006 18:09:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-15T18:09:06Z</dc:date>
    <item>
      <title>dialog program query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531663#M242948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me how to create a free txt in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I NEED TO TYPE IN WHATEVER IN NEED AND I NEED TO DISPLAY WHEN I NEED TO DO SO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to create a table for that .if yes what should be the fields in the table.&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, 15 Aug 2006 18:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531663#M242948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T18:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: dialog program query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531664#M242949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a text editor container, or you can use a full screen editor.  Here is an example program using a text editor in a docking container,  it is essentiall the same thing in your module pool program, only you would substitute a custom control instead of the docking container and you would embed a custom container in your screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001
       no standard page heading.

* Variable for "Text Container" Abap Object
data: editor type ref to cl_gui_textedit,
      docking type ref to cl_gui_docking_container.

data: wa_text like tline-tdline.

data: begin of lines occurs 0.
        include structure tline.
data: end of lines.

data: textlines like tline-tdline occurs 0.
data: syrepid type sy-repid.

parameters: p_check type c.

at selection-screen output.

  syrepid = sy-repid.

  check docking is initial.

  create object docking
              exporting repid     = syrepid
                        dynnr     = sy-dynnr
                        side      = docking-&amp;gt;dock_at_left
                        extension = 500.

  create object editor
      exporting parent = docking.

  perform set_text.

start-of-selection.

  perform write_text.

************************************************************************
*       FORM write_text                                                *
************************************************************************
form write_text.

  data: modified type i.

* Retrieve text from container
  call method editor-&amp;gt;get_text_as_r3table
     exporting
           only_when_modified = space
     importing
           table              = textlines
           is_modified        = modified
     exceptions
           others             = 1.

* Write out contents of text editor
  leave to list-processing.
  loop at textlines into wa_text.
    write:/ wa_text.
  endloop.

endform.

************************************************************************
*      FORM  SET_TEXT
************************************************************************
form set_text.

  lines-tdline = 'Here we are filling the text editor - Line 1'.
  append lines.

  lines-tdline = 'Here we are filling the text editor - Line 2'.
  append lines.

  loop at lines .
    shift lines left deleting leading space.
    append lines to textlines .
  endloop.

* Fill container with text lines
  call method editor-&amp;gt;set_text_as_r3table
     exporting
           table              = textlines
           exceptions
           others             = 1.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 18:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531664#M242949</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-15T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: dialog program query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531665#M242950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to this text edit example program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 18:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program-query/m-p/1531665#M242950</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-08-15T18:21:20Z</dc:date>
    </item>
  </channel>
</rss>

