Skip to Content
author's profile photo Former Member
Former Member

Calling a screen from within a class

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 29, 2007 at 05:20 PM

    You <b>have</b> 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.

    You can always pass the FM a reference to "me" when you call it, so that you can "return" to the class.

    matt

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2007 at 06:13 PM

    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

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.