Show TOC

 User Exits: Global Variables

When you work with global variables, you need to specify a replacement type to determine how the variable should be replace with a value. In most cases, the replacement types provided by the system (automatic, manual, SAP exit, fixed value from table) will be sufficient.

If you need to have a variable replace using a different method, you can program a user exit for global variables to define your own replacement type.

Example Example

End of the example.
  • deriving the current calendar year from the current fiscal year

  • deriving a 7-digit period from the current period

You can read about the user exit by choosing Start of the navigation path Tools Next navigation step ABAP Workbench Next navigation step Utilities Next navigation step Enhancements Next navigation step Definition (enhancement Next navigation step KKDR0001 Next navigation step ) from the initial screen. There you will find the technical information necessary for programming an exit as well as a code example. End of the navigation path