<?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: Problem in CREATE_TEXT  FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100719#M103435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar ,&lt;/P&gt;&lt;P&gt;  We can't  remove the space characters just like that as there could be  chances wherein the user enter space character between two words . In that case  if we remove that space , it will be a problem &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2005 12:37:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-06T12:37:53Z</dc:date>
    <item>
      <title>Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100709#M103425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   In our RFC to place an order we are using the FM CREATE_TEXT to save header text in salesorder . The text that needs to be saved  is entered through the front end ( java ). Now the issue we are facing is that , if  in the front end they use a new line character while they enter the header text  ( i.e. , if the user press enter ) , the same character is being stored in SAP as ##. We don't want this character to be stored as it is creating some errors while transferring the sales order data to some other system other than SAP , through IDOC's .&lt;/P&gt;&lt;P&gt;Assumption is that ## is a command for page break (probably done when entered the text in the front end and translated into this command when posting the text in SAP). &lt;/P&gt;&lt;P&gt;Is there anyway that we can avoid this special character being stored in SAP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in this regard would be highly appreciated&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100709#M103425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100710#M103426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may replace all occurences of '#' in the field using the command: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' WITH ''.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' WITH SPACE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100710#M103426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100711#M103427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar ,&lt;/P&gt;&lt;P&gt;   But  in the data that we are getting from front end there is no ## character at all . In the header text also we won't find this character , But if we go to the text editor we can see that # character is stored there .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100711#M103427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100712#M103428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be using some Program or FM within SAP to upload Sales order text into SAP.  What is the method which you are using? &lt;/P&gt;&lt;P&gt;You may need to change the Posting program before saving the data into SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100712#M103428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100713#M103429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I think that text may be having some prohibited chars like Euro symoboll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100713#M103429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100714#M103430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While passing the text to the FM CREATE_TEXT, why dont you search and replace '##' with a single blank space?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you dont have control over the text passed to the FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understood that you dont find them while creating, then use FMs READ_TEXT modify the text, so that these are removed('##') and again use FM SAVE_TEXT, to save the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rajasekhar Dinavahi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100714#M103430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100715#M103431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raj ,&lt;/P&gt;&lt;P&gt;  We do have the control of the text , but we couldn't find any ## character there for the new line character , instead it shows only space  .  somehow it gets stored in SAP when we pass it to FM create_text&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100715#M103431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100716#M103432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In fact the chacters&lt;/P&gt;&lt;P&gt;   (which may be shown as ##)&lt;/P&gt;&lt;P&gt;   are but LINE FEED Characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ie ASCII(10)&lt;/P&gt;&lt;P&gt;     ASCII(13).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We need to replace ASCII(10) and ASCII(13)&lt;/P&gt;&lt;P&gt;   (and not ##)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100716#M103432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100717#M103433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have control over there, then why don't you remove the blank space which you have founded in the text field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100717#M103433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100718#M103434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Amit ,&lt;/P&gt;&lt;P&gt;   How can  v achieve that as in the  input text we are finding only space character for the line feed ?&lt;/P&gt;&lt;P&gt;   sorry if this seems to be silly &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100718#M103434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100719#M103435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar ,&lt;/P&gt;&lt;P&gt;  We can't  remove the space characters just like that as there could be  chances wherein the user enter space character between two words . In that case  if we remove that space , it will be a problem &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100719#M103435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100720#M103436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check for the space at first character of the text field.  If it equals to Space you can delete it right?&lt;/P&gt;&lt;P&gt;Say you are getting order text into v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_text+0(1) = space.&lt;/P&gt;&lt;P&gt;   shift v_text.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100720#M103436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100721#M103437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;  I don't think it is possible as we are getting the text into an internal table rather than a variable and this space character for the line feed can appear anywhere in that internal table records&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100721#M103437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100722#M103438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be possible,  Even though you are getting text into Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;if itab-ordertext+0(1) = space.&lt;/P&gt;&lt;P&gt;    shift itab-ordertext.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify itab index sy-tabix. &lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the structure of internal table in which you are getting the text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 12:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100722#M103438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100723#M103439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The structure is  TLINE&lt;/P&gt;&lt;P&gt; TDFORMAT	CHAR	2&lt;/P&gt;&lt;P&gt;  TDLINE		CHAR	132&lt;/P&gt;&lt;P&gt;From the front end they pass the text into field TDline by spliting into 132 characters .&lt;/P&gt;&lt;P&gt;so it won't be always that the first character of each record is a space .so i guess the logic that you have provided doesn't work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 13:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100723#M103439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T13:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100724#M103440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try using FORMAT_TEXTLINES function and give the input that you are getting from Java application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the output of this. This might fix the issue. If output looks fine, that will be the input to the CREATE_TEXT function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 13:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100724#M103440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in CREATE_TEXT  FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100725#M103441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting!...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many order texts may contain in your internal table for each RFC call? Only one or more than one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean to say one order text can be splitted twice or more times into TDLINE? If so, how do you differenciating between one order text to another order text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Sudhakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 13:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-text-fm/m-p/1100725#M103441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T13:26:46Z</dc:date>
    </item>
  </channel>
</rss>

