Skip to Content

ABAP Koans

Why practicing is better than theory?

(Source: https://amoebarepublic.files.wordpress.com/2008/04/programmer.gif)

By designing you learn to design. By making programs you learn to make programs. wiki.c2

Are you trying to master a new language or level up with the one you already familiar with?
Koans are a great way to hone your skills through small exercises.

The first Koans exercises are created by Jim Weirich for learning the Programming Language Ruby. Ruby Koans

The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language.

Koans aren´t limited to learning a Language. I´d like the concept of Carlos Ble´s to use the Koans for learning Unit-Testing in JavaScript jskoans.

I adapted this idea and wrote the first ABAP Koans to explore the ABAP Unit Testing Framework. It should be a small step to motivate YOU to start exploring Unit Tests in ABAP.
(System Requirement minimum 7.40)

Essentially ABAP Koans is an interactive tutorial.
You clone the GitHub repository https://github.com/damir-majer/ABAPKoans navigate to the existing global class and execute the Unit Tests over Menu >Execute>Unit Test or via the Keyboard Shortcut CTRL+SHIFT+F10 (works also in ABAP in Eclipse ;-).

You start with a failing Unit Test.

Solve them and continue to the next failing Test, until you solve every failing Unit Test.

No previous knowledge is required. The first Tests are very basic, but feel free to extend the current standing!

To report this post you need to login first.

15 Comments

You must be Logged on to comment or reply to a post.

      1. Damir Majer Post author

        Hi Mich Leon and Jelena Perfiljeva ,

        I´ve just created a Version for Systems with ABAP Stack between 7.02 and 7.31. (I made the changes without a proper System, please give me some Feedback if it works on your Systems…)

        Installation is pretty forward using abapgit:

        1. Clone the Repository
        2. Select the branch ‘7.02-7.31’
        3. Press ok

        That´s all!

        Have fun to explore ABAP Unit.

        Cheers,

        Damir

        (2) 
  1. Matt Fraser

    Love the graphic! Reminds me of the famous “Ten Bulls” woodcut from 12th-century Chinese Zen (or Chan) Buddhism, which I’m pretty sure could be adapted to the process of mastering the art of design!

    Image result for ten bulls

    (2) 
  2. Paul Hardy

    This is all about UNIT TESTING as well, so gets my vote.

    The Australian development system where I work is on 7.50 (up from 7.02) as about fifteen minutes ago, so we are good to go. Germany (where I am) will be about three months behind, and I will push this here as well, purely from the UT perspective.

    SAP as a company should note how few people (customer systems) actually are on a 7.40 system or above. It is far less than anyone imagines….

     

    (3) 
  3. Shivam Shukla

    Hi ,

    Can you please explain the benefit to the developer as I didn’t get exactly where i can get the benefit of during abap development.

     

    thanks ,

    shivam

     

    (0) 

Leave a Reply