ABAP Objects Quick Reference

This is the second (and final) part of a quick reference for the programming language ABAP. Extending the first part, this one is primarily focusing on ABAP’s object oriented programming features, like classes, OOP-exceptions, and inheritance.

The first part can be found here: ABAP Quick Reference

Encapsulation using function groups
FUNCTION-POOL s_person.

* age is a global variable in the function-pool
DATA: age TYPE i.

FUNCTION inc_age.
  ADD 1 to age.
ENDFUNCTION.

Continue reading ABAP Objects Quick Reference

ABAP Quick Reference

This is the first of two posts, providing a quick reference for ABAP developers. It primarily consists of code examples and doesn’t include major object oriented programming features, introduced in newer language versions.

The second part of this series, targeting OOP related topics, can be found here: ABAP Objects Quick Reference

ABAP (Advanced Business Application Programming) is a high-level programming language created by the German software company SAP SE. It is currently positioned, alongside Java, as the language for programming the SAP Application Server, which is part of the NetWeaver platform for building business applications.
Wikipedia ABAP article

Basic program structure
PARAMETERS pa_num TYPE i.

* declare a variable
DATA gv_output TYPE i.

* assign value from pa_num to gv_output
MOVE pa_num TO gv_output.

WRITE: 'Input value', gv_output.

NEW-LINE. " this is an inline comment

WRITE 'Done'.

Continue reading ABAP Quick Reference

Trigonometric Functions Formulary

This formulary has been created during the online onboarding process at Baden-Wuerttemberg Cooperative State University (DHBW). It is suitable for the related online tests and might be helpful for other people, seeking for formulas in this field of mathematics.

Basics

$$\begin{array}{l} \tan x = \frac{{\sin x}}{{\cos x}}\\ \cot x = {\tan ^{ – 1}}x = \frac{{\cos x}}{{\sin x}} \end{array}$$ Continue reading Trigonometric Functions Formulary

Node.js: Develop on Mac, Run on Raspberry Pi

For me the solution for productive Node.js development on Mac, with code execution on a Raspberry Pi was usage of Samba. After following the steps you will be able to develop Node.js applications right on your Mac, execute them on your Raspberry Pi (just by pressing cmd+S) and see the console output and errors on your Mac, without much hassle. This tutorial covers the entire setup. Continue reading Node.js: Develop on Mac, Run on Raspberry Pi

Periodic Table Trainer (Android Wear)

Memorize the Elements of the Periodic Table Right on Your Wrist

This Android Wear app shows the chemical elements of the periodic table. Starting with Hydrogen you can continue with a simple tap on the center of the screen. Before you do that, you should think of the name of the following element. What comes after Hydrogen (H)? Continue reading Periodic Table Trainer (Android Wear)

Guided Tour at CERN

On August 24th 2016, I took a guided tour for individuals at the European Organization for Nuclear Research (CERN, Conseil Européen pour la Recherche Nucléaire) headquarters in Geneva, Switzerland.

This post is about that kind of tour. So what did we do at the research organization that operates the largest particle physics laboratory in the world? Continue reading Guided Tour at CERN

Fuel Consumption in Neutral Gear

When a car is in neutral gear it still consumes fuel. The reason is that it has to keep the engine running which means keeping it above the engine’s specific min. revolutions per minute (rpm). For my testing car, a Toyota Yaris XP 90 (second generation; 3 doors; 1.33 liter 4 cylinder engine) this value equals approximately 600 rpm. Continue reading Fuel Consumption in Neutral Gear