Skip to Content
Aug 08, 2011 at 01:25 PM

Converting RTF from MS SQL database to Plain Text in ABAP


We are selecting data from an external MS SQL database into an internal table using ABAP. The data for the text field is coming out in the format below.

u2018{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} {\*\generator Msftedit;}\viewkind4\uc1\pard\f0\fs17 dsfdsgds gsgsdfgf\par }u2019

Does anyone know if there is a way in ABAP to convert this text into a readable format?

We want the text from this field to used in BAPI_PO_CREATE1 as the poitem-SHORT_TEXT.

Thank you