Skip to Content

Tobias Trapp wants to start an ABAP obfuscation contest.

For warming up a small riddle:

INCLUDE

NOT. IF
NOT  NOT  NOT  NOT  NOT  NOT  NOT  NOT  NOT
NOT  NOT !NOT  OR   NOT  NOT  NOT  NOT  NOT
NOT  NOT  NOT  NOT  NOT  NOT  NOT  NOT  NOT
NOT  NOT  NOT=>NOT( NOT ) OR  NOT  NOT  NOT
NOT  NOT  NOT  NOT  NOT  NOT !NOT  …  NOT.

This program is syntactically correct (as of 7.40, SP08).

Now tell me how that?

To report this post you need to login first.

12 Comments

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

  1. Christian Guenter

    *&—————————————————————*

    *&  Include          NOT

    *&—————————————————————*

    DATA: number TYPE i.

    SELECT-OPTIONS: not FOR number NO-DISPLAY.

    DEFINE not.

      endif.

    END-OF-DEFINITION.

    CLASS not DEFINITION.

      PUBLIC SECTION.

        CLASS-METHODS: not

          IMPORTING i_not        TYPE any

          RETURNING VALUE(r_not) TYPE abap_bool.

    ENDCLASS.

    CLASS not IMPLEMENTATION.

      METHOD not.

      ENDMETHOD.

    ENDCLASS.

    START-OF-SELECTION.

    (0) 
  2. Former Member

    Oh, man, I’m just several minutes late.

    It’s funny that omitting variable and parameters names I came to exactly the same text =)

    !NOT was the most difficult part for me, another is done in about 10 minutes.

    P.S. Horst, there were not less than 4 versions of the task ๐Ÿ™‚

    (0) 
    1. Horst Keller Post author

      !NOT was the most difficult part

      Yep, a pity that I had to place the ! in front of it. Otherwise …

      BTW, In my include I have also the REPORT statement.

      (0) 
      1. Former Member

        Yep, a pity that I had to place the ! in front of it. Otherwise …

        No, it was the only part that made me wake up ๐Ÿ™‚
        Otherwise it would be easy.

        I think, REPORT is not the main point, I had it in the main program.

        (0) 

Leave a Reply