April 20 2019, 11:26

Studying ABAP, a programming language for SAP ERP. Wrote my first program that exports something from the materials table.

For amusement:

1. ABAP – whitespace-sensitive, and also with quite a perverse syntax. That is, x=a+b(c) does not mean what you think, but (writing in Java) a.substring(b,c), yet if you add spaces x = a + b( c ), it turns into a method call b with parameter c.

2. Printing an integer by default is formatted, meaning WRITE A will print 0000000056. To remove the zeros, after the variable name, you should write a format specifier NO-ZERO after a space.

(Post to be updated)

Leave a comment