SchwarzIT / sap-usi-logging-api

An easy-to-use, object-oriented encapsulation around the SAP application log (Transaction SLG1)
Apache License 2.0
23 stars 0 forks source link

ITAB-Container /USI/CL_BAL_DC_ITAB: Move ITAB-Normalization from CONSTRUCTOR to SERIALIZE #17

Open NeumannJoerg opened 10 months ago

NeumannJoerg commented 10 months ago

The constructor of the ITAB-Container will "normalize" the format of the internal table. image

That means:

All these optimizations are needed to achieve compatibility with the ALV Grid, that will render the data later or to avoid wasting space on the database. However this should not happen in the constructor, since the container might still be irrelevant, if the log level is too low - so we might be doing some heavy lifting for nothing!

The normalization should be moved to the serialize-method. That would give us a lightweight constructor while preserving all advantages of the table format normalization.