Skip to Content
Author's profile photo Nuno Morais

Convert local class in program to global class in SE24

FAQ.jpg

This document explain how to convert a local class in program to a Global class in SE24.

Convert local class to Global:

  • Go to transaction SE24, select menu Object type and option Import (Local class in program):

Untitled.png

  • Fill the program name were local class is implemented, define the Global class name, select the line and click button Untitled.png to import:

Untitled.png

  • At the end edit your class and activate it:

Untitled.png

  • After success activation the class can be used globally.

Please consider before converting:

  • Is not possible to have a 100% conversion because some objects inside the local class can’t be automatically converted and manual steps are required:
    • It is important to define correctly the scope of global variables and methods parameters to avoid problem when converting;
    • If you are using ABAP command MESSAGE without message class you should declared it in class proprieties or in each line of code where is used:

Untitled.png

Untitled.png

    • Existent Text Symbols are not converted to the global class, they should be moved manually or using this command syntax that when clicking will automatically trigger the creation:

Untitled.png     

Convert from Global to local class

  • This functionality is not available but it can be done with the following steps:
    • Go to SE24, edit the class and click Toolbar button Untitled.png;
    • Select all code and copy/past to a new or existent report, activate it and remove all illegal command and syntax in local classes.

Nuno Morais’s Blog

Nuno Morais | LinkedIn

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.