<?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: classes inside function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3487999#M838656</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;u can call the predefined classes inside the function module.&lt;/P&gt;&lt;P&gt;do the coding for displaying ALV through OOPS using docking controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 11:04:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-12T11:04:46Z</dc:date>
    <item>
      <title>classes inside function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3487998#M838655</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;how to use class definition(OOPS) concept inside the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an internal table in the function module which is local to this FM now i want to display that table in an ALV from the function module. i want to use OOPS concept for since i have some requirements also which is based on OOPS concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one know about this, kindly share me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3487998#M838655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: classes inside function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3487999#M838656</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;u can call the predefined classes inside the function module.&lt;/P&gt;&lt;P&gt;do the coding for displaying ALV through OOPS using docking controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3487999#M838656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: classes inside function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3488000#M838657</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;may i know what is this docking controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3488000#M838657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: classes inside function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3488001#M838658</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 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;STRONG&gt;example code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : g_dock TYPE REF TO cl_gui_docking_container,
g_split TYPE REF TO cl_gui_easy_splitter_container,
g_cont1 TYPE REF TO cl_gui_container,
g_cont2 TYPE REF TO cl_gui_container,
g_grid1 TYPE REF TO cl_gui_alv_grid,
g_grid2 TYPE REF TO cl_gui_alv_grid.


data:i_mara type mara occurs 0 with header line.
data:i_kna1 type kna1 occurs 0 with header line.

* i_mara is an internal table of structure MARA
SELECT * FROM mara INTO TABLE i_mara.

* i_kna1 is an internal table of structure KNA1

SELECT * FROM kna1 INTO TABLE i_kna1.

* To create an Object of type Docking Container

CREATE OBJECT g_dock
EXPORTING
side = cl_gui_docking_container=&amp;gt;dock_at_top
extension = 200 .

* To Create an Object of Type Split Container. Here we can see that the Docking
*Container Created above has been used as a parent .

CREATE OBJECT g_split
EXPORTING
parent = g_dock
orientation = 1 .

* Easy Split container splits one Control into 2 manageable controls, each of them is used
* to handle one GUI Container each

g_cont1 = g_split-&amp;gt;top_left_container.
g_cont2 = g_split-&amp;gt;bottom_right_container.

* To Create an Object of type Grid . Here we can see that the Left Split Container
* Created above has been used as a parent .

CREATE OBJECT g_grid1
EXPORTING
i_parent = g_cont1 .

* To Create an Object of type Grid . Here we can see that the Right Split Container
* Created above has been used as a parent .

CREATE OBJECT g_grid2
EXPORTING
i_parent = g_cont2 .

* The method of Grid Control Object is used to display the Data.

CALL METHOD g_grid1-&amp;gt;set_table_for_first_display
EXPORTING
i_structure_name = 'MARA'
CHANGING
it_outtab = i_mara[] .

* The method of Grid Control Object is used to display the Data.

CALL METHOD g_grid2-&amp;gt;set_table_for_first_display
EXPORTING
i_structure_name = 'KNA1'
CHANGING
it_outtab = i_kna1[] .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classes-inside-function-module/m-p/3488001#M838658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:26:26Z</dc:date>
    </item>
  </channel>
</rss>

