1 1 1 1 1 100%/5 (1 Vote)

If you would like to get the complete source code of a SE24 defined class you can do it using "Print" function.

Please find an example step by step below :

In SE24, input your class name and select the print function (CTRL+P)

Select "Unformatted print output" and clic on print button :

select in output device dialog "SAP spool only" :

enter. The spool is created.

Export the spool as done in the following steps :

select the spool and choose Forward -> export as Text in the menu :

result would be a file containing all the class definition :

31.12.2020                        Display Class                                1
--------------------------------------------------------------------------------
class-pool .

class CL_BCS_CONVERT definition
  public
  final
  create public .
public section.
  type-pools ABAP .
  class CL_ABAP_CHAR_UTILITIES definition load .
  constants GC_TAB type CHAR1 value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB. "#EC
  constants GC_CRLF type CHAR2 value CL_ABAP_CHAR_UTILITIES=>CR_LF. "#EC NOTEXT
  class-methods RAW_TO_SOLIX
    importing
      !IT_SOLI type SOLI_TAB
      !IV_CODEPAGE type ABAP_ENCOD optional
      !IV_ADD_BOM type OS_BOOLEAN optional
    exporting
      !ET_SOLIX type SOLIX_TAB
      !EV_SIZE type SO_OBJ_LEN
    raising
      CX_BCS .
  class-methods RAW_TO_STRING
    importing
      !IT_SOLI type SOLI_TAB
    returning
      value(EV_STRING) type STRING

However, it will also contain page title as the following :

31.12.2020                        Display Class                                1
--------------------------------------------------------------------------------

and for all break page in the file.

To delete those lines, open the file in NotePad++ and launch the search tool (CTRL+F).

Select the "Mark" tab and input "Display Class" which is present in the searched lines and clic on bookmarks line and click on Mark All:

The lines will be marked.

Then choose the menu function Delete bookmaled lines :

That's it !

To delete the seconde line "----------", do the same copy/paste the line in find search field.