SAP: Convert string to multiline table
In case you have to deal with text in ERP, the text function modules do not usually allow you to pass a string value. Rather, you have to pass a table that contains your string, split up into multiple lines. The data element of those texts is usually TDLINE and you have to provide some additional information in the table, like object type and format.
Doing this split was actually not very straight-forward because you need to take into account that your (flat) source string may contain line breaks.