Skip to Content
0
Former Member
Apr 24, 2007 at 12:59 PM

SE24 or In-line Declaration of Custom Class to be Used in a Custom Exit ???

99 Views

After our implementation of a custom screen in EXIT_SAPLIE01_007, the function-group XQSM contained the following custom elements:

***********************************************************************

XQSM
    Function Modules
      EXIT_SAPLIE01_007     (this just includes ZXQSMU06)
    PBO Modules
      STATUS_9000
    PAI Modules
      USER_COMMAND_9000
    SCREENS
      9000                  (custom screen (modal dialog box))    
    GUI_STATUS
      9000                  (status for custom screen)  
    INCLUDES
      ZXQSMI01              (contains PAI module)  
      ZXQSMO01              (contains PBP module)
      ZXQSMTOP              (declares custom global variables)
      ZXQSMZZZ              (this just includes ZXQSMI01/ZXQSMO01
      ZXQSMU06              (this calls custom screen 9000)

***********************************************************************

Then the users decided they wanted an editable ALV on custom screen 9000 (to handle multi-item GR postings in MIGO, not just single-item postings.)

Since I never coded an editable ALV before, I first created a working editable ALV program from the SAP demo program BCALV_EDIT_03 plus some additions/modifications kindly provided by Uwe Schieferstein down in the ABAP Objects Forum.

But now I'm stuck because I don't know which components of the XQSM function group I should put the following pieces of code in:

1) 
class lcl_event_receiver definition deferred.
data: g_event_receiver type ref to lcl_event_receiver.

2)
class lcl_event_receiver definition.
  public section.
  ...
  private section.
  ...
endclass.

3)
class lcl_event_receiver implementation.
  ...
endclass.

Can someone please tell me where (1-3) belong inside XQSM - what components they should be put into?

Or should I just build a custom class in SE24 and use it in the exit ??? (By "use it", I mean instantiate it and call its methods.)

It seems to me that if I could define the class in SE24,it would be a lot easier, because everything else except (1-3) above clearly belongs in the PBO or PAIof the screen.