This is a test message to test the length of the message box.
Login

ABAP Obsolete - TYPE-POOL

1319

Type pools are obsolete, but the use continues. How best to deal with it in the future, you will find out here today.



According to official documentation, the type pools are not yet obsolete, as they can still be used and are also used in many program components. But today we want to show you that you can do without certain components and functions.

 

Function

Type groups were the first global types in the system that could be reused in different routines. All together they can contain the following objects that are reused everywhere:

  • Type definitions
  • Constants
  • Macros

 

The integration takes place with the keyword TYPE-POOLS or in classes during the integration on the definition page (form-based editor).

 

Today's usage

Also in modern programming in SAP, type groups are still used, they are only not specified explicitly. Think for example of the simplest comparison in the program code, whether a flag is set or not. Then you normally use a variable of type ABAP_BOOL from type group ABAP. Probably one of the most used groups in the system. Examples of known type groups are:

  • ABAP - Basic language values such as Bool or data descriptions for data types
  • ICON - All icons of the system that can be addressed by name
  • VRM - Represents Value Request Manager and includes search help and drop-down variables

 

Hint: Since the type groups are available globally and at any time in the system, it is no longer necessary to specify the keywords. The variables and constants can be addressed directly by name. This makes the term TYPE-POOL indirectly obsolete.

 

Conclusion

The type pools are not dead and will continue to play a role, especially in the context of the SAP standard. But the Dictionary and the classes offer a very good alternative and are in high demand especially for the in-house development.

 

Source:
SAP Documentation - TYPE-POOL
Type-Pool ABAP


Included topics:
ObsoleteTYPE-POOL
Comments (0)



And further ...

Are you satisfied with the content of the article? We post new content in the ABAP area every Friday and irregularly in all other areas. Take a look at our tools and apps, we provide them free of charge.


ABAP - Naming conventions

Category - ABAP

How important is it nowadays to adhere to naming conventions or even to use naming conventions in the modern ABAP environment? We want to look at that in this article.

04/09/2021

ABAP - Use INSERT

Category - ABAP

APPEND already has a long history in ABAP, but this will play less and less of a role in the future. We'll show you why.

12/11/2020

ABAP Obsolete - Assignment and calculation

Category - ABAP

How does it actually work with the assignments and the calculation in ABAP? Here you will find out the current language constructs and what you should avoid.

06/26/2020

ABAP Obsolete - Ranges and Headers

Category - ABAP

Generate a decent range for an interface? Tables with or without header lines? We show you what is still possible and what you should rather be.

06/12/2020

ABAP Obsolete - DESCRIBE

Category - ABAP

Again we have for you a most used ABAP term for which there is already a new alternative, this time not just one alternative.

11/15/2019