Another very simple example in SAP - ABAP.

..
Here is my code:
REPORT ZTMP_TEST_INNBOUND2.
 
DATA netValueInDocCurrency TYPE P.
 
SELECT NETWR FROM VBRK INTO netValueInDocCurrency.
    WRITE / netValueInDocCurrency.
ENDSELECT.

And the output will be something like this:


What I want to note here is that, the field NETWR has the following properties: