Search code examples
abapsap-erp

Do we still need to do DEFINITION LOAD in ECC 6 EHP4+


I am adapting RM_FM_EXCEL_TO_INTERNAL_TAB to my needs and I saw the following code:

"Get TAB-sign for separation of fields
CLASS cl_abap_char_utilities DEFINITION LOAD.
ld_separator = cl_abap_char_utilities=>horizontal_tab.

Can you confirm that there is absolutely no need to do the definition load any more, I assume this is some ancient legacy code? I never load class before using static methods or attributes and it appears to work.


Solution

  • As always, I'd recommend to take the official documentation as a reference:

    The variants of the statements CLASS and INTERFACE with the addition LOAD are obsolete. ABAP Compiler ignores these statements.