The class documentation for CL_WD_FORMATTED_TEXT lists the character and paragraph formats that the class supports. By using these supported formats in a standard text object, you can programmatically call static method CREATE_FROM_SAPSCRIPT to convert the standard text directly into formatted text for display via UI Element FormattedTextView. For example,
DATA lo_ftv TYPE REF TO cl_wd_formatted_text.
lo_ftv = cl_wd_formatted_text=>create_from_sapscript(
sapscript_head = (thead_structure)
sapscript_lines = (tlines_table)
).
I'm not able to find a standard SAPscript Style that corresponds to this set of supported formats though. I kind of would have expected one to be provided by SAP since the set of supported character and paragraph formats is spelled out explicitly by the class documentation.
I know I can create a custom SAPscript Style, but is anyone aware of a delivered style that corresponds to the CL_WD_FORMATTED_TEXT supported formats?
Cheers,
Amy