Skip to Content
avatar image
Former Member

ABAP Compiler or Interpreter?

Hi guys

This question has been asked several times and been answered in several ways.

But still i am repeating the same question since i couldnt found an exact answer.

Does ABAP have a compiler or an Interpreter or both ?

I have gone through several answers and documents regarding this.

Some says YES but some says NO.

If it is YES, could someone please explain why?

Also is this compilation takes place at OS level?

Expecting your kind response

Thank and Regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 11, 2010 at 06:48 AM

    Hi Hareesh,

    Essentially ABAP uses the same model as Java, so ABAP programs are compiled to a byte code, which is then interpreted/run by a virtual machine. The generated byte code is platform dependent though for ABAP.

    It's basically similar to the [write once run anywhere|,_run_anywhere] approach as opposed to the compilation to native processor instructions, which means that your resulting code is platform dependent (thus requiring code changes when [porting|] it to another platform). So for ABAP you only need to regenerate the code for different platforms, but you don't need to adapt the source code (omitting changes though here for possible updates due to language changes, e.g. due to Unicode enabling).

    E.g. see the short comment in [Overview of SAP Netweaver AS|]:

    All ABAP applications run on software processors (virtual machines) within this component.

    And in the guide [System Copy for SAP Systems Based on NW 7.0 SR3 ABAP|] you'll find:

    34. ABAP Program Loads

    The ABAP loads are platform-dependent programs that are generated during runtime and stored in database tables.

    Cheers, harald

    Add comment
    10|10000 characters needed characters exceeded

  • May 11, 2010 at 07:46 AM


    Please See the SCN Rules Before Posting.

    With Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • > obviously in a large community opinions differ from time to time... 😉

      hopefully. And even in small communities 😉

      > p.p.s.: Darn, another overlong posting. My bad.

      I like reading this kind of long answer!