Why does a string template return different formatting for types with 2 and 4 decimal places?

I have the following piece of code. I want to format number with string templates. One variable has 2 decimal places, the other 4 decimal places but they represent the same number 50000 (fifty thousand). The first number is correctly formatted (German representation) 50.000,00, the other one however is formatted as 5 million 5.000.000,00! DATA:… Read More Why does a string template return different formatting for types with 2 and 4 decimal places?

What is the best-practice to replace that TABLES statement in OOABAP?

In the following code: TABLES: lqua. CLASS TEST DEFINITION. PRIVATE SECTION. TYPES: BEGIN OF tt_data, lgpla TYPE lqua-lgpla, matnr TYPE lqua-matnr, END OF tt_data. ENDCLASS. How could I get rid of the TABLES statement? As far as I understand, it is best-practice to avoid the TABLES statement, and it is forbidden in classes. When I… Read More What is the best-practice to replace that TABLES statement in OOABAP?