Reading Text longer than 132 Characters including Special characters

Hello Seniors,
Could you please give me some information about the following Function Modules also?
'SOTR_STRING_CREATE_CONCEPT'
'LXE_OBJ_TEXT_PAIR_READ_SOTR'
'SOTR_STRING_READ_TEXT_WITH_KEY'
I was able to create a concept by using the Function module 'SOTR_STRING_CREATE_CONCEPT'. Now, I need to create a text and then read the text where ever I want (the text can be longer than 132 characters and also may contain special characters) from abap functions as per my requirement.
my requirement is not based only on SAP Scripts.
Thank you,
cnc.

check in  url    www.SE37.com
regards,
Prabhu

Similar Messages

  • Reading Texts longer than 132 Characters

    Hello Seniors,
    I am working on Reading Texts more that 132 characters long.Texts should include Symbols also.I want to <b>Create and Save</b>the texts and then <b>read</b> them wherever I want from ABAP functions.
    I want to know the Transports information relating to this.
    Could there be any function modules (with relevant parameter passing)to create long texts and then read them where ever I need.
    Thank You,
    cnc.

    HI
    Check the fun module <b>READ_TEXT</b>, CREATE_TEXT and SAVE_TEXT and EDIT_TEXT etc related to the Std texts
    Have to pass the parameters like OBJECT,ID, OBJECTNAME,LANGUAGE
    You can transport these texts using the program <b>RSTXTRAN</b>
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Loading Long text longer than 132.

    Hi,
    I am trying to load Material Master long text (Basic data, Purchase order Text) . The LSMW (a standard batch / direct input) for Long text only allows 132 chars and my long text is longer than 132?
    What can i use to load the long text?
    Regards,
    K.

    Hi
      Within the program, structure TLINE loads the text.
    This structure consists to fields TDFORMAT and TDLINE.
    The text exists in field TLINE-TDLINE.
    Whereever, we need to give extended text we can use '=' symbol for TDFORMAT. Just like in SAP Script Form(Extended Line).
    Alternatively you can use FM: SAVE_TEXT for loading the texts.
    Insert a convert routine to split the text in several lines.
    You can use the following function module to split your long text into multiple lines.
    QADB_DOCU_CONVERT_TO_SAPSCRIPT
    You can refer this link for further information
    Re: insert it into the next line in internal table
    Thanks.

  • Can't send texts longer than 1 line

    I have a BB Torch 9800, OS 6.0 bundle 2475.
    I can't send any texts longer than 1 line. Shorter ones i can send no problem, but longer ones just disappear when i send.
    i have removed sim/battery/re-started phone and nothng helped..
    Any advice?

    I think you will need to update the software on your phone.it looks like you have an older version on there.  You can either ask the store to update the software or you can try using the steps here:
    http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
    If you try it, please backup your data first using the desktop manager.  I also recommend that you use blackberry protect.  The link is in my signature.
    Desktop manager backup info
    http://helpblog.blackberry.com/2010/11/blackberry-backup/
    Desktp manager install:
    http://us.blackberry.com/software/desktop.html
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Can automator identify file names longer than a specified number of characters?

    I have a lot of data that I need to ultimately archive to a PC solution but it currently has a lot of files with names longer than 256 characters.  I know I can batch update the names with automator, but what about an easy way to identify them?? Is there a way to identify file names based on file name length?

    Not in Automator.  There are other ways but the question is once you have the files what do you plan to rename them. You can't just cut off all the chars above 256 as this will not ensure uniqueness.
    So what convention will you use to make the names unique?
    As for getting the files. This command run in the terminal will return all filenames over N long
    ls | awk 'length ($0) > N'
    so in your case
    ls | awk 'length ($0) > 255'
    So this could be run from an Automator workflow or Applescript to capture the filenames you want to change. But again it's the renaming that is tricky.

  • How to read messages longer than network buffer size

    The logic of my application is:
    the client sends a request to the server and wait, in blocking mode, for its response.
    The server can responde with strings longer than 64KB (size of their sending and receiving buffer size), so under the hood, can also execs more than one socketChannel.write
    Nothing in the message says where it finish, nevertheless the client needs to assemble all in one big
    string.
    How can the client deal with this ? I'd like keep it as simple as possible (without using a selector)
    any thoughts ?
    thanks in advance

    Your above post suggests that it can send more than one packet (even ignoring the 64k limit.)
    In that case the data of the message must contain sufficient information. If not then the solution is not determinate.
    Ideally what you should received is a message and not just data. The message defines it contents. So you know how long it is and maybe even when it ends.
    Alternatively the data might contain something. For example if you are recieving well formatted XML then you can create a simple parser that just looks for the end tag. If it isn't well formatted, or at least you can not rely on that then it is much harder.

  • RH10 WebHelp includes special characters in 508 compliant search

    I am converting a RoboHelp 5 WebHelp project to RoboHelp 10 WebHelp and the project uses 508 compliant output.  When I click on the search tab I see special characters like $, %, !, #, etc. showing up as search words.  I have tried adding the characters to the Stop Words list and generating the output again but the special characters still show up.  Is there a way to suppress these characters from showing up in search?  The characters do not show up in the RoboHelp 5 508 output.  I am using IE8.

    Hi there
    Section 508 deals with accessibility. This means screen readers for blind or visually impaired individuals. They mouse over areas and the screen reader reads back to them what the mouse is hovering. So instead of a field where you type, they navigate search in a different manner. By clicking links that eventually lead to the term.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Loading long text more than 60 maximum of 240 characters into cube

    hi experts,
    I am loading from  flat file some time the description field have more than 60 characters  below then 240, so kindly advise me how to load onto the description field in cube. How to split the description fields.

    Hi Rajesh,
    Please check the below SDN blog for Long Texts in SAP BW.
    Long texts in SAP BW: Modeling
    Also go through the below thread.
    Flat File Datasource
    Hope it helps.
    Regards,
    Raghu

  • Passing text including special characters to Javascript functions

    I need to call a Javascript function with some text retrieved from the database, which may include carriage returns, line feeds etc. I need to change these to the Javascript escape characters "\r", "\n" etc. I can easily write my own function to do this, but suspect there may be a built-in one somewhere I could be using - but can't find one. Is there one?

    Tony,
    I tried using XMLDB_GEN.CONVERT and it worked for me:
    DECLARE
       v_value_to_save   VARCHAR2 (30);
    BEGIN
       v_value_to_save := DBMS_XMLGEN.CONVERT (:t_sql, 1);
       UPDATE my_table
          SET my_column = v_value_to_save
        WHERE my_key = :my_key_value;
    END;
    DECLARE
       v_value_to_select   VARCHAR2 (30);
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       FOR c IN (SELECT my_value
                   FROM my_table)
       LOOP
          v_value_to_select := DBMS_XMLGEN.CONVERT (c.my_value, 0);
          HTP.prn (v_value_to_select);
       END LOOP;
    END;
    /Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Not able to scroll thru text longer than text field in Safari

    Though long press and drag seems to work in other apps, in Safari, I am not able to scroll within a text field (when there is more text that the field can show at a time) . E.g on google Search box (web page). Any tips?

    It's STILL NOT FIXED in IOS 8.1.2
    dave
    ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
    [QUOTE]
    Heya'
    I 'think' it's CRAPLOA...due to coders, BS issue REMAINS on iPad is of IOS 8.1.1 (12B435)
    ...updating to 8.1.2 now...
    Don't recall if on iPhone  Ver. 8.1.2 (12B440) ?    Gonna look 2C....
    dave
    [END QUOTE]

  • Dynamic text, system fonts, and special characters...

    This one is boggling my mind so if someone can help, please
    do
    I've got a dynamic text area pulling text from a MySQL
    database via AMFPHP. The text includes special characters such as
    accents, umlauts, etc (multi-language site platform). Most of them
    work fine, and ALL of them work fine when I'm on a Mac client.
    However, if I use a Windows client machine in either Firefox or
    IE6, there are a couple characters that for whatever reason just
    don't seem to show up -- instead I get the [] box character.
    The only characters I've found that seem to be affected like
    this are European quote characters like &#146; &#147; and
    &#148; (hex characters 146, 147, 148). I'm using the familiar
    ampersand-pound-number-semicolon escape sequence for them. And like
    I said, they all display fine on Mac/Firefox and Mac/Safari. Why
    are all my other special characters (umlauts, accents, etc) working
    fine and just these things failing? It's also worth noting that
    they look fine if I dump them out to a PHP file and pull it up in a
    browser...
    Please, if anyone can help... I've been bashing my head
    against this for the better part of the day!!

    Hi,
    did you take a look at the "gateway.php' ? There you can
    define charsets. Maybe a western europe charset will
    help you out. Since french language is using a lot more
    accents and so.
    This is what you can find in the gateway.php of amfphp. Just
    have to set the right one ;)

  • Is there any other way to handle special characters other than using CDATA?

    I have xerces parser with which i am trying to parse data having special characters. Special characters also include other ascii characters. I tried using CDATA Section but still the problem persists.
    It would be really helpful if anyone can help me in solving this problem.
    Error encountered :
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xf) was found in the CDATA section.
    The XML which I use contains junk characters also . Have a look at the following:
    <?xml version='1.0' encoding='UTF-8' ?>
    <IMAGE_RESPONSE xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='ImageResponse.xsd'>
    <IMG_TYPE>PNG</IMG_TYPE>
    <IMG_WIDTH>650</IMG_WIDTH>
    <IMG_HEIGHT>250</IMG_HEIGHT>
    <IMAGE_DATA>
    <IMGKEY>20020827:00000000:100000000010:02:</IMGKEY>
    <IMAGE_INFO>This is image info</IMAGE_INFO>
    <IMG_SOURCE>DCE_CIMS</IMG_SOURCE>
    <FRONT_IMG_FBW><![CDATA[�����&�J�Z�R��]]></FRONT_IMG_FBW>
    <FBW_ERROR>B</FBW_ERROR>
    <FRONT_IMG_FGS>C</FRONT_IMG_FGS>
    <FGS_ERROR>D</FGS_ERROR>
    <BACK_IMG_BBW>E</BACK_IMG_BBW>
    <BBW_ERROR>D</BBW_ERROR>
    <BACK_IMG_BGS>A</BACK_IMG_BGS>
    <BGS_ERROR>Unable to retrieve Back Gray-Scale image</BGS_ERROR>
    </IMAGE_DATA>
    </IMAGE_RESPONSE>

    java.net.URLEncoder.encode( text )
    I've found this to be a pretty easy way to handle invalid characters...

  • Problem in reading special characters

    Hi friends
    I am doing one program which read serial port data (for bar code reader) using java application.
    My program is working well and reading serial data but it is not displaying special characters.When i read through hyperterminal i can see all special characters but when see data throught the output of java program these special characters are missing...
    I don't know i am doing something wrong in stream or ???
    My code is
    [CODE]public void serialEvent(SerialPortEvent event) {
              System.out.println("before serialEvent");
              StringBuffer readBuffer1 = new StringBuffer();
              switch (event.getEventType()) {
              case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                   System.out.println("Data empty:");
                   break;
              case SerialPortEvent.DATA_AVAILABLE:
                      byte[] readBuffer = new byte[100];
                      int r = 0;
                      try {
                           System.out.print("test"); 
                          //t inputStream = serialPort.getInputStream();
                         while((r = inputStream.read(readBuffer)) != -1) {
                            System.out.print(new String(readBuffer, 0, r));
                      } catch (Exception e) {
                         e.printStackTrace(System.out);
    }[/CODE]Please help

    Hi DrClap,
    Thanks for your reply.
    That article was helpful in understanding character conversions. And it works fine for JSPs.
    But when I tried to apply the same in JSF it does not work. May be this is not the right forum to dicuss JSF related things. But if you know how pageEncoding and contentType can be mentioned in JSF. I am using myfaces and I have tried <h:form id="SearchForm" acceptCharset="UTF-8" accept="text/html;charset=UTF-8">. Didnt work....

  • Oracle text search - special characters issue

    Hi.
    I'm facing a real annoying problem with text search query, and everything I've tried failed...
    I have a table with a varchar column indexed by text index. The column contains special characters like '&', ',' and mainly- '-'. Since I want to disregard these special characters for searches I have created a basic lexer of type skipjoins for the column index. So now, the phrase 'aaa-bbb something'. for example, can be searched without '-', like this: 'aaabbb'. But I want to make it possible for this phrase to be searched with and without '-'. So, that when the user enters 'aaabbb' he will get the same results as when he enters 'aaa-bbb'.
    In other words, This condition:
    WHERE CONTAINS(column, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaabbb'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    Will return the same results as this condition:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaa-bbb'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    Since text query treats the '-' sign as a minus sign and searches for 'aaa' which doesn't contain 'bbb', the only way I found to fix this was to wrap the search text with {}. like this:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaa-bbb}'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    This all went very well, until I wanted to create a relaxation query. like this:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaab}'
    ||'</seq><seq>'
    ||'{aaab}'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2
    In this case, I would expect the first part of the query to return no results (since it's not the whole word) but the second part, using '%' should have returned the record of 'aaa-bbb'. It doesn't. It will only return my result if I remove the '{}' for the second part. I can't do that, because the exact same search, when containing '-', will not return the expected results when I remove the braces (the sign is treated as minus sign):
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaab}'
    ||'</seq><seq>'
    ||'aaa-b'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2
    So I now have no solution. My question is- How can I create a query that will disregard the minus sign and treat it as a regular sign, but would still handle percentage sign as a special sign. So that I could run a query like the last example and will get the results of searching the phrase 'aaa-b%'?
    In short, and to simplify my question, I'm looking for a way to escape all characters (not only the minus sign) except for a specific character. Kind of like 'unescaping' a specific character (the '%' sign) within braces {}. Or, another way would be to remove the space that is added to the phrase inside the braces at the end of the word, preventing me from adding "%" at the end of the word, outside the braces.
    Thanks you,
    Nili

    I'm looking for a way to escape all characters (not only the minus sign) except for a specific character. Kind of like 'unescaping' a specific character (the '%' sign) within braces {}What about if you apply a function like regexp_replace to escape all known "specific characters", and then unescape the particular specific character again back as e.g. in
    SQL>  select 'a.da-df%df*' str, replace (
                                                   regexp_replace (
                                                        'a.da-df%df*',
                                                        '([[:punct:]])',
                                                        '\\\1'
                                                   str2
      from dual
    STR         STR2         
    a.da-df%df* a\.da\-df%df\*
    1 row selected.i.e. don't escape with curly brackets but with the backslash character.
    You can then use this string in your query like in
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaab'
    ||'</seq><seq>'
    ||'aaa\-b'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2

  • GoLive CS2 doesn't seem to encode special characters - help!

    If you've recently upgraded to CS2 and are having trouble with HTML entities for special characters, see this FAQ topic:
    FAQ 11.11 - Special Character Encoding Problems (CS2)
    Looks like this is going to be a recurring topic for a while as people migrate to CS2, so I'm making this a "sticky" topic at the top of the forum (thanks Martin).

    Thank you all for your posts on this issue. I need to point out a few things.
    1. As a novice, I had assumed that "special characters" included all non-standard characters (those not included in the Basic Latin character set and the Latin-1 Supplement set), and that therefore, all the "other" Unicode characters were special characters. As a result, I had assumed that the original post about Special Characters did indeed have a connection to Unicode input methods. (In fact, I am utterly in the dark as to why it is that it does not. But being a novice I believe you when you say that "special characters" and Unicode characters are two unrelated things, although I have no idea what the difference is. But, for letting me know that there is a difference, for that I truly thank you.
    2. I have read and re-read my comments from earlier and fail to see any "flaming" in it of Nate. Yet the rest of you see it clearly, so it must be there. It must be very disappointing for you to try so hard to help others only to be confronted with someone of ill-manners blasting you for your best efforts. I am truly sorry that I have in my ignorance and in my own frustration caused you to feel this way. Furthermore, since his statements had nothing to do with the issue that is so vexing to me (as you have now shown me), it was completely inappropriate for me to be upset with his answers.
    3. I remain very frustrated with not being able to find an answer to this problem of Unicode entry. I share Dee Bolland's aggravation when he talked about "... patronising people saying 'Didn't you know that?' blah blah." and when he said, " Please don't say 'It works for me!' :< ." When I first read Nate's statement of what to do about special characters, my spirits were excited with hope that it would solve my Unicode issues (because I thought he was talking about that). I was hopeful that I had missed something simple. When I tried it and it didn't work for my problem, I was very disappointed. This is the same frustration that I had when I read Rob Keniger's statement to me that the program can accept input in Source view. I jumped at this with hopeful anticipation, only to be totally and utterly disappointed once again--because it doesn't work for me. I pasted the Unicode text that I had posted above ( ×ֲש×ֶר ×Ö¹× ×Ö¸×Ö·×Ö° ×ַּעֲצַת רְש×ָעִ×× ) into source view, and all I got was the following: "
      " (I've included the tags so you can see the space). In other words, once again my high hopes are dashed and I am left feeling stupid (you say it works for you) and angry such a great program that does so many fantastic things can't do the basic things I want it to do. So, yes, I remain infuriated by the situation, by my inability to get the program to do what (I thought) you all had said it can so easily do. And yet (as I stated earlier in my post to Nate at which he took offense): "I do hope I am missing something simple and that the error is totally mine. However, I have yet to see any directions or examples that will solve the problem. Please, if you know of how to make this work, let me know. I will gladly confess my error in doubting you, if you can show me I am wrong by doing it right."
    So, since my post was not germane to the discussion, I will now bow out of this one. Thank you so much for your efforts to help, though.

Maybe you are looking for

  • Hard drive failed or did it??

    I have a 10g that is almost 2 years old. This is the second time my music vanished. The first time was about 4 months ago. I took it in to the store and they updated it and everything was fine. The second time, this Monday, I took it into the store,

  • Hard drive or o.s failure re: time machine?

    10.6.8 server with USB ioSafe hard drive for client backups.  I am reinstalling the operating system on one 10.8 client.  Everything goes fine until I start the time machine restore.  Once it starts restoring, it gets to 18 or 19 minutes remaining an

  • Any Issues With MacBook Pro Software Update 1.2?

    Just wondered if there were any problems with the newest update and Tiger. frank

  • Probelms printing email messages in Outlook Express

    After an automatic Firefox update I can no longer print the message part for Outlook Express 6 email. Only the header (e.g. To/From) prints. I have an HP Office Jet all-in-one printer. I updated my Firefox version and the problem remained.

  • Problem  FIELD-SYMBOL with HASHED TABLE

    Hello gurus, I have a problem with the following code. It is called in method MB_DOCUMENT_BEFORE_UPDATE of badi MB_DOCUMENT_BADI. I need to read the serial numbers of all items. I tried to do it with a field symbol. The information I need is stored i