Split string in 40 char strings but only on full words

Hi,
I have been asked to changed a document to only display about 40 character texts. The best way I could think to do this would be to take the inidividual strings and concatonate them and then split them up again in 40 character chunks. However, here is the complicated part... I can only split on full words. I thought about doing this by looking at the text finding position 40 and then searching for the next space. I would then output this text and look for the next text. This would loop until the end of the text.
e.g.
TEXT = "here is some test text that I want to loop through and only display about fourty characters. The downside is that I can only seperate on full words. I would also need to remove leading spaces."
RESULT
TEXT1="here is some test text that I want to loop"
TEXT2="through and only display about fourty characters."
TEXT3="The downside is that I can only seperate"
TEXT4="on full words. I would also need to remove "
TEXT5="leading spaces."
any ideas?

/: PERFORM SPLIT_TEXT IN PROGRAM ZSTRING_SPLIT
/: USING &SALES_TEXT_1&
/: CHANGING &OUT_LINE1&
/: CHANGING &OUT_LINE2&
/: CHANGING &OUT_LINE3&
/: ENDPERFORM
P1 &OUT_LINE1&
P1 &OUT_LINE2&
P1 &OUT_LINE3&
SE38 - Sub routine pool
PROGRAM  ZSTRING_SPLIT                           .
*&      Form  SPLIT_TEXT
      text
     -->INPUT_TABLEtext
     -->OUTPUT_TABLtext
FORM SPLIT_TEXT TABLES INPUT_TABLE STRUCTURE ITCSY
                       OUTPUT_TABLE STRUCTURE ITCSY.
  DATA : LV_LINE1(100),
         LV_LINE2(100),
         LV_LINE3(100).
  READ TABLE INPUT_TABLE WITH KEY NAME = 'SALES_TEXT_1' .
  CALL FUNCTION 'RKD_WORD_WRAP'
    EXPORTING
      TEXTLINE            = INPUT_TABLE-VALUE
      DELIMITER           = ' '
      OUTPUTLEN           = 10
    IMPORTING
      OUT_LINE1           = LV_LINE1
      OUT_LINE2           = LV_LINE2
      OUT_LINE3           = LV_LINE3
    EXCEPTIONS
      OUTPUTLEN_TOO_LARGE = 1
      OTHERS              = 2.
  IF SY-SUBRC  EQ 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  READ TABLE OUTPUT_TABLE WITH KEY NAME = 'OUT_LINE1' .
  OUTPUT_TABLE-VALUE = LV_LINE1.
  MODIFY OUTPUT_TABLE TRANSPORTING VALUE WHERE NAME = 'OUT_LINE1' .
  READ TABLE OUTPUT_TABLE WITH KEY NAME = 'OUT_LINE2' .
  OUTPUT_TABLE-VALUE = LV_LINE2.
  MODIFY OUTPUT_TABLE TRANSPORTING VALUE WHERE NAME = 'OUT_LINE2' .
  READ TABLE OUTPUT_TABLE WITH KEY NAME = 'OUT_LINE3' .
  OUTPUT_TABLE-VALUE = LV_LINE3.
  MODIFY OUTPUT_TABLE TRANSPORTING VALUE WHERE NAME = 'OUT_LINE3' .
ENDFORM .                    "SPLIT_TEXT

Similar Messages

  • VI seen as not executable from LV runtime, but only in Full-Featured UI

    Hi,
    I have a very strange situation that one of my VIs is claimed by TestStand as broken but only in Full-Featured UI with LV Runtime.
    - SeqEditor runs it fine both in LV Development and LV Runtime 
    - Simple UI does the same (Program Files\National Instruments\TestStand 4.0\UserInterfaces\NI\Simple\LabVIEW\TestExec.exe)
    - Full-Featured UI runs fine in development but shows Error -18002 in Runtime (Program Files\National Instruments\TestStand 4.0\UserInterfaces\NI\Full-Featured\LabVIEW\TestExec.exe)
    This is even more weird that in our UI what created from Full-Featured this vi works fine in LV Runtime.
    The vi does reading of .ini file from the disk. If it runs correctly and can not find the .ini it shows the selection dialog. I've created the dummy sequence Read INI.seq for this vi and copied its hierarchy.
    I'm using LV 8.6 and TS 4.0
    Message Edited by skof on 07-09-2009 12:24 PM
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    Read INI example.zip ‏218 KB
    error 18002.PNG ‏18 KB

    "Besides that, the error message text looks different in case of "same name" issue, something like:
    Error
    Message: Unable to load VI 'D:\<...>\Log
    Object_LogEventByReference.vi'. LabVIEW already has the VI
    'D:\<...>\ZCAT.exe\Log Object_LogEventByReference.vi' loaded and
    cannot load different VIs with the same name. [Error Code: -18002]"
    Is this your error message?  If so then it is definitely the fact that you are trying to load two VIs with the same name.  Have you changed the Full-Feature UI. Could it be another VI in your sequence?  
    it looks like you have a VI named Log Object_LogEventByReference.vi somewhere. 
    I tried your example but I don't think I did it right.  When I get back to work Monday I'll give it another peak.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Splitting string separated by commas into words and assigning numerical values

    Project details :
    I have a project where a description field is being looked at and based on the values (multiple words) I have to do a vlookup from another spreadsheet to get the dates from the appropriate date fields.
    I have created a user defined function to extract keywords from a list from a table. It extracts words from the string separated by comma delimiter.
        I am thinking of assigning values something like this: cooler = 1, compressor = 2, frame = 2, change of order = b etc.
        So if there is a “cooler, compressor, frame, change of order” in the cell, then it should read as: b12 (unique values). Based on the values, I can do a vlookup on the dates. I tried sumproduct in conjuction with search function but did not
    work. Tried split function but did not quite work.
    Any help regarding this is greatly appreciated. Thank you, regards
    keywords
    engine, compressor, frame, cooler     =Keywords(Wordlist,A2) is the function I am calling
    frame, cooler
    engine, cooler, change order
    cooler

    Hi,
    You're asking this question in the wrong forum, this is a PowerShell forum.
    The Excel VBA forum is this way:
    http://social.msdn.microsoft.com/Forums/en-us/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Side note to whoever voted up the OP - why??
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Upgrade eligible but only get full retail option

    I have really been excited about getting the new iphone and thought I would be upgrade eligible just in time.  I have an annual contract that has been telling me forever that I am eligible for a "discounted upgrade" on January 31, 2011.  So now that it's the 31st I check and it now tells me I am eligible for the discounted upgrade.  When I clicked on it I am only given the option to upgrade at full retail price.   I don't understand what's going on.  Anybody else ever had this trouble?  Is it something to do with the 1-year contracts?

    The best option is to call customer service. No one here personally knows your account. Or what could be wrong with it. Call vzw customer support and explain the situation. I understand its frustrating but the best way to get a solution is to call the customer reps

  • Split string - JDK 1.3

    Hello All,
    I'm normally working with JDK 1.4. Now I'm doing a programm with JDK 1.3 and looking for a possibility to split strings, as String.split() does not exist in JDK 1.3.
    Any hint would be appreciated.
    Regards.
    Ralf

    That's it.
    I had in my mind that there is another class for splitting strings, but as I normally using String.split() with JDK 1.4 I didn't remember.
    Thank you.

  • Word Count, but only words over certain number of letter...?

    Hi,
    Does anyone know of a way to do a word count, but only count the words with a certain number of letters. For example all words with 4 letters or more?
    Thanks

    I never guessed that I will read such a question but why not ?
    --(SCRIPT word4Count.app]
    --==========
    Enregistrer le script en tant qu'Application ou Progiciel : word4count.app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et même le dossier Applications.
    menu Scripts > Pages > word4count
    Le script affiche (ou insère à l'emplacement du curseur )
    le nombre de mots de la couche texte et
    le nombre de mots des blocs texte
    dont la longueur est supérieure à la valeur définie par la property limite.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Grace au programme gratuit ThisService, il est possible d'encapsuler ce script dans un service.
    Télécharger ThisService depuis:
    http://wafflesoftware.net/thisservice/
    Lors de la création du service, cliquer le bouton "Produce output".
    Il est possible d'associer un raccourci clavier au service.
    --==========
    Copy the script in the clipboard
    Paste in a blank window of Script Editor
    Save it as an Application or an Application Bundle
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Now, enter your Pages document.
    Click where you want.
    Go to
    menu Scripts > Pages > word4count
    The script will count the words whose length is higher than the value stored in the property limite.
    The wordcount will be pasted at the insertion point
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Thanks to the free program ThisService, we may encapsulate this script in a Service.
    Download ThisService from
    http://wafflesoftware.net/thisservice/
    When creating the service click the button "Produce output"
    We may link the service to a shortcut.
    --==========
    Yvan KOENIG
    19 février 2009
    --=====
    property limite : 4
    property affiche : true
    --=====
    property theApp : "Pages"
    property ws : {}
    --=====
    on process()
    set rezult to my commun()
    tell application "System Events"
    activate
    display dialog rezult
    end tell
    return ""
    end process
    --=====
    on commun()
    local liste1, liste2, ng, c1, c2
    --set my ws to {}
    tell application "Pages" to tell document 1
    set liste1 to words of body text
    set liste2 to {}
    set ng to count of graphic
    repeat with i from 1 to ng
    tell graphic i
    try
    copy items of (get words of object text) to end of liste2
    end try
    end tell -- graphic i
    end repeat
    (* Working this way we are counting the words as they are defined by Pages *)
    end tell -- document 1 of Pages
    if liste1 is not {} then
    set my ws to liste1
    set c1 to my compte4()
    else
    set c1 to 0
    end if
    if liste2 is not {} then
    set my ws to liste2
    set c2 to my compte4()
    else
    set c2 to 0
    end if
    set my ws to {}
    if my parlefrancais() then
    return "Nombre de mots dont la longueur dépasse " & limite & return & "dans la couche texte : " & c1 & return & "dans des blocs : " & c2
    else
    return "Count of words whose length is greater than " & limite & return & "in text layer : " & c1 & return & "in text blocks : " & c2
    end if
    end commun
    --=====
    on compte4()
    local wc, w
    set wc to 0
    repeat with w in my ws
    if length of (w as text) > limite then set wc to wc + 1
    end repeat
    return wc
    end compte4
    --=====
    on parlefrancais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parlefrancais
    --=====
    on run
    set rezult to my commun()
    if affiche then (*
    display the results *)
    tell application theApp to display dialog rezult
    else (*
    insert the results in the text body *)
    tell application "Pages" to tell document 1 to set selection to rezult
    end if
    end run
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE jeudi 19 février 2009 15:45:56)

  • Macbook X 10.6.8. Epson SX218 failed to print every fifth line, but only in MS Office documents. I updated Office. Now that line is slightly blurred as though the printer had missed out a pass.

    I am helping a disabled person with a printing problem involving a Macbook, an Epson SX218, and MS Office for Macs. The Macbook had been recently updated to OS X 10.6.8, and the printer driver reinstalled, by an Apple store. She complained the printer failed to print about every fifth line. It turned out there was no problem at all with printing web pages and emails, but only with Office (Word, Excel, Powerpoint). I updated
    Office. Later all lines were printed, but imperfectly with a bit missing from bottom of every fifth line, as though the printer had missed out a pass, so I am not sure the Office update is what made the difference. I am not at all sure whether this problem arises from the Mac or the printer or Office.

    It looks like that the installation process of one of the applications have caused some trouble. One of them may have changed or added kext files.
    For that, the Window server crashed if you try to open a non Apple application like Firefox
    Start the system in safe mode by holding the shift key on power on.
    If save mode is reached, perform a permissions repair with the Disk Utility.
    Don't bother about upcoming warnings like "could not repair file xy" as that occur cause you use the tool on a running system and opened files can not get touched by the tool.
    After repair is done reboot system to normal and try to open Firefox.
    If the problem persits, please report back here.
    Lupunus

  • Split string into itab

    Hello,
    I am trying to split a string into an internal table with:
    split content at '##' into table it_content
    but as the expected 6 line I only get 1 line into the table with the complete string.
    Any ideas?
    regards
    stefan

    Hi,
    You need to write the Program like below
    DAta: DEL(3) VALUE '***'.
    SPLIT content AT DEL INTO TABLE <itab>.
    The system adds a new line to the internal table <itab> for each part of the string.
    Regards
    Sudheer

  • HELP URGENT:; Splitting strings in servlets

    hi ...
    I am trying to access the below servlet from another servlet in iplanet . I have to access a file and arrange the '|' delimited data in the file in a table format like in html ...
    I have used my own function inside the servlets which splits a string based on character ...But I always get
    Internal error: exception thrown from the servlet service function (uri=/servlet/ReportsDataServlet): java.lang.NullPointerException, Stack: java.lang.NullPointerException
    at ReportsDataServlet.split(ReportsDataServlet.java:82)
    at ReportsDataServlet.doPost(ReportsDataServlet.java:56)
    at ReportsDataServlet.doGet(ReportsDataServlet.java:14)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:483)
    The sample code is shown below....I get the same error when i tries with stringokenizer as well....Pls help me fix this.....
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, Se
    rvletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    cont=getServletContext();
    out.println("<html><head><title>Reports Data</title></head><body bgcolor=DBD0E2>");
    String repType = request.getParameter("Rep");
    String mon = request.getParameter("month");
    String day = request.getParameter("day");
    String year = request.getParameter("year");
    String repName = repType+"."+mon+"-"+day+"-"+year+".txt";
    BufferedReader in = new BufferedReader( new FileReader("/home/lnayar/baais/xmlServlet/"+rep
    Name));
    String st;
    st = in.readLine();
    cont.log(st);
    int c =0;
    out.println("<table border=\"3\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\"><tr><td>L
    ATA</td><td>WC CLLI</td><td>WC NAME</td><td>ADSL_LOCATION</td><td>ATM FLAG</td><td>ATM RELIEF DATE</td><t
    d>FRAME FLAG</td><td>FRAME RELIEF DATE</td><td>GOLD FLAG</td><td>GOLD RELIEF DATE</td><td>OVERLAY INDICAT
    OR</td><td>COUNT</td></tr>");
    while (st != null)
    c++;
    st = in.readLine();
    StringTokenizer stt = new StringTokenizer(st);
    out.println("<tr>");
    while (stt.hasMoreTokens())
    //out.println("<td>"+stt.nextToken("|")+"</td>");
    out.println("<td>hello</td>");
    out.println("</tr>");
    while (st != null)
    c++;
    st = in.readLine();
    out.println("<tr>");
    Enumeration en = split(st,"|");
    while(en.hasMoreElements())
    out.println("<td>"+en.nextElement()+"</td>");
    out.println("</tr>");
    cont.log("out while");
    out.println("</table>");
    out.println("</body></html>");
    public Enumeration split (String str, String delim)
    Vector v = new Vector();
    int pos_1;
    int pos_2;
    //Set initial delimiter positions...
    pos_1 = 0;
    pos_2 = 0;
    //Start chopping off bits from the string
    //until left boundary reaches the length of string
    while ( pos_1 <= str.length() )
    pos_2 = str.indexOf(delim, pos_1);
    if ( pos_2 < 0 )
    pos_2 = str.length();
    String sub = str.substring (pos_1, pos_2);
    pos_1 = pos_2 + 1;
    v.addElement(sub);
    return v.elements();
    d deeply appreciate if soeone could take a look at the code and tell me exactly where i am going wrong ..... Its URGENT ...
    Thx
    klv

    But there is the while statement which filters null
    values..Which is useless in your case, because you proceed to change the value of st to something else which you don't check for null.
    At any rate, what you have to do is this:
    1. Look at the stack trace to find the line number where the error occurs.
    2. Look at that line in your code.
    3. Look at each object variable in that line. Find out how it became null and fix that.

  • Split String at delimiter into table.

    Hi Experts,
    I have a requirement wherein i need to split aaaa#bbbbbbbbbbbb#ccc#dddddddddddddddddddddd#e# into internal table as below:
    Header 1
    Header 2
    1
    aaaa
    2
    bbbbbbbbbbbb
    3
    ccc
    4
    dddddddddddddddddddddd
    5
    e
    how can this be done.
    Thanks & Regards,
    Anil

    Hi Ashok,
    split <string> at '#' into table it.  -Doesn't work
    split <string> at SPACE into table it. - Works
    But same statement with '#' is not working.
    Feeling strange.
    Thanks,
    Anil

  • Why jvm maintains string pool only for string objects why not for other objects?

    why jvm maintains string pool only for string objects why not for other objects? why there is no pool for other objects? what is the specialty of string?

    rp0428 wrote:
    You might be aware of the fact that String is an immutable object, which means string object once created cannot be manipulated or modified. If we are going for such operation then we will be creating a new string out of that operation.
    It's a JVM design-time decision or rather better memory management. In programming it's quite a common case that we will define string with same values multiple times and having a pool to hold these data will be much efficient. Multiple references from program point/ refer to same object/ value.
    Please refer these links
    What is Java String Pool? | JournalDev
    Why String is Immutable in Java ? | Javalobby
    Sorry but you are spreading FALSE information. Also, that first article is WRONG - just as OP was wrong.
    This is NO SUCH THING as a 'string pool' in Java. There is a CONSTANT pool and that pool can include STRING CONSTANTS.
    It has NOTHING to do with immutability - it has to do with CONSTANTS.
    Just because a string is immutable does NOT mean it is a CONSTANT. And just because two strings have the exact same sequence of characters does NOT mean they use values from the constant pool.
    On the other hand class String offers the .intern() method to ensure that there is only one instance of class String for a certain sequence of characters, and the JVM calls it implicitly for literal strings and compile time string concatination results.
    Chapter 3. Lexical Structure
    In that sense the OPs question is valid, although the OP uses wrong wording.
    And the question is: what makes class Strings special so that it offers interning while other basic types don't.
    I don't know the answer.
    But in my opinion this is because of the hybrid nature of strings.
    In Java we have primitive types (int, float, double...) and Object types (Integer, Float, Double).
    The primitive types are consessons to C developers. Without primitive types you could not write simple equiations or comparisons (a = 2+3; if (a==5) ...). [autoboxing has not been there from the beginning...]
    The String class is different, almost something of both. You create String literals as you do with primitives (String a = "aString") and you can concatinate strings with the '+' operator. Nevertheless each string is an object.
    It should be common knowledge that strings should not be compared with '==' but because of the interning functionality this works surprisingly often.
    Since strings are so easy to create and each string is an object the lack ot the interning functionality would cause heavy memory consumption. Just look at your code how often you use the same string literal within your program.
    The memory problem is less important for other object types. Either because you create less equal objects of them or the benefit of pointing to the same object is less (eg. because the memory foot print of the individual objects is almost the same as the memory footpint of the references to it needed anyway).
    These are my personal thoughts.
    Hope this helps.
    bye
    TPD

  • Split string based on number of characters

    Hi,
    I have a simple map where I receive a Streetname out of the source and have to write that streetname to the Address1 element in the destination. The issue is that the destination Address1 element can only contain 100 characters.
    If it has more then 100 characters then I have to split the string into the Address2 element.
    The next question is how I can do it the good way so that the string would be split between spaces and not in the middle of a word. For example:
    Streetname1 Streetname2 Streetname3 Streetname4 Streetname5 Streetname6 Streetname7 Streetname8 Streetname9
    The hundredth character is between t and r in Streetname9. So the cleanest solution would be to place everything in address1 and Streetname9 in address 2.
    How can I achieve this?

    I had faced a similar situation in which output element could only contain 100 characters after that i had to split rest of characters in batch of 100 characters and repeated the element.
    This was achieved by implementing recursion through XSLT. For this I created a template which will return a substring a generate an element with that element. This template will take two parameters-1) Complete string 2) Length (100 in your case).
    check the below article for a sample
    http://www.codeproject.com/Articles/16866/Recursive-XSL-Templates
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Split string into new column

    Hi All,
    Hoping you are able to help.
    I have a table of approx 16 items that I need to split,
    EG:
    CUSTOMER ACCEPTANCE - HAS BEEN DECLINED - DO NOT APPLY TO ACCOUNT
    CUSTOMER ACCEPTANCE -  HAS BEEN ACCEPTED - APPLY TO ACCOUNT
    CUSTOMER ACCEPTANCE - PENDING DECLINE - ESCALATION REQUIRED - RAISED IN PORTAL
    ESCALATION - RAISED - PENDING
    ESCALATION - NOT RAISED - STILL TO BE PROCESSED
    I need to Keep the first two sections, eg CUSTOMER ACCEPTANCE - HAS BEEN DECLINED in one column, and split off the remaining, eg DO NOT APPLY TO ACCOUNT into a new TEMP table to insert as a column into an existing table.
    With little SQL experience, I am having difficulties as they are all of different lengths / criteria etc. Some have 3 hyphens whilst others have 4+
    Is anyone able to help point me in the right direction with this request? I will be greatly appreciated.
    Kind Regards,
    BTMMP

    If you're trying to do this all in a SQL query or stored procedure, then you'll probably get better results on the SQL Server forums. However, if you're working with a PowerShell or VBScript that's doing the work, you're in the right place.
    Here's one example of how you could do what you're describing.  By the way, what do you want to do with the string "CUSTOMER ACCEPTANCE - PENDING DECLINE - ESCALATION REQUIRED - RAISED IN PORTAL"?  Should that be split into "CUSTOMER ACCEPTANCE
    - PENDING DECLINE" and "ESCALATION REQUIRED - RAISED IN PORTAL", or "CUSTOMER ACCEPTANCE - PENDING DECLINE - ESCALATION REQUIRED" and "RAISED IN PORTAL"?
    (In other words, should the script only split off whatever's after the final hyphen, or should it grab the first two pieces of text and split off everything else?)
    Here's an example in PowerShell which assumes that you want to separate out all text after the final hyphen in a string.  It uses a regular expression, though you could accomplish the same thing with Split, Join and Trim operations, if you prefer.
    $string = 'CUSTOMER ACCEPTANCE - HAS BEEN ACCEPTED - APPLY TO ACCOUNT'
    if ($string -match '(.*?)\s*-\s*([^-]*)$')
    $split = $matches[1], $matches[2]
    else
    $split = $string, ''
    Write-Host "Original String: $string"
    Write-Host "First Text : $($split[0])"
    Write-Host "Second Text : $($split[1])"

  • String.class without split(String regex)

    hello,
    This is my problem:
    I am using eclipse with j2sdk1.4.2 which
    implement
    the clase String.class with
    method replaceAll(String regex, String replacement) and
    method split(String regex)
    PAth: home_j2sdk1.4.2/jre/lib/rt.jar 25.762kb
    In this way:
    String columns[] = line.split("\t");
    for (int i=0; i<columns.length; i++)
    ws.addCell(new Label(i,row,columns.replaceAll("\"","")));
    I move the code above to websphere Application Developer 5.1.2
    which use Home_Websphere/eclipse/jre/lib/rt.jar 8.827 kb
    this jar in yours String.class not contains the
    method replaceAll(String regex, String replacement) and
    method split(String regex)
    I need to find the use my code above with that methods,
    what i need to do ???
    possible,i need to find the source to String.java of j2sdk1.4.2
    which implement the methods, but where ???
    or there is another way to do it ???
    Any help is greatly appreciated.

    If websphere is supposedly 1.4 compatible, arethey
    "allowed" to leave out methods from the JFC? Not sure what the JFC is, but no, they would not be
    allowed to leave out any methods.
    JFC - Java Foundation Classes. I think they started calling what might be considered the Java Core the JFC when they first added Swing to the distribution. Maybe the term is no longer used.
    RRD-R      
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Split String FM

    Hello,
    Does anyone know a standard string FM that split string at an absolut place and consider if the N place is blank or not ?
    My meaning is likely:
    str = 'test one two three'.
    I would like to split str at the 10th place but because it's in a middle of word split it in the 8th place ..
    str1 = 'test one'
    str2 = 'two three'
    and not
    str1 = 'test one t'
    str2 = 'wo three'
    I know that VB has few methods like that, I'm hope abap has it also ..
    Thanks in advance,
    Rebeka

    Hi Rebeka,
                    Please check the following code. This would help. FM 'TEXT_SPLIT' does it correctly.
    DATA: text(50) TYPE c VALUE 'test one two three',
    text1(20) TYPE c,
    text2(20) TYPE c.
    CALL FUNCTION 'TEXT_SPLIT'
      EXPORTING
        LENGTH             = 10
        TEXT               = text
       AS_CHARACTER       =
    IMPORTING
       LINE               = text1
       REST               = text2
    check sy-subrc = 0.
    write :   text1 ,
              text2.
    Reward points if useful.
    Regards
    Abhishek

Maybe you are looking for

  • How do I only receive new mails on iPhone

    So, I have succesfully set up my hotmail account on my iPhone. The only problem is that I receive my oldest mail first and since I have like 2000+ old messages in my inbox it will take a while for me to get to my new messages. Is there a way to set u

  • Non-English string access from excel sheet through JDBC

    My excel sheet data is Test ������������ I am using JDBC connectivity for accessing the Excel sheet. Code looks like, List Output = new List(); try Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ); c = DriverManager.getConnection( "jdbc:odbc:qa-list",

  • Creating a wireless access point on a wired ethernet

    I am spending a month in Italy and will have a wired internet connection in my apartment. I would like to connect my Airport Express to it so that I can use my iPhone in the wi-fi mode to save on AT&T data charges. I know that this configuration is p

  • Dock repeatedly does not come up

    In the past 2 days I've had to restart my computer three times because the dock just will not come up... it works again after each reboot. I've had it be slow before, but never completely unresponsive. If I try to move the dock to 'always in view', o

  • Wait time minimum

    I would like to know which the smallest value than I can use  whith the  function wait time and wait time until ... . Is possible use values less then 1ms like microseconds. Because i have a problem in control with a board 6023E a step motor i need s