First Character " " in shorttext is convertet to " ( ) "

High there,
when CONVERT_STREAM_TO_ITF_TEXT is used to convert first 40 characters of a longtext into shorttext and the first Character is a "<", the resulting shorttext starts with "<(><<)>". This is a function of FU CONVERT_STREAM_TO_ITF_TEXT. Sometimes we need the "<" as first char to explain results. Does anybody know how we can pass this conversion (maybe with a leading char like \ or so)?
Thanks, Harry

KB 1388221

Similar Messages

  • I cannot open pdf files in safari.  It tells me first character is invalid.  I have deleted plug-ins and reinstalled program.  HELP

    cannot open PDF files in safari.  It tells me first character is invalid - I have deleted plug-ins and reinstalled the program.

    HI..
    If you are using Adobe Reader ...
    Try uninstalling the current copy of Adobe Reader first.
    Best to use a utility to do this to make sure all the associated files are removed as well >  Download AppCleaner for Mac - Uninstall your apps easily. MacUpdate.com
    Then reinstall >  http://get.adobe.com/reader/
    Quit then relaunch Safari to test.

  • [CS2/CS3 JS] Finding the first character of each paragraph

    Hi,
    Can anybody help with my script below:
    for (h=0; myParaCount>h; h++){
    myChars = myStory.paragraphs.item(h).contents;
    if (myChars.characters.item(0) == "l" && myChars.characters.item(0).appliedCharacterStyle == CharStyleWin){
    myStory.paragraphs.item(h).appliedParagraphStyle = "L-B";
    This script is supposed to test if the first character is an "l" with my character style "Wingdings" applied to it. I could not test whether the character style is "Wingdings" or not. What could be wrong with my script. Thanks.

    // You need to have a textFrame selected
    var myFrame = app.selection[0];
    var myParaCount = myFrame.paragraphs.length;
    // There must exist a paragraphStyle name L-B
    var myApplyStyle = app.activeDocument.paragraphStyles.item("L-B")
    for (h=0; h < myParaCount; h++){
    var myChar = myFrame.paragraphs.item(h).characters.firstItem();
    // check if first char is "l" and if its applied charstyle name is CharStyleWin
    if (myChar.contents == "l" && myChar.appliedCharacterStyle.name == "CharStyleWin"){
    myFrame.paragraphs.item(h).appliedParagraphStyle = myApplyStyle;
    /* Edited at 11.21 */

  • Missing first character in file upload

    We've developed a class called IfsManager which:
    1) connects to iFS (using admin credentials)
    2) checks to see if the user specified exists, and if not, creates the user specified user directory
    3) creates the document (which is being uploaded from the local file system)
    When a file (.doc, .pdf, etc.) is uploaded to iFS, the first character is always stripped from the file. Does anyone know how to solve this? Any help would be greatly appreciated!
    /********** IfsManager.java ***********/
    package oracle.ifs;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    import oracle.ifs.beans.parsers.IfsXmlParser;
    import java.io.File;
    import java.io.InputStream;
    import java.io.StringReader;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.ByteArrayInputStream;
    import java.util.Hashtable;
    import java.lang.*;
    import java.util.Locale;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.upload.FormFile;
    public class IfsManager extends Object {
    public static LibrarySession getConnection(String user,String password,String serviceName,String
    schemaPassword) throws IfsException {
    System.out.println("creating new library serivice");
    LibraryService service = new LibraryService();
    System.out.println("passing credentials");
    //LibrarySession sess = null;
    CleartextCredential me = new CleartextCredential(user,password);
    System.out.println("@param user");
    System.out.println("@param password");
    ConnectOptions connect = new ConnectOptions();
    connect.setLocale(Locale.getDefault());
    connect.setServiceName(serviceName);
    System.out.println("@param servicename");
    connect.setServicePassword(schemaPassword);
    System.out.println("@param servicepassword");
    return service.connect(me,connect);
    public static void createUser(LibrarySession ifs, String username)
    throws IfsException {
    ifs.setAdministrationMode(true);
    System.out.println("administration mode set to true");
    System.out.println("Passing <SimpleUser> xml string");
    String simpleUserString = "<?xml version = '1.0' standalone = 'yes'?>\n"
    + "<SimpleUser>\n"
    + "<UserName>" + username + "</UserName>\n"
    + "<Password>" + username + "</Password>\n"
    + "<HomeFolderRoot>/home</HomeFolderRoot>\n"
    + "</SimpleUser>\n";
    //StringReader userDefinition = new StringReader(simpleUserString);
    ByteArrayInputStream userDefinition = new ByteArrayInputStream(simpleUserString.getBytes());
    IfsXmlParser xmlParser = new IfsXmlParser(ifs);
    //SimpleXmlParser xmlParser = new SimpleXmlParser(ifs);
    System.out.println("parsing xml file");
    System.out.println("username = " + username);
    //xmlParser.parse(userDefinition,null,null);
    LibraryObject lo = xmlParser.parse(userDefinition,null,null);
    System.out.println("the library object returned by parse is " + lo);
    if (lo != null) {
    System.out.println("parse method returned a " + lo.getClass().getName());
    DirectoryUser du = (DirectoryUser) lo;
    System.out.println("the directory user created is " + du.getDistinguishedName());
    System.out.println("xml file parsed");
    ifs.setAdministrationMode(false);
    System.out.println("administration mode set to false");
    public static void createDocument(LibrarySession ifs, String username, String fileName,
    Collection col, FormFile file, String policyType, Long seqId)
    throws IfsException {
    try{
    ifs.setAdministrationMode(true);
    DocumentDefinition newDocDef = new DocumentDefinition(ifs);
    System.out.println("creating new document definition");
    String newFileName = new String(policyType + "_" + seqId);
    newDocDef.setAttribute("NAME", AttributeValue.newAttributeValue(newFileName));
    InputStream stream = file.getInputStream();
    newDocDef.setContentStream(stream);
    stream.read();
    Document doc = (Document) ifs.createPublicObject(newDocDef);
    long size = doc.getContentSize();
    System.out.println("file is " + size + " bytes");
    System.out.println("creating new document");
    DirectoryUser du = (DirectoryUser) col.getItems(username);
    Folder homeFolder = du.getPrimaryUserProfile().getHomeFolder();
    System.out.println("home folder is " + homeFolder);
    homeFolder.addItem(doc);
    ifs.setAdministrationMode(false);
    } catch (FileNotFoundException fnfe) {
    System.out.println("FileNotFoundException thrown");
    } catch (IOException ioe) {
    System.out.println("IOException thrown");
    public static void createFolder() throws IfsException {
    // code to create folders
    }

    Dude! You're calling stream.read(), that's why you're "losing" a character! (You're actually reading the first character out of the InputStream before iFS has a chance to "**** " it into the database.
    Here's an excerpt from the Java API javadoc for the InputStream.read() method:
    "Reads the next byte of data from the input stream..."
    Here's your code (notice the bold):
    (just remove the bold line and it should fix your problem.) ...I hope the bold shows up in this reply...
    ifs.setAdministrationMode(true);
    DocumentDefinition newDocDef = new DocumentDefinition(ifs);
    System.out.println("creating new document definition");
    String newFileName = new String(policyType + "_" + seqId);
    newDocDef.setAttribute("NAME", AttributeValue.newAttributeValue(newFileName));
    InputStream stream = file.getInputStream();
    newDocDef.setContentStream(stream);
    stream.read();
    Document doc = (Document) ifs.createPublicObject(newDocDef);
    long size = doc.getContentSize();
    System.out.println("file is " + size + " bytes");

  • SO_NEW_DOCUMENT_ATT_SEND_API1 - attachment contains only first character

    Hi,
    we use the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send a report as txt attachment. The problem is that the attachment in the email contains only the first character of the origin text. But the atttachment in the transaction SOST has definitely more content (although not all as it should be... but this is another problem)
    Has anybody an idea what's wrong? We use ECC6. Before ECC6 we doesn't have that problem.
    Thanks and regards, Susanne
    Here is the content:
    DATA: begin of contents_bin occurs 0, "before ECC6
               line(132) type c,               
          end of contents_bin.
          t_contents_bin_soliti1 TYPE TABLE OF solisti1 WITH HEADER LINE. "with ECC6
        CLEAR t_pack.
        REFRESH t_pack.
    * Receiver:
        TRANSLATE p_output TO UPPER CASE.
        SELECT SINGLE * FROM ypruser INTO w_user
                        WHERE rusid = p_output.
        t_receiver-rec_id = w_user-rusid.
        t_receiver-receiver = w_user-email.
        t_receiver-rec_type = 'U'.
        APPEND t_receiver.
    * Document content:
    * Attachment content:
        CLEAR: wa_len, length, h_len.
        DESCRIBE TABLE contents_bin LINES lineno2.
        READ TABLE contents_bin INDEX lineno2 INTO wa_len.
        length = STRLEN( wa_len ).
        obj_descr = w_filename.
        t_pack-transf_bin = 'X'.
        t_pack-head_start = 1.
        t_pack-head_num = 1.
        t_pack-body_start = 1.
        t_pack-body_num = lineno2.
        t_pack-doc_size = ( ( lineno2 - 1 ) * 255 ) + length.
        t_pack-doc_type = 'TXT'.
        t_pack-obj_name = 'Attachment'.
        t_pack-obj_descr = obj_descr.
        t_pack-obj_langu = 'E'.
        APPEND t_pack.
    * Header data (fill table object_header):
        object_header = 'WP01_List.txt'.
        APPEND object_header.
        t_contents_bin_soliti1[] = contents_bin[]. "with ECC6
        w_commit_work = 'X'.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  document_data              = document_data
                  put_in_outbox              = ' '
                  commit_work                = w_commit_work
             TABLES
                  packing_list               = t_pack
                  object_header              = object_header
                  contents_bin               = t_contents_bin_soliti1
                  contents_txt               = t_content
                  receivers                  = t_receiver
             EXCEPTIONS

    Thanks for your very helpful hint. So I saw that I could use the BCS cause we have ECC 6. This is much more easier. The txt attachment was then ok but the format of data was wrong. Finally I used these code line http://wiki.sdn.sap.com/wiki/display/Snippets/SendMailhavingMultipleFilesasAttachmentusingobjectorientedtechnique to solve it.

  • Only display the first character issue

    Hi,
    I'm using CR 2008 to generate reports.
    I use oracle database.
    I use a stored procedure to get data and everything working fine ,it return correct data.
    I have five details section but i display one details section and i suppress others
    My issue is execute the rpt file to presssig F5 key;   string type record is only able to print the first character on the preview.
    eg: record with value 'ABCDE', after printed on rpt file, only character 'A' was printed on the preview.
    if i verify database, it display correct data but a few times later problem occurs again
    Anyone know how to fix it?

    if you create a blank report as follows , you will take same error
    my reports section;
    section - formula fieds 
    a - - - - a b f g
    b - - - - a b e f g
    c - - - - a b c e f g
    d - - - - c f g
    e - - - - d e f g
    my details sections suppress formula;
    if {CR_TEST.CODE}=1 then false else true
    if {CR_TEST.CODE}=2 then false else true
    if {CR_TEST.CODE}=3then false else true
    if {CR_TEST.CODE}=4 then false else true
    if {CR_TEST.CODE}=5 then false else true
    my procedure is just like this;
    CREATE OR REPLACE PROCEDURE CR_TEST(
       P_MONTH IN VARCHAR2
    , P_YEAR IN VARCHAR2
    , CODE IN NUMBER
    , P_CURSOR OUT GP.REF_CURSOR
    IS
    BEGIN
       IF CODE = 1
       THEN
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , 'X' C
                  , 'X' D
                  , 'X' E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 2
       THEN
          --A, B, E, F, G
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , 'X' C
                  , 'X' D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 3
       THEN
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , C
                  , 'X' D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 4
       THEN
          OPEN P_CURSOR FOR
             SELECT 'X' A
                  , 'X' B
                  , C
                  , 'X' D
                  , 'X' E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 5
       THEN
          OPEN P_CURSOR FOR
             SELECT 'X' A
                  , 'X' B
                  , 'X' C
                  , D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       END IF;
    END;
    Edited by: assaulter on Oct 12, 2011 11:50 AM
    Edited by: assaulter on Oct 19, 2011 1:50 PM

  • Batch file gives error "is not recognized as internal command.." after first character

    For every batch file I create, I receive the same error displaying after only running the first character in the file: ' d' is not recognized as an internal or external command, operable command or batch file.
    This occurs whether I run 'dir' cd '../..' or java.exe
    I've confirmed the path environment variable has the correct paths, cmd.exe is assigned to comspec, I'm running as admin, etc. What have I not setup correctly to run batch files. I can run these same commands directly at the command line.
    I'm running the latest version of 8.1, on Toshiba Satellite C855

    We do not have access to your computer, we cannot read your mind, and we cannot see your screen.
    Please copy and paste the exact command you are using and also copy and paste the
    exact error message.
    -- Bill Stewart [Bill_Stewart]

  • Keyboard problem - First character not showing up

    Hi all....
    I've noticed a funny quirk on my mid 2006 iMac. Lately, when I try to type anything in either a form field or in Spotlight, the first character I type doesn't show up. Only after hitting it again will it do so.
    I tried resetting the PRAM, checking preferences, and doing permissions repairs, but nothing seems to work. Not sure what to do next. Would a firmware reset from the Apple downloads page work?
    I'm on Tiger 10.4.11

    which board is it - the newer style aluminum / silver ones?
    there is one, but will only install if you have 10.5.2 & not sure if it covers your issue. I had this on my macbook pro which did get firmware updates after leopard too...
    http://www.apple.com/downloads/macosx/apple/firmware_hardware/aluminumkeyboardfi rmwareupdate10.html

  • Capitalization of first character in a sentence

    Is there a 'switch' that should be turned on to ensure that the first character in a sentence or paragraph is automatically a capital letter?

    Tom
    Thank you for that. I knew there would be the facility but could I find it..... Feel a bit silly now.

  • The first character in a string

    I need to return the first character of a string, convert it to an integer, and compare it with another integer to see if they're the same. Sounds simple, even for me, but it won't work!!!
    // First question >
    Object userValue1 = JOptionPane.showInputDialog("Blah Blah Blah", JOptionPane.PLAIN_MESSAGE, null, options1, options1[0]);
    Variables.placeholder = (int) userValue1.charAt(0);This is the error I get
    C:\Documents and Settings\imholt\My Documents\OOPAttempt\21_Questions\Engine.java:170: cannot resolve symbol
    symbol : method charAt (int)
    location: class java.lang.Object
              Variables.placeholder = (int) userValue1.charAt(0);
    ^
    1 error
    I have a sneaky suspicion that once I find out what the problem was, I will ask myself why I didn't see it before...

    Try this
    Object userValue1 = JOptionPane.showInputDialog("Blah Blah Blah", JOptionPane.PLAIN_MESSAGE, null, options1, options1[0]);
    String str = userValue1.toString();
    Variables.placeholder = (int) str.charAt(0);

  • Delay when typing in Safari, the first character is always missing.

    Recently when I go to type in a address or text in the search window, the first first character is always gone. Resulting in me having to back space to the beginning to re-type the first character.
    My father is a Mac user too and he experiences the same thing.
    Any suggestions?

    Hi,
    The problem you described sounds reminiscent of a problem many MacBook, MacBook Pro and even PowerBook G4 users have been experiencing. If you do a Discussions-wide search for the phrase "first key" in quotation marks, you'll get an idea of how wide-spread the problem is. Apple recently released a firmware update for the MacBook and MacBook Pros, but reports of first-key-unrecognition persists.
    While I hope your problem isn't of this variety, the point I'm trying to illustrate is that if it is, Apple has yet to pin down a proper fix for it. Until they do though, perhaps some workarounds you can try are banging on a modifier key before typing anything, or clicking twice to ensure focus has been given to a window element and not just the window.
    Yang

  • How to get the colour of a line depending on the attribute of first charact

    Hi
    I am using DefaultStyledDocument in JTextPane.the function is depending on the frirst character of the line the whole line should be of one colour.for example if i tye the first character as '\' the whole line following this character must be green .Can anyone suggest me how to do it

    Hi,
    Simple example below:
    Suppose you have this method in AppmoduleImpl:
    public void testHello( ) {
    return "Hello";
    1.After you expose this to clientInterface,drop this method on the jspx page as ADF Parameter
    form
    2.Drop the return String as outputText
    3.Run the page,click on the commandButton & the outputText returns 'Hello'
    Regards,
    Shantala

  • Replacing first Character of every word in a string with an Uppercase

    Hi,
    Is it possible to replace all first character of every word in a string with UpperCase?
    $="autocad lite"
    Should look "Autocad Lite" .
    Thanks,
    François

    Hi FRacine,
    Please refer to the script below:
    $givenname="autocad lite"
    $givenname
    $givenname = $givenname.substring(0,1).toupper()+$givenname.substring(1)
    $givenname
    Edit: to change first character in every word, please refer to this script, this may not be the best way, but it can work:
    $givenname="autocad lite"
    $givenname
    $words=$givenname.split(" ")
    $givenname=""
    foreach ($word in $words){
    $givenname+=$word.substring(0,1).toupper()+$word.substring(1)+" "}
    $givenname=$givenname.trim()
    $givenname
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Only first character of plugin name is shown

    I'm developing a plugin using the Transmit API and for some reason it's only displaying the first character of the display name in the Playback window.
    The code is as follows:
    #define PLUGIN_DISPLAY_NAME L"My Plugin"
    memcpy(&outPluginInfo->outDisplayName, PLUGIN_DISPLAY_NAME, sizeof(PLUGIN_DISPLAY_NAME));
    I thought it could be because it's expecting a uint16_t array but the L macro produces a wchar_t array, however when I created a uint16_t array it still exhibited the same problem.
    It's worth noting that the example Transmit API code in the SDK suffers from this issue too.
    Currently my workaround is to not provide the outDisplayName at all which causes Premiere to populate it with the filename of the plugin bundle, but I would prefer to set the name programmatically.
    I am running Premiere Pro CS 6.0.2 on OS X 10.7.4.

    Thanks Zach, that now works with Encore but the problem with Prelude remains. The "stop" icon won't change to "play" and if I click it then it just steps forward by a single frame. I think for now I'll just disable the plugin in Prelude. This issue is reproducable with the sample code but if the Prelude team needs extra info I'm happy to provide it.
    Another issue I've found is that with certain types of footage (I've witnessed it with HDV thus far), every so often as I step through it jumps timecode numbers. So it will jump from 00:00:00:06 to 00:00:00:08 and then remain there for two frames before continuing on to 00:00:00:09 as normal.
    If I then log the frame time to the console, I can see that Premiere is saying that those two frames have the same time, even though they appear as distinct frames in Premiere.

  • Please Help: Ignore first Character in a String.

    How do you ignore the first Character in a String?
    String a = JTable.getValueAt(row,column).toString();
    //Ignore first Char of a? ('$')
    double b = Double.valueOf(a).doubleValue();Any help would be appreciated!

    Ok,so I do that. Now I have the Char '$'. But I don't want '$', I want everything after it. Must I loop throught the rest of the string or can I just remove the first Char?

Maybe you are looking for

  • My mac is running slow and hot

    Macbook Pro 2010-2011 i forgot Mac OS X version 10.6.8 Processor 2.66 GHz Intel Core 2 Duo Memory 4GB 1067 MHz DDR3 My current problem which bother me is that 2 days ago i was watching tv series when suddenly my mac perform very slow and a bit hot. I

  • How do you know what's in your sharing queue?

    I've got 10+ videos in my upload to youtube queue In the background task list, all I see is youtube upload Details are only given when a file is processed Let's say i want to cancel one of the video uploads, how do I know which one in the queue?? Tha

  • Use safari to open pdf it's black.

    When I use safari to open a pdf file which any pdf from online or offline. it wouldn't work, it just black background. what should I do??? Thank you. Li

  • Extract Number from string

    I need to extract the number, if it exists, from an alphanumeric text string.  I am told that the first two characters will be alpha and the remaining character(s) will be numeric, if the numeric exists at all. I know this is a simple formula, but I

  • I am trying to put a JButton over an animated image series

    can anyone help me? What I am doing is running a series of 6 images one after the other in an animation, JApplet animation, and I can't get the JButtons to apear over the pictures without totaly blocking the pictures off, or greating one big button,