<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Text in RTF Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380688#M811698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stop bumping your old not-followed-up threads by writing useless comments. The Comment Box while closing the thread is to post a solution. If you do not want to/do not know the sloution, you can skip that box. Its not mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By bumping old threads back into the queue without providing any solution, you are only messing up the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 11:31:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-27T11:31:01Z</dc:date>
    <item>
      <title>Text in RTF Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380684#M811694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a sales activity by using FM BAPI_BPCONTACT_CREATEFROMDATA. it works fine and returns sales activity number.&lt;/P&gt;&lt;P&gt;Now i want to enter text with sales activity, when i am using this , it gives an error that text is not in rtf format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggess how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanket sethi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 12:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380684#M811694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Text in RTF Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380685#M811695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert the text to rtf format.&lt;/P&gt;&lt;P&gt;You can use Function module: CONVERT_ITF_TO_RTF or in older versions CONVERT_TEXT.&lt;/P&gt;&lt;P&gt; for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA temp_itf TYPE tline OCCURS 0.
DATA temp_rtf TYPE tline OCCURS 0.
DATA: temp_text LIKE text,
        converted_text LIKE text OCCURS 0.
DATA line TYPE tline.
LOOP AT text.
    CLEAR temp_itf.
    APPEND text-text_line TO temp_itf.
    MOVE-CORRESPONDING text TO temp_text.
    CALL FUNCTION 'CONVERT_TEXT'
  EXPORTING
*   CODEPAGE               = '1133'
*   DIRECTION              = 'EXPORT'
*   FORMAT_TYPE            = 'RTF'
*   FORMATWIDTH            = 72
*   HEADER                 = ' '
*   SSHEET                 = ' '
*   WITH_TAB               = ' '
*   WORD_LANGU             = SY-LANGU
    tabletype              = 'BIN'
*   TAB_SUBSTITUTE         = 'X09  '
*   LF_SUBSTITUTE          = ' '
*   REPLACE_SYMBOLS        = 'X'
*   REPLACE_SAPCHARS       = 'X'
*   MASK_BRACKETS          = 'X'
* IMPORTING
*   NEWHEADER              =
*   WITH_TAB_E             =
*   FORMATWIDTH_E          =
      TABLES
        foreign                = temp_rtf
        itf_lines              = temp_itf
*   LINKS_TO_CONVERT       =
              .

    LOOP AT temp_rtf INTO temp_text-text_line.
      APPEND temp_text TO converted_text.
    ENDLOOP.
ENDLOOP.
CALL FUNCTION 'BAPI_BPCONTACT_CREATEFROMDATA'
    EXPORTING
      sender                      = ''
*   TESTRUN                     = ' '
    TABLES
      generaldata                 = generaldata
*   GENERALDATAX                =
      businesspartner             = businesspartner
*   BUSINESSPARTNERX            =
*   PARTNERADDRESS              =
      text                        = converted_text
*   OBJECT_REFERENCE_LIST       =
*     return                      = return
            .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Avishai Zamir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 13:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380685#M811695</guid>
      <dc:creator>former_member388485</dc:creator>
      <dc:date>2008-02-26T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Text in RTF Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380686#M811696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avishai Zamir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; same thing i have written in code, but it is giving dump saying that.&lt;/P&gt;&lt;P&gt;example  : Invalid partial field access: Length is too large&lt;/P&gt;&lt;P&gt;                "RTF_SET_FORMAT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will it work if we write like this for this bapi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Murali Papana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 12:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380686#M811696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T12:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text in RTF Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380687#M811697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380687#M811697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Text in RTF Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380688#M811698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stop bumping your old not-followed-up threads by writing useless comments. The Comment Box while closing the thread is to post a solution. If you do not want to/do not know the sloution, you can skip that box. Its not mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By bumping old threads back into the queue without providing any solution, you are only messing up the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 11:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-in-rtf-format/m-p/3380688#M811698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T11:31:01Z</dc:date>
    </item>
  </channel>
</rss>

