<?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 custom control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570850#M586955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;what is custom control. what is the use of this.and how to create this &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;prajwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 09:59:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T09:59:56Z</dc:date>
    <item>
      <title>custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570850#M586955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;what is custom control. what is the use of this.and how to create this &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;prajwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570850#M586955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570851#M586956</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;         You can display logo(s) on your screen using the custom control function. A custom control is an area on the screen, created using the screen painter. Custom controls are used to embed controls. Container controls are instances of special global classes from the SAP Control Framework. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The global class for custom controls is called CL_GUI_CUSTOM_CONTAINER. To link a custom control to a container control, pass the custom control name to the CONTAINER_NAME parameter of the container control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARDS POINT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ASHOK KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570851#M586956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570852#M586957</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;&lt;/P&gt;&lt;P&gt;check with this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls--part-i&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls-control-layouts--part-ii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570852#M586957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570853#M586958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Area on a screen in which you can display GUI-Controls. &lt;/P&gt;&lt;P&gt;                                       A custom control is an area on a screen. You create them in the Screen Painter, and, like all other screen objects, they have a unique name. You use custom controls to embed controls. A control is a software component on the presentation server, which can be either an ActiveX control or a JavaBean, depending on the SAPgui you are using. They allow you to perform tasks, such as editing texts, locally on the presentation server. The control is driven by the application logic, which still runs on the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for refrence u can refer to program DEMO_CUSTOM_CONTROL in IDES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570853#M586958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570854#M586959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Custom control is a parent control for other controls like ALV Grid, Picture control&lt;/P&gt;&lt;P&gt;    Following is the tutorial on creating Cutom control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/e4/6013361d5af835e10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_CUSTOM_CONTROL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570854#M586959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570855#M586960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Custom Controls&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;A custom control is an area on a screen. You create them in the Screen Painter, and, like all other screen objects, they have a unique name. You use custom controls to embed controls. A control is a software component on the presentation server, which can be either an ActiveX control or a JavaBean, depending on the SAPgui you are using. They allow you to perform tasks, such as editing texts, locally on the presentation server. The control is driven by the application logic, which still runs on the application server.&lt;BR /&gt;&lt;BR /&gt;The SAP Control Framework&lt;BR /&gt;&lt;BR /&gt;The controls on the presentation server and the ABAP application programs on the application server communicate using the Structure link SAP Control Framework. This is programmed in ABAP Objects, and contains a set of global classes that you can find in the Class Browser under Basis ® Frontend services. These classes encapsulate the communication between the application server and presentation server, which is implemented using Remote Function Call.&lt;BR /&gt;&lt;BR /&gt;All application controls are encapsulated in a global class. You can find the SAP Basis controls in the Class Browser under Basis ® Frontend Services or Basis ® Component Integration. Programs that use controls on a screen work with the methods and events of the global classes that encapsulates them.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Container Controls&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you can work with a custom control on a screen, you must assign a Structure link SAP Container Control to it. Container controls are instances of special global classes from the SAP Control Framework. The global class for custom controls is called CL_GUI_CUSTOM_CONTAINER. To link a custom control to a container control, pass the custom control name to the CONTAINER_NAME parameter of the container control constructor when you instantiate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as using custom containers, you can link controls to a screen using a SAP Docking Container. This is encapsulated in the global class CL_GUI_DOCKING_CONTAINER. The SAP Docking Container does not place the control within a screen. Instead, it attaches it to one of the four edges. You can nest containers. For example, you can use the SAP Splitter Container (classes CL_GUI_EASY_SPLITTER_CONTAINER or CL_GUI_SPLITTER_CONTAINER) within other containers. This allows you to split a custom control or docking control into more than one area, allowing you to embed more than one control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Constants                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;constants: c_me like trdir-cnam value 'VNDOVV',&lt;/P&gt;&lt;P&gt;           c_myurl type scarr-url value&lt;/P&gt;&lt;P&gt;              'http://www.brainbench.com/transcript.jsp?pid=147699',&lt;/P&gt;&lt;P&gt;           c_width  type i value 260,&lt;/P&gt;&lt;P&gt;           c_height type i value 130.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Types                                                         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;types: begin of t_pgm,&lt;/P&gt;&lt;P&gt;         year(4) type c,&lt;/P&gt;&lt;P&gt;         name like trdir-name,&lt;/P&gt;&lt;P&gt;       end of t_pgm,&lt;/P&gt;&lt;P&gt;       begin of t_pgmkey,&lt;/P&gt;&lt;P&gt;         id type i,&lt;/P&gt;&lt;P&gt;         name like trdir-name,&lt;/P&gt;&lt;P&gt;       end of t_pgmkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Data                                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data: it_pgmkey type table of t_pgmkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Classes                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Definitions                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class screen_init definition create private.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    class-methods init_screen returning value(this)&lt;/P&gt;&lt;P&gt;                              type ref to screen_init.&lt;/P&gt;&lt;P&gt;    methods  constructor.&lt;/P&gt;&lt;P&gt;  private section.&lt;/P&gt;&lt;P&gt;    class-data a_id type i.&lt;/P&gt;&lt;P&gt;    data: splitter_h type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;          splitter_v type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;          picture type ref to cl_gui_picture,&lt;/P&gt;&lt;P&gt;          tree type ref to cl_gui_simple_tree.&lt;/P&gt;&lt;P&gt;    methods: fill_tree,&lt;/P&gt;&lt;P&gt;             fill_picture.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class screen_handler definition.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    methods: constructor importing container&lt;/P&gt;&lt;P&gt;               type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;             handle_node_double_click&lt;/P&gt;&lt;P&gt;               for event node_double_click&lt;/P&gt;&lt;P&gt;               of cl_gui_simple_tree&lt;/P&gt;&lt;P&gt;               importing node_key,&lt;/P&gt;&lt;P&gt;             handle_picture_double_click&lt;/P&gt;&lt;P&gt;               for event picture_dblclick&lt;/P&gt;&lt;P&gt;               of cl_gui_picture.&lt;/P&gt;&lt;P&gt;  private section.&lt;/P&gt;&lt;P&gt;    data: html_viewer type ref to cl_gui_html_viewer,&lt;/P&gt;&lt;P&gt;          editor type ref to cl_gui_textedit.&lt;/P&gt;&lt;P&gt;    methods: fill_html,&lt;/P&gt;&lt;P&gt;             fill_src  importing programid type trdir-name.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Implementations                                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class screen_init implementation.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method init_screen.&lt;/P&gt;&lt;P&gt;    data screen type ref to screen_init.&lt;/P&gt;&lt;P&gt;    create object screen.&lt;/P&gt;&lt;P&gt;    this = screen.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method constructor.&lt;/P&gt;&lt;P&gt;    data: events type cntl_simple_events,&lt;/P&gt;&lt;P&gt;          event like line of events,&lt;/P&gt;&lt;P&gt;          event_handler type ref to screen_handler,&lt;/P&gt;&lt;P&gt;          container_left type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;          container_right type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;          container_top type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;          container_bottom type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;    create object splitter_h&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;           parent = cl_gui_container=&amp;gt;screen0&lt;/P&gt;&lt;P&gt;           rows = 1&lt;/P&gt;&lt;P&gt;           columns = 2.&lt;/P&gt;&lt;P&gt;    call method splitter_h-&amp;gt;set_border&lt;/P&gt;&lt;P&gt;         exporting border = cl_gui_cfw=&amp;gt;false.&lt;/P&gt;&lt;P&gt;    call method splitter_h-&amp;gt;set_column_mode&lt;/P&gt;&lt;P&gt;         exporting mode = splitter_h-&amp;gt;mode_absolute.&lt;/P&gt;&lt;P&gt;    call method splitter_h-&amp;gt;set_column_width&lt;/P&gt;&lt;P&gt;         exporting id = 1&lt;/P&gt;&lt;P&gt;         width = c_width.&lt;/P&gt;&lt;P&gt;    container_left  = splitter_h-&amp;gt;get_container( row = 1 column = 1 ).&lt;/P&gt;&lt;P&gt;    container_right = splitter_h-&amp;gt;get_container( row = 1 column = 2 ).&lt;/P&gt;&lt;P&gt;    create object splitter_v&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;           parent = container_left&lt;/P&gt;&lt;P&gt;           rows = 2&lt;/P&gt;&lt;P&gt;           columns = 1.&lt;/P&gt;&lt;P&gt;    call method splitter_v-&amp;gt;set_border&lt;/P&gt;&lt;P&gt;         exporting border = cl_gui_cfw=&amp;gt;false.&lt;/P&gt;&lt;P&gt;    call method splitter_v-&amp;gt;set_row_mode&lt;/P&gt;&lt;P&gt;         exporting mode = splitter_v-&amp;gt;mode_absolute.&lt;/P&gt;&lt;P&gt;    call method splitter_v-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;         exporting id = 1&lt;/P&gt;&lt;P&gt;         height = c_height.&lt;/P&gt;&lt;P&gt;    container_top    = splitter_v-&amp;gt;get_container( row = 1 column = 1 ).&lt;/P&gt;&lt;P&gt;    container_bottom = splitter_v-&amp;gt;get_container( row = 2 column = 1 ).&lt;/P&gt;&lt;P&gt;    create object picture&lt;/P&gt;&lt;P&gt;           exporting parent = container_top.&lt;/P&gt;&lt;P&gt;    create object tree&lt;/P&gt;&lt;P&gt;           exporting parent = container_bottom&lt;/P&gt;&lt;P&gt;                     node_selection_mode =&lt;/P&gt;&lt;P&gt;                            cl_gui_simple_tree=&amp;gt;node_sel_mode_single.&lt;/P&gt;&lt;P&gt;    create object  event_handler&lt;/P&gt;&lt;P&gt;           exporting container = container_right.&lt;/P&gt;&lt;P&gt;    event-eventid = cl_gui_simple_tree=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;    event-appl_event = ' '.   "system event, does not trigger PAI&lt;/P&gt;&lt;P&gt;    append event to events.&lt;/P&gt;&lt;P&gt;    call method tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;         exporting events = events.&lt;/P&gt;&lt;P&gt;    clear: event, events[].&lt;/P&gt;&lt;P&gt;    event-eventid = cl_gui_picture=&amp;gt;eventid_picture_dblclick.&lt;/P&gt;&lt;P&gt;    event-appl_event = ' '.   "system event, does not trigger PAI&lt;/P&gt;&lt;P&gt;    append event to events.&lt;/P&gt;&lt;P&gt;    call method picture-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;         exporting events = events.&lt;/P&gt;&lt;P&gt;    set handler: event_handler-&amp;gt;handle_node_double_click for tree,&lt;/P&gt;&lt;P&gt;                 event_handler-&amp;gt;handle_picture_double_click for picture.&lt;/P&gt;&lt;P&gt;    call method: me-&amp;gt;fill_picture,&lt;/P&gt;&lt;P&gt;                 me-&amp;gt;fill_tree.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method fill_picture.&lt;/P&gt;&lt;P&gt;    call method:&lt;/P&gt;&lt;P&gt;      picture-&amp;gt;load_picture_from_sap_icons exporting icon = '@J4@',&lt;/P&gt;&lt;P&gt;      picture-&amp;gt;set_display_mode&lt;/P&gt;&lt;P&gt;        exporting display_mode = picture-&amp;gt;display_mode_fit_center.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method fill_tree.&lt;/P&gt;&lt;P&gt;    data: node_table type table of abdemonode,&lt;/P&gt;&lt;P&gt;          node type abdemonode,&lt;/P&gt;&lt;P&gt;          w_pgm type t_pgm,&lt;/P&gt;&lt;P&gt;          w_cdat type rdir_cdate,&lt;/P&gt;&lt;P&gt;          it_pgm type table of t_pgm,&lt;/P&gt;&lt;P&gt;          w_pgmkey type t_pgmkey.&lt;/P&gt;&lt;P&gt;    clear: a_id, it_pgmkey[].&lt;/P&gt;&lt;P&gt;    select distinct name cdat from trdir into (w_pgm-name, w_cdat)&lt;/P&gt;&lt;P&gt;           where cnam = c_me.&lt;/P&gt;&lt;P&gt;      w_pgm-year = w_cdat(4).&lt;/P&gt;&lt;P&gt;      append w_pgm to it_pgm.&lt;/P&gt;&lt;P&gt;      clear w_pgm.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    sort it_pgm.&lt;/P&gt;&lt;P&gt;    node-hidden = ' '.                 " All nodes are visible,&lt;/P&gt;&lt;P&gt;    node-disabled = ' '.               " selectable,&lt;/P&gt;&lt;P&gt;    node-isfolder = 'X'.               " a folder,&lt;/P&gt;&lt;P&gt;    node-expander = ' '.               " have no '+' sign for expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at it_pgm into w_pgm.&lt;/P&gt;&lt;P&gt;      at new year.&lt;/P&gt;&lt;P&gt;        node-node_key = w_pgm-year.&lt;/P&gt;&lt;P&gt;        clear node-relatkey.&lt;/P&gt;&lt;P&gt;        clear node-relatship.&lt;/P&gt;&lt;P&gt;        node-text = w_pgm-year.&lt;/P&gt;&lt;P&gt;        node-n_image =   ' '.&lt;/P&gt;&lt;P&gt;        node-exp_image = ' '.&lt;/P&gt;&lt;P&gt;        append node to node_table.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;      at new name.&lt;/P&gt;&lt;P&gt;        add 1 to a_id.&lt;/P&gt;&lt;P&gt;        node-node_key = w_pgmkey-id = a_id.&lt;/P&gt;&lt;P&gt;        w_pgmkey-name = w_pgm-name.&lt;/P&gt;&lt;P&gt;        node-relatkey = w_pgm-year.&lt;/P&gt;&lt;P&gt;        node-relatship = cl_gui_simple_tree=&amp;gt;relat_last_child.&lt;/P&gt;&lt;P&gt;        node-text = w_pgm-name.&lt;/P&gt;&lt;P&gt;        node-n_image =   '@0P@'.&lt;/P&gt;&lt;P&gt;        node-exp_image = '@0P@'.&lt;/P&gt;&lt;P&gt;        append w_pgmkey to it_pgmkey.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;      append node to node_table.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    call method tree-&amp;gt;add_nodes&lt;/P&gt;&lt;P&gt;         exporting table_structure_name = 'ABDEMONODE'&lt;/P&gt;&lt;P&gt;                   node_table = node_table.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;class screen_handler implementation.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method constructor.&lt;/P&gt;&lt;P&gt;    create object: html_viewer exporting parent = container,&lt;/P&gt;&lt;P&gt;                   editor      exporting parent = container&lt;/P&gt;&lt;P&gt;                                         wordwrap_mode =&lt;/P&gt;&lt;P&gt;                      cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;P&gt;                                         wordwrap_position = 72.&lt;/P&gt;&lt;P&gt;    call method: fill_html,&lt;/P&gt;&lt;P&gt;                editor-&amp;gt;set_readonly_mode exporting readonly_mode = 1.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method handle_node_double_click.&lt;/P&gt;&lt;P&gt;    data: w_name type programm,&lt;/P&gt;&lt;P&gt;          w_id type i,&lt;/P&gt;&lt;P&gt;          w_year(4) type c,&lt;/P&gt;&lt;P&gt;          w_pgmkey type t_pgmkey.&lt;/P&gt;&lt;P&gt;    w_name = node_key+4.&lt;/P&gt;&lt;P&gt;    w_id = w_name.&lt;/P&gt;&lt;P&gt;    clear w_name.&lt;/P&gt;&lt;P&gt;    read table it_pgmkey into w_pgmkey with key id = w_id&lt;/P&gt;&lt;P&gt;                                       binary search.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      w_name = w_pgmkey-name.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    w_year = node_key(4).&lt;/P&gt;&lt;P&gt;    if w_name is initial.&lt;/P&gt;&lt;P&gt;      call method: fill_html,&lt;/P&gt;&lt;P&gt;                   html_viewer-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;                   editor-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      call method: fill_src exporting programid = w_name,&lt;/P&gt;&lt;P&gt;                   editor-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;                   html_viewer-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method handle_picture_double_click.&lt;/P&gt;&lt;P&gt;    call method: fill_html,&lt;/P&gt;&lt;P&gt;                 html_viewer-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;                 editor-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;    call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method fill_html.&lt;/P&gt;&lt;P&gt;    call method html_viewer-&amp;gt;show_url exporting url = c_myurl.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  method fill_src.&lt;/P&gt;&lt;P&gt;    types t_line(72) type c.&lt;/P&gt;&lt;P&gt;    data src type table of t_line.&lt;/P&gt;&lt;P&gt;    read report programid into src.&lt;/P&gt;&lt;P&gt;    call method: editor-&amp;gt;delete_text,&lt;/P&gt;&lt;P&gt;                 editor-&amp;gt;set_text_as_r3table exporting table = src[].&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Data                                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data this_screen type ref to screen_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Program execution                                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;load-of-program.&lt;/P&gt;&lt;P&gt;  call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Dialog Modules PBO                                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'SCREEN_100'.&lt;/P&gt;&lt;P&gt;  set titlebar 'TIT_100'.&lt;/P&gt;&lt;P&gt;  this_screen = screen_init=&amp;gt;init_screen( ).&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Dialog Modules PAI                                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;module cancel input.&lt;/P&gt;&lt;P&gt;  leave program.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2570855#M586960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:11:29Z</dc:date>
    </item>
  </channel>
</rss>

