<?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: Calling a screen from within a class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126813#M742708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will, hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;couple of days ago I had the same problem. I have solved it,&lt;/P&gt;&lt;P&gt;and it is already in production system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your method use the coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
  WRITE space.

  CREATE OBJECT go_grid
    EXPORTING
      i_parent = cl_gui_container=&amp;gt;screen0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2007 06:37:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-30T06:37:50Z</dc:date>
    <item>
      <title>Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126809#M742704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that you cannot perform a 'CALL SCREEN XXXX' statement from within a method of a class since you cannot create a screen within a class.  Is there any non-procedural way around this?  I don't want to exit my oo-code by calling a function module that then calls a screen internally; and put all my code that should be in my class into this function module.  I don't see any classes so far that I could call/instantiate to solve the problem.  Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 17:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126809#M742704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126810#M742705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You &amp;lt;b&amp;gt;have&amp;lt;/b&amp;gt; to go through function modules.  However, you use the FMs only for screen handling.  Everything else should be done in your class.  There's no need to put your class code into the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always pass the FM a reference to "me" when you call it, so that you can "return" to the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 17:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126810#M742705</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-29T17:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126811#M742706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you; I'll investigate.  To clarify, though, what I meant by "putting my OO code into the function module" is that on the screen I want to clal will be a custom container control, splitter control within that and then tree control and toolbar control within the splitter.  That is the code that I assume I'd have to now put inside the FM, right?  Or are you saying I could pass those references into the FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 17:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126811#M742706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126812#M742707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use screens in a global class, but you can call a screen with a local class.  Not sure that helps you in your case, though&lt;/P&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>Thu, 29 Nov 2007 18:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126812#M742707</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-11-29T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126813#M742708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Will, hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;couple of days ago I had the same problem. I have solved it,&lt;/P&gt;&lt;P&gt;and it is already in production system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your method use the coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
  WRITE space.

  CREATE OBJECT go_grid
    EXPORTING
      i_parent = cl_gui_container=&amp;gt;screen0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 06:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126813#M742708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T06:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a screen from within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126814#M742709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I must say that I've not done this myself, but I have seen it done!  But I can't see any particular reason why you couldn't just pass the references.  It's only the connection to the screen that's non-oo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 09:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-screen-from-within-a-class/m-p/3126814#M742709</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-30T09:57:04Z</dc:date>
    </item>
  </channel>
</rss>

