Invisible character as a separator

I have a description column (VARCHAR2 type) in a table. I need to add a separator (at a pre-determined position which is based on some logic) within the description to identify it in 2 portions. The description with the separator needs to be persisted in the table. I also need to display the description in the online pages, but without the separator.
Eg: If I use '|' as the separator then the description would be -
Databases are|useful
For the online page, I would need to use some kind of trim() in the SELECT query to remove the '|'. The trim() is going to be an overhead and I'm trying to see if this can be avoided.
Is there any special character which can be used as a separator, but doesn't have to be trimmed? Something like a character which exists in the column but is invisible in ouput of a SELECT query.

museshad wrote:
I have a description column (VARCHAR2 type) in a table. I need to add a separator (at a pre-determined position which is based on some logic) within the description to identify it in 2 portions. Not very sensible in data modeling and design terms. You are now forcing a single string attribute (implemented as a database column) of the entity to have an inherent structure and intelligence. And this is not supported by the string data type.
There are two basic approaches to this problem.
If the data model is correct and the string attribute is correctly modeled, then you have a rendering issue - how to display that attribute's value to an end-user. This is a client application issue. It deals with the actual rendering part of the data in the data model. It should be applying the "+split text over multiple lines+" logic.
If the data model is not correct and the attribute contains 2 "sub elements" then that should be corrected. The existing column should be redefined as 2 columns and a single mass UPDATE applied to the table to correct the contents (and create the intelligent data structure). Alternatively, the single column can be re-used and the string data type changed into a structure that supports the required intelligence that is needed. An user defined ADT (Advance Data Type) can be created in SQL to support this structure.
Keep in mind that if you hack the existing column's contents, you are now injecting structure data that is not part of the actual column value. All clients using that table and that column, will now need to recognise that and be able to determine the actual structure for that that column. This is not a sensible approach.

Similar Messages

  • How to handle an invisible character in a string?

    Hi,
    I have an interesting situation-
    select bac_person_id, length(bac_person_id) from bkmap_personid_stg where BAC_PERSON_ID like '%27136317%'
    The result is -
    BAC_PERSON_ID|LENGTH(BAC_PERSON_ID)
    27136317|     9
    I don't know what is the invisible character here?
    It is certainly not a blank character as trim is not working -
    select * from bkmap_personid_stg where trim(BAC_PERSON_ID) = '27136317'
    no records!!
    But substr does give me the resullt -
    select * from bkmap_personid_stg where substr(BAC_PERSON_ID,1,8) = '27136317'
    How can I know which is the last character? and How to handle it?

    girija_pathak wrote:
    How can I know which is the last character? and How to handle it?You use the DUMP() function in SQL in order to see the actual content of the column.
    E.g.
    select DUMP(bac_person_id) from bkmap_personid_stg where bac_person_id like '%27136317%'
    The decimal character values will be displayed - enabling you to see where and what control characters characters exist in the string value for that column.

  • Pages: On the new version of Pages, I can't select the invisible character "return". I need to copy and past it on "Find and replace". How can I do that? Thanx.

    To change all the "-" by — that starts a dialogue on a book, I used to copy and past "Return" + "-" to ensure that all the "-" will not be change. But on the new version of Page if I select the "Return" character, and past it on "Find", the "Space" is appearing. How to select the "Return" character ? hanks for your help.

    Select a song. Hit command-I (Mac) or Ctrl-I (Windows). In the pane which opens select the 'Artwork' tab. Drag an image to the space.
    Or, select an album: same keystroke. In the pane which opens is a space labelled 'Artwork' - drag an image there.

  • Problem with End separator in Sender FCC channel

    Hi Experts,
    If i use a special character as field separator it is working.The same character is not recognized as end separator.
    We tried all different options ,still its not working.
    Thanks,
    Karthikeyan.

    Hi Aamir,
    We tried with single quotes and also as Hex values too.
    As mentioned earlier, it is working as Field separator not as end separator.
    Thanks,
    Karthikeyan.

  • URGENT: Paragraph/Character style help (doing massive amounts manually)

    I'm using CS3 at work but if it's magically easier, i may have access to cs4 (less likely but possible). It's a long post but I wanted to be in  depth with my problem which at its core is simple. I have included a 2-page spread example in pdf.
    What I greatly need help with is your opinion of how I can set this up to speed up the process, unify the document, and make future edits simple instead of crazy difficult. Can I configure a paragraph style to NOT replace font style? Can that style include my preset tabs (for bullets) which list as follows?:
    number, small letter, roman numeral, bullet
    Let me start by saying I SCOUR the net and all available options before posting.  I'm cleaning up/editing a production manual for a portrait company I work for and am new to indesign but have figured many things out. I'm quite proficient with the Adobe Suite and computers. I'm using last year's indesign file and it was done very poorly. The words are right, the lines are right, the tabs are terrible and i've needed to move many pages out of order and add plenty. I also chose to disable 1 text box that flows from page to page (i see now it's helpful but they had made it impossible for me to use the existing one and I didn't have time to redo). The pictures I can add and manipulate freely but an embedded text-wrapped version would be nice as well (less important by far).
    The manual is spiral bound with text on the right page and a notes page on the left for the layout. (flipped open the left side is lines for notes and the right side is operations). It's set up with a Header at the top (in some cases a sub header almost identical right below it), a space or two, then an outline format IE:
    1)     Open job
              a) Go into G:\Location
              b) Select job code
                   i) *Note: Be sure to select the right one (etc)..
    2)      Continue
                                       |                                                    |
                                       |                                                    |
                                       |                    Picture                      |
                                       |                                                    |
                                       |______________________________|
    Page size is 8.5x11 with a .5 safe print border all around (document is 11x17). The Document is about 100 pages of written directions (so double that for indesign pages). It will be printed on a Xerox IGen3.  The whole book give or take is set up like that. Thus, a few paragraph and character styles are in order. I've been editing/cleaning up each page re-tabbing, re-laying out. It's hell and must be done in 2 days.
    I'm using Myriad Pro universally as the font.  The sizes are as follows:
    Header: 16 bold center
    Sub (if applicable): 15 bold center
    Body: 12 point
    I've gotten paragraph styles to work sort of. I tried setting up numbering and bulleting but it's been giving me so much grief that I typed those all by hand or have just adjusted existing ones (I don't have much time currently, BUT need to learn for future updates and to convert it to styles). I know styles are the way to go with a couple master pages involving bulleting and character styles... however I could not become an expert overnight unfortunately; i tried =)
    The real killer for paragraph styles have been:
    - The portions of the directions that pertain to specific menu options or clicks are in bold, occasional important info is red. Normal text including numbers/bullets are normal. There are many words repeated that need bold so perhaps some kind of search/replace script could help however im not positive.
    - When I go to apply a paragraph style it must make all type bold or not bold. It doesn't replace the color of the text which is good.
    -  Having major trouble with bullets/numbers working the way i'd like.

    It is unfortunate you only have two days, but you could play around with these suggestions below and see if they help more than they hender... (NOTE: SAVE A COPY OF THE DOCUMENT BEFORE YOU START MONKEYING AROUND IN CASE YOU HATE THE RESULTS!)
    For starters, you could certainly do the lists via stylesheet. It would require 3 lists based on your sample. Base list 2 and 3 on list 1 or all 3 on a default List paragraph style, so that you can globally control your list formatting without having to change all 3 each time you want to apply a tweak.
    List 1 would be leve 1, 1,2,3 style with indents like 3p, -1.5, 3p. Align right and don't restart numbers. If you want bold numbers, make a bold character style called List# and apply it.
    List 2 would be level 2, a,b,c style with indents like 4p, -1p, 4p. Restart on level change.
    List 3 would be level 3, i,ii,iii style with indents like 6.5p, -1.5p, 6.5p. Restart on level change.
    Tweak as necessary to match your actual text.
    Then just do a global GREP search and replace, replacing out the manual list numbers with real styles.
    List 1 replace ^\t[0-9]+\t with ~- (discretionary hyphen is a nice invisible character that won't break anything) and paragraph style of list1.
    List 2 replace ^\t\t[a-z].\t with ~- and paragraph style list2.
    List 3 replace ^\t\t\t[ivx].\t with ~- and paragraph style list3.
    The last step of list replacement would be to manually restart numbering for each new list.
    As for the keywords, unless you have a complete list of what will be bold and it will always be bold, just manually style them with character styles.
    Make a character style called "Keyword" and apply bold to the formatting.
    Make a character style called "Keyword Important" and apply bold and red formatting.
    If you know certain words are always, always the same and you have CS4, you could create a GREP style that applied Keyword character style to any words that matched.
    For example, if the keywords Left, Right, Top, Bottom always were bolded at the beginning of the paragraph, you could add the GREP style that applied Keyword to ^(Top|Bottom|Left|Right).
    In all likelihood you will be applying a lot of manual keywords too though, so make sure you put a keyboard shortcut on (like cmd-opt-1, 2, etc) on the Keyword and Keyword Important character styles. That way you can just fire through selecting text and whacking cmd-opt-1 where appropriate.

  • New Line Character problem in mail attachment

    Hi all,
    my xi-box is in patch level 16. i need to send the mapped xml as a pipe delimited file(a lineitem per line) attachment to a mail id. so i use MTB to content convert the payload and attach the content as an attachment using a custom module and send the mail. Since the naming convention of the attachment (as per my requirement) says the file should be a .txt file, i 've used text/plain as the content-type.
    if i open the attachment in textpad or wordpad i can see one lineitem per line; but if i open it with notepad its not the case.lineitems do not appear in separate lines but appear continuously. i 'm seeing a box character as a separator between the lineitems. i'm not able to figure it out why.
    i used MTB in file adapter and content converted the payload and opened the file in notepad;it was fine.
    But i'm not able to figure out why its happening with the mail attachment. If you have come across such a problem please suggest me to solve this.
    Regards,
    Sundararamaprasad

    Is there any way you can send the file in an ASCII format instead of BINARY format. In many of my resolved cases I just change from binary to ascii and it works for eg., while doing FTP.
    thansk,
    rakesh

  • Error "Compile error: Invalid character" after copy paste operations in VBE 6.5 PowerPoint 2011

    This is a weird problem with the VBE 6.5 in Office 2011, running natively on a Mac.
    Sometimes, yet often, when I select a word by double clicking on it or a line by highlighting that line in the editor and then copy/paste it somewhere else in the code, the compiler throws the error "Compile error: Invalid character"
    The thing is, what I see has been pasted is exactly the same as the source text. However, if I then paste the same clipboard item to a text editor, I can see that there is an 'invisible' character at the end of the string which is counted in the text editor
    where the cursor is shifted past it but does not shown on the screen!!!
    Back in the VBE, if I select a line that is dubious and drag it, the semi transparent dragged text has a '>' character on a new line.
    In some copy/paste cases, the compiler doesn't see an error but the code doesn't work as expected and I have spent hours debugging stuff that has invisible characters in it (the hardest debugging I've ever had to do!).
    I'm not sure if this example will paste correctly into the forum but this looks like 19 characters but is in fact 20 as there is the offending copy/paste invisible character between 'Test' and '.'
    <code>Test.Value = False</code>
    This seems to be a major oversight in the code of the VBE 6.5 so are Microsoft aware of this and when is it due to be fixed?
    Jamie.

    I had this exact issue.  This is a terrible bug.  The code looks perfect, but there are hidden characters that throw compiler errors.  Thanks for the quick fix, Microsoft.

  • Insert set of character in a string

    hi guys,
    I have created a string of length 19, i need to insert set of character and compare them if its right format or not.That is for barcode i need. i WANT MY PROGRAM TO GENERATE THIS FORMAT BARCODE.
    eg : INV40602007RE000155

    Hi
    SEARCH
    Variants:
    1. SEARCH f    FOR g.
    2. SEARCH itab FOR g.
    Note
    Like all string processsing statements, you can only use character-type operands here.
    If the type of an operand is not STRING, the operand is treated like a type C field, regardless of its actual type, even though no actual conversion takes place.
    See Only character fields allowed in string processing.
    Variant 1
    SEARCH f FOR g.
    Additions:
    1. ... ABBREVIATED
    2. ... STARTING AT n1
    3. ... ENDING   AT n2
    4. ... AND MARK
    Effect
    Searches the contents of f for the string in the field g. This string can have any of the following formats:
    'str'
    a character string (trailing spaces are ignored)
    '.str.'
    any character string between the periods
    '*str'
    a word ending with "str", including "str"
    'str*'
    a word beginning with "str", including "str"
    You can use any non-alphanumeric character as a separator, that is, spaces, punctuation marks and non-printable characters.
    Note
    The search patterns 'str' and '.str.' are identical apart from a few exceptions. You must use '.str.' when the pattern str contains spaces (at the end), the '.' character (at the beginning and end), or the '*' character (at the end). You should also use '.str.' when the contents of the search string str is a variable, since you cannot predict when you write the statement what the contents of the string will be.
    The system does not distinguish between upper and lower case characters.
    The return code is set as follows:
    SY-SUBRC = 0:
    The search string g was found in the field f. SY-FDPOS contains the offset of the found string or the found word within the field.
    SY-SUBRC = 4:
    The search string g was not found in the field f.
    Addition 1
    ... ABBREVIATED
    Effect
    Searches the field f for a word containing the character string specified in the field. Here, the characters specified in g may be separated by other characters in the word. If the string g occurs in a word, the return code in system field SY-SUBRC is set to 0. The first letter of the search string g and of the word must match.
    Example
    DATA F(50).
    MOVE 'Alaska Texas California' TO F.
    SEARCH F FOR 'Clfrn' ABBREVIATED.
    Here, SY-SUBRC is set to 0, since not only does the string 'Clfrn' occur (separated by other characters) in 'California', but 'Clfrn' and 'California' begin with the same letter.
    Addition 2
    ... STARTING AT n1
    Effect
    Searches the field f starting from the position n1. Here, n1 can also be a field containing the corresponding value. The first character in the field f is in position 1.
    When you use the addition STARTING AT, the position specified for the found pattern in SY-FDPOS does not refer to the start of the field, but to the position n1.
    Addition 3
    ... ENDING AT n2
    Effect
    Searches the field f up to the position n2.
    Addition 4
    ... AND MARK
    Effect
    If the search string g is found, all the characters of the search string and all the characters occurring in between (in the case of SEARCH ABBREVIATED) are converted to upper case in the field f.
    Example
    DATA F(20) VALUE 'Peter Paul Mary'.
    SEARCH F FOR '*UL' AND MARK.
    SY-SUBRC is now set to 0, since the search string was found in 'Paul'. SY-FDPOS has the value 6, since the character string found starts at the offset 6. Also, the search string is marked, so that the new contents of f are as follows:
    'Peter PAUL Mary'
    Variant 2
    SEARCH itab FOR g.
    Additions:
    1. ... ABBREVIATED
    2. ... STARTING AT line1
    3. ... ENDING   AT line2
    4. ... AND MARK
    Effect
    Searches the internal table itab for the string in field g. The string can have the same format as in variant 1. The value of SY-SUBRC is set to 0, if the search string is found in the table. The system field SY-TABIX then contains the number of the table line where the string was found. Meanwhile, SY-FDPOS specifies the offset of the found string within the table line.
    Note
    The statement does not search the header line of an internal table itab.
    Addition 1
    ... ABBREVIATED
    Effect
    As with SEARCH ABBREVIATED, searches the internal table itab for a word that contains the character string specified in the field g. Here, the characters specified in g can be separated by other characters in the word. The return code value of the system field SY-SUBRC is set to 0, if the string g occurs in a word. The first letter of the search string g and of the word must match.
    Addition 2
    ... STARTING AT line1
    Effect
    Searches the internal table itab starting from line line1 to the end. line1 can be a field that contains the corresponding values.
    Addition 3
    ... ENDING AT line2
    Effect
    Searches the internal table itab up to the line line2.
    Addition 4
    ... AND MARK
    Effect
    If the search string g is found, all the characters of that search string and all the characters occurring in between (in the case of SEARCH ABBREVIATED) are converted to upper case in the internal table itab.
    Example
    Let T be an internal table which is empty:
    TYPES: BEGIN OF T_TYPE,
            LINE(80),
          END OF T_TYPE.
    DATA: T TYPE STANDARD TABLE OF T_TYPE WITH
                 NON-UNIQUE DEFAULT KEY,
          WA_T TYPE T_TYPE.
    MOVE 'Alaska Texas       ' TO WA_T.
    APPEND WA_T TO T.
    MOVE 'California Arizona ' TO WA_T.
    APPEND WA_T TO T.
    SEARCH T FOR '*ONA' AND MARK.
    SY-SUBRC is now set to 0 because the search string was found in 'Arizona'. SY-TABIX contains the value 2 because 'Arizona' appears in the second line of the table T. SY-FDPOS is set to 11 because the found character string begins at the offset 11. Also, the search string was marked in the second line in such a way that the contents of that line now look as follows:
    'California ARIZONA'
    Note
    Performance:
    Searching generically for a string in an internal table is much more runtime-intensive (approx. 5000 msn (standardized microseconds)) than searching for 'str' (approx. 20 msn). This was measured using a table with 200 entries and 10 fields.
    If you perform a search in a field which is 50 bytes long for 'str' or 'str', the runtime consumption is approx. 300 msn, whereas searching for 'str' takes about 15 msn.
    Regards,
    Raghav

  • Illegal character \92 error.Tried everything

    Hi, Im trying to make a calculator program and in the line where I divide a by b, im getting an Illegal Character:\92 error for some reason. To type \ im using \\ as an escape character, and it seems to work earlier in the program with no problem.
    Heres the code:
    import java.io.*;
    public class PA83 //Simple calc
        public void calculator()
            try
                InputStreamReader isr = new InputStreamReader(System.in);
                BufferedReader br = new BufferedReader(isr);
                System.out.println("Enter number 1");
                double a = ((double) br.readLine());
                System.out.println("Enter number 2");
                double b = ((double) br.readLine());
                System.out.println("1.Add\n2.Subtract a-b\n3.Subtract b-a\n4.Multiply\n5.Divide a\\b\n6.Divide b\\a\n7.Quit");
                int c = Integer.parseInt(br.readLine());
                switch(c)
                    case 1:System.out.println(a+"+"+b+" = "+(a+b));
                    break;
                    case 2:System.out.println(a+"-"+b+" = "+(a-b));
                    break;
                    case 3:System.out.println(b+"-"+a+" = "+(b-a));
                    break;
                    case 4:System.out.println(a+"x"+b+" = "+(a*b));
                    break;
                    case 5:System.out.println(a+"\\"+b+" = "+(a\b));
                    break;
                    case 6:System.out.println(b+"\\"+a+" = "+(b\a));
                    break;
                    case 7:break;
                    case default:System.out.println("Invalid Option. Please select a number from 1-6");
                    break;
            catch(Exception e)
                System.out.println("Error: "+e.getMessage());
    }              It highlights case 5 and gives me an illegal character:\92 error, but ive used the double slashes(\\) earlier in the println to choose an option without any problem there.
    I dont understand why this is happening! Even if i remove the "\\" i get the same error , and as BlueJ suggested, i tried typing the line again to avoid some invisible character causing problems..

    Hi,
    I think we use "/" for division and not "\" .
    thanks & regards,
    Manoj

  • ETX Character in jcr:description property

    We aren't sure how, but in a few of our pages using CQ5.4, the jcr:description field (when viewed in CRXDE Lite) contains the ASCII ETX character. This character is not visible in OSX Lion, but it can be seen in Windows and maybe older versions of OSX.
    An example of our jcr:description:
    "The Nike USATF Collection is a modern mix  of vintage classics infused with military aesthetic."
    When we copy paste the description and put it into CRXDE or a different textbox like the CRXDE Lite path box or in Chrome address bar:
    "The Nike USATF Collection is a modern mix ^C of vintage classics infused with military aesthetic."
    Note the ^C above is where the ETX character is being placed.
    Has anyone ever experienced this issue before? It is breaking our endecca indexing at the moment on certain pages with this issue. Thanks.
    Edit: The code that is breaking is actually the JCR API which our search team is using to gather the data.

    Hi Giang/Lior,
       I have see some issue like pasting invisible character like BOM causing issue. I generally recommend authors as best practice for interoperability instead of copying directly from other sites/systems into cq, Use any text editor (Text Wrangler) with encoding as "UTF-8 no BOM" which filter BOM characters etc and from there paste into CQ.
       In your case you have given example of two characters & looking at it I am guessing you might be passing Device Control Characters[1].
    The posible solution I can think of is
    Option1:-       Inform authors to filter those characters using any editors that and then update the content copying from filtered text editor. I am sure you do not like this.
    Option2:-       Implement a Sling Post Processor or POST operation which validates the supplied input when posted.   In that logic check for invalid character, if exists modify the property to replace invalid character with an empty string. Pseudo code of ETX at [2].    This could take care of future content updates.  For existing one write a small scritp to interate through repository and clean those.   With post processor you do not have to worry about the component that is posting.  Hope this make sense.  
    [1]   http://www.w3ctutorial.com/tags/ref_ascii
    [2]
       // The pattern matches control characters
            Pattern p = Pattern.compile("\\p{Cntrl}");
            Matcher m = p.matcher("");
            m.reset(args[0]);
                //Replaces control characters with an empty
                //string.
            if(m.find()){
                String result = m.replaceAll("");
    Thanks,
    Sham

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

  • DATA TRANSFER - How to get a SINGLE SPACE in downloaded txt file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Its there, I am talking abut this -
    OPEN DATASET - linefeed
    Syntax
    ... WITH { NATIVE
             | SMART
             | UNIX
             | WINDOWS } LINEFEED ... .
    Alternatives:
    1. ... WITH NATIVE LINEFEED
    2. ... WITH SMART LINEFEED
    3. ... WITH UNIX LINEFEED
    4. ... WITH WINDOWS LINEFEED
    Effect
    : These additions determine which line end marker is used for text files or legacy text files. If these additions are used, the profile parameter abap/NTfmode is ignored. Simultaneous specification of the values "UNIX" or "NT" in the addition TYPE is not permitted.
    If these additions are not used, the line end marker is determined as follows, depending on the operating system of the current application server:
    The line end marker for Unix is "LF". Under Unix, OS390 and OS400, only "LF" is used for reading and writing.
    The line end marker for MS Windows is "CRLF". Under MS Windows, however, the values of the profile parameter abap/NTfmode can also be used to set whether new files are handled according to Unix conventions or Windows conventions. If the profile parameter has the value "b", the Unix line end marker "LF" is used. If the profile parameter has the value "t" or is initial, the Windows line end marker "CRLF" is used. The setting using the profile parameter can be overridden with the addition TYPE and the value "UNIX" or "NT". If an existing file is opened without the addition TYPE, this is searched for the first line end marker ("LF" or "CRLF"), and this is used for the whole file. If no line end marker is found, the profile parameter is used. This applies particularly if an existing file is completely overwritten with FOR OUTPUT.
    If an addition WITH NATIVE|SMART|UNIX|WINDOWS LINEFEED is used, this setting can be changed for the open file using the statement SET DATASET. If neither of the additions is used, the line end marker also cannot be changed using SET DATASET.
    Notes
    : Without the use of an addition WITH LINEFEED, the line end marker is dependent on diverse implicit factors such as the operating system of the application server, a profile parameter, and line end markings that are already used. For this reason, the explicit use of WITH LINEFEED is recommended, which renders the use of the addition TYPE for setting the line end marker obsolete.
    The line end marker that is currently used can be determined for every open file using GET DATASET.
    Alternative 1
    ... WITH NATIVE LINEFEED
    Effect
    : This addition defines the line end marker independently of the access type according to the operating system of the application server, i.e. "LF" for Unix OS390 or OS400, and "CRLF" for MS Windows.
    The line end marker is interpreted according to the current codepage. If a code page is explicitly specified using the addition CODE PAGE, the characters of the line end marker must exist be available or be written in accordance with this code page.
    Note
    : The addition WITH NATIVE LINEFEED is intended for editing files on an application server that can also be accessed by other means. The addition receives the appropriate line end marker without the program needing to know the operating system.
    Alternative 2
    ... WITH SMART LINEFEED
    Effect
    : This addition depends on the access type:
    In files that are opened for reading using FOR INPUT, both "LF" and "CRLF are interpreted as a line end marker. When opening an EBCDIC file with the addition CODEPAGE, in addition to "LF", "CRLF", and the EBCDIC character strings, the corresponding ASCII character strings are also recognized. In addition, the EBCDIC character "NL" (line separator) is also interpreted as a line end marker.
    In files opened for appending or changing with FOR APPENDING or FOR UPDATE, the program searches for a line end marker that is already used in the file. In this process, first the end of the file is identified. If no line end marker is found there, a certain number of characters at the beginning is analyzed. If a line end marker is found, this is used when writing to the file. This is also affected by the addition CODE PAGE. For example, ASCII line end markers are recognized and used in a file opened with EBCDIC, but not the other way round. If no line end marker is found or no search is possible (for example, if the file is opened with the addition FILTER), the line end marker is determined according to the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    In files opened for writing using FOR OUTPUT, the line end marker is determined according the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    Note
    : The addition WITH SMART LINEFEED is intended for the generic editing of files in heterogeneous environments. The line end marker is recognized and set for different formats. The use of this addition is the best solution for most application cases.
    Alternative 3
    ... WITH UNIX LINEFEED
    Effect
    : The line end marker is set to "LF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available or be written according to this code page.
    Note
    : The addition WITH UNIX LINEFEED is intended for editing Unix files in which the specific line end markers are to be retained, even if the operating system of the current application server is MS Windows.
    Alternative 4
    ... WITH WINDOWS LINEFEED
    Effect
    : The line end marker is set to "CRLF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available and be written according to this code page.
    Note
    : The addition WITH WINDOWS LINEFEED is intended for use with MS Windows files in which the specific line end marker is to be retained, even if the operating system of the current application server is Unix, OS390 or OS400.

  • Inbound HTTP Servicelink Adaptor

    Original post by Chad Menke.
    I'm  having some trouble getting an inbound HTTP Servicelink adaptor to  work. I wasn't involved in the install or configuration of the server.  How can I find the correct  <rc_host>:<rc_port>/IntegrationServer/ishttplistener?channelID=<channel-id>  or How can I be sure the Server and IIS is configured correctly?
    I'm just trying to do a post from a web page to finish off a task.
    The error I get is "IE cannot display the webpage".
    Peter Lee - Siemens
    10:22am, May 4
    I  don't believe there's any additional configuration required after the  installation of the application, so if it's up and running you should be  okay.  I'm guessing that you were able to send an outbound message to  initiate the post from the web page, which would indicate that  ServiceLink is running.  But this can be confirmed by clicking the  "Check ServiceLink Commnication Status" link on the home tab of the  ServiceLink module.
    Which version of  RequestCenter are you running?  I think this call for 2007 and 2008 are  exactly the same, but good to know just in case.
    I'm  also guessing you have the ServiceLink user guide based on the url you  provided but just in case you don't the following info is provided in  that documentation.  Which is provided on newScale's technical document  website, http://www.newscale.com/techdocs/.  You will need to contact  newScale support to get the username and password in order download  material though.
    <rc_host> is the newScale application server
    <rc_port> is the port on which newScale is listening
    <channel-id> is the channel ID which uniquely identifies the task to be affected
    by the inbound message. Error 503 (Application Error) is returned to the 3rd
    party system if the channelID does not apply to an ongoing task.
          The channel-id is assigned when your external task is initiated and  can be extracted in the outbound message which will need to be saved and  feed back in the inbound message.  Here's an example inbound  transformation to update comments and complete the task.
    <?xml version="1.0" encoding="UTF-8"?>
    <message channel-id="10040532:1271857836239:-32095">
    <add-comments>
    <comment>Sent done action on Tue May 04 14:23:01 EDT 2010</comment>
    </add-comments>
    <take-action action="done">
    </take-action>
    </message>
    Hope this helps,
    Menke
    11:28am, May 4
    We are on version 2008.3
    I'm  able to outbound to a DB and write out files.  I'm trying to use an  HTML Post to end the task, sending back the channel-id.  whan I attempt  to submit all I get back is, "Page can not display" and the task is  still ongoing..  So I'm assuming I don't have the URL correct..
    According to my ServiceLink communication status:
    it's successfull
    it  has a servicelink Communication URL.  I'm using that URL and Port  number as my <rc_host>:<rc_port> followed by  "/IntegrationServer/ishttplistener?channelId=<my_channel_id>".  this is all in that action property of my form tag. 
    when I submit my form all I get is "Internet Explorer cannot display the webpage"
    What am I doing wrong?
    Patti Richards - Dominion Res...
    11:53am, May 4
    Go  to ServiceLink module in Request Center. Click on link that says "Check  ServiceLink communication status" it will give you the fully qualified  Communication URL.  Make sure the server name is the fully qualified  name. It will give you the port # that Service Link is running on. Ours  is 8089.
    We are using the custom HTTPIWA2  newscale HTTP Adapter, which has the nice option of it storing the  channelid, so you don't have to send and worry about receiving it back.
    Peter Lee - Siemens
    12:09pm, May 4
    In  2008.3 there is an option in the administration module to enable and  disable webservices, and the default is set to Off.  Check this value  and see if turning it to "Yes" will fix your issue.  Also not sure if RC  would require a restart for that to take effect, but if your working  dev i'd say try that too just in case.
    Menke
    12:14pm, May 4
    I  tried to follow the link provided by the ServiceLink module but all I  get is "Cannot display the webpage" message.  Does this mean my Server  Admin set up IIS wrong?
    Patti Richards - Dominion Res...
    12:15pm, May 4
    If  you have access to app server in dev, I would pull the server.log file  off /servicelink/log directory.  You might see more information there to  get a better idea what's going on.
    Menke
    12:18pm, May 4
    WebServices is turned on..
    Menke
    4:09am, May 5
    Thank you for your help! I got it figured out.
    Patti Richards - Dominion Res...
    5:51am, May 5
    what was your resolution? Just curious....
    Menke
    6:37am, May 5
    Well..   it's really stupid..  I was being blocked by the firewall...  so I got  the firewall rule removed.. now traffic is being logged.  However my  xsl sheet is erroring or I'm posting with the wrong ENCTYPE.  I'm not  well versed in xsl style sheets.  How do you pull the channel-id from  the post to use in the xsl sheet?
    Menke
    9:21am, May 5
    I'm  throwing Transformation Exception errors everytime I post. I Even cut  and pasted the XSL from above into my inbound transformation. Not sure  what I'm doing wrong.
    Patti Richards - Dominion Res...
    7:08am, May 6
    Can  you go into service link home - under messages pick requisition from  drop down and search on the req number. Then click on the inbound  message and then click on external system message and it will show you  the xml.
    I found a good way to work is to copy  the inbound message to a file. Get XML Spy if you can- i code/debug my  XSL there first to get it working. Then, I paste it into service link  transformations. XML spy will let you work locally applying the xsl.  Much faster development time.
    If you send me  (or attach) your XML- i might be able to help you with the xslt to get  the channel id. I'm not an expert, but have been able to figure out  enough to get the job done.
    Menke
    5:40am, May 7
    ok I've tried to do a manual send message using the done.xml file, this fails resulting in a "invalid nsxml" message
    The Transform code file contains my xsl transformation  and the resulting log entries from the server.
    HELP!
    transformcodeandlogfiles.txt Done.xml
    Allen C
    11:13am, May 10
    The error message you are getting :
    "2010-05-07 07:37:16,130 ERROR [STDERR] SystemId Unknown; Line #1; Column #1; Content is not allowed in prolog."
    Seems  to imply that there may be an invisible character that is being passed  in the XML being sent out. The fact that Line 1, Column 1 would appears  to be the "<" character in your done.xml file, but I would  double-check your transform code to make sure that nothing is being  placed before the character. Even a space will probably cause the XML to  be invalidated. There are strict rules for processing the first line  (the xml declaration) of an xml file.
    You might  want to review the actual xml file output in an editor like notepad ++  (which is free) or some editor which will show ALL character in a file  (even MS Word has an option to do this), just to make sure that nothing  is appearing before the "<" character. Also, verify that the ASCII  representative value of the less than character is correct. Some  characters may look like the less than symbol but could actually be some  other UTF-8 representation. The correct ASCII or UTF-8 value for less  than sign is:
    Unicode: U+003C
    UTF-8 (in hex): 3c
    ASCII (in decimal): 60
    Patti Richards - Dominion Res...
    1:51pm, May 10
    Hey,  I took your done.xml, imported it into my XML Spy. Applied the newscale  schema against it and it validated. (nsxml.xsd). I also applied the XSL  against it, and I got no errors. I don't think the problem is with that  code.
    Just for grins, i called the URL via  passed it a channelId of a message that had failed.
    In our logs, i got a similar message: (but not the prolog stuff)
    2010-05-10 17:39:02,785 ERROR [STDERR] SystemId Unknown; Line #-1; Column #-1; Premature end of file.
    2010-05-10 17:39:02,785 ERROR [com.newscale.is.core.MessageExecutor] Exception Occured :-Premature end of file.
    org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    etc.
    If you have YES hours, I would post the question to newscale.
    Menke
    4:12am, May 11
    Thanks guys!  Your right my xsl amd xml were correct. My problem was the Post. I created a javascript function;
    function submitInfo(){
    var httpobj = new activexobject("microsort.xmlhttp);
    httpobj = ("Post","http://<Server>:<port>/integrationServer/ishttplistener?channelId=<channel-id>",false);
    var  strxml = "<?xml version='1.0' encoding='utf-8'?><message  channel-id='<channel-id'><add-comments><comment>blah  blah blah</comment></add-comments><take-action  action='done'/></message>"
    httpobj.send(strxml);
    Worked  like a charm. Sent in the xml message so there is no need for a  Tranformation on the inbound. Plus we can dynamicaly build the xml  message.
    Thank you from looking into this for me though.
    I'm  having some trouble getting an inbound HTTP Servicelink adaptor to  work. I wasn't involved in the install or configuration of the server.  How can I find the correct  <rc_host>:<rc_port>/IntegrationServer/ishttplistener?channelID=<channel-id>  or How can I be sure the Server and IIS is configured correctly? I'm  just trying to do a post from a web page to finish off a task. The error  I get is "IE cannot display the webpage".

    Hi Kiran,
    You are talking about saving a file in the target director using HTTP Receiver adapter... As per my knowledge it is not possible in a straight fwd. The target should be a web application (obviously) which should recieve the data/xml that HTTP adapter is sending and then should save it in the respective directory. XI HTTP adapter will not do that job for sure. When you use HTTP adapter in XI its job is to deliver the message to the given URL thats it. If XI need to save it as a file then its thru File NFS/FTP.
    FYI :
    HTTP - Hyper Text Transfer Protocol
    This can carry only texts but not a file
    FTP  - File Transfer Protocol
    This is used for transfering files.
    If HTTP is mandatory in your scenarion, then then a wep programming to be done at the target end (ASP/ASP.NET/JSP/Servlets/etc..)
    Thanks,
    Prakash

  • Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Itunes doesn't list all of my recent podcasts. My show is Black Tribbles and it only shows episodes through March 2013, however we do at least two shows a week and they aren't listed. The feed works because the show update to my computer. Help please.

    Your feed is at http://blacktribbles.podomatic.com/rss2.xml
    When subscribed to in iTunes the recent episodes show, but the Store hasn't updated for some time.
    There appears to be an issue with the feed. In the episode 'WRESTLING MARCH MADNESS: Final Bracket & Championship' of 31st March you will find in the 'description' tag the following line:
    4. KURT ANGLE
    At the end of this line is an invisible character which seems to be wrecking the feed - although it works OK when suscribing in iTunes it won't load in a browser (and I also found the feed very slow to load, which won't help matters with the Store)
    This sort of thing usually happens when you paste text in from a word processing application and manage to include one of the invisible control characters. I don't know how easy it will be do do it in Podomatic but you should delete that entire line and retype it to remove this charter.
    You should keep an eye on the time it takes the feed to be accessed - if there is a long enough delay (and it was quite some seconds when I tried) the Store may well timeout and fail to read it. At the moment it's showing a cached version from the last time it was able to read it.

  • Align Right

    Hi,
    I'am downloading a idox to a txt file with gui_download. And i'm cutting the blank spaces between the fields.but in one ofe the fiels i want that the field appers with all is lenght and with teh value of 0 align to the right. i have used one invisible character (ALT+255) it´s like this:
    num(8) value '       0'
    but i want to know if there is another way to align the caracter to the right and show all the variable leght in the file without use of the invisible character.
    thaks,
    Ricardo

    Hi ricardo,
    1. The right alignment and padded zeros,
       come automatically.
    2. just check out this program.
    report abc.
    data : begin of itab occurs 0,
          f(10) type c,
          n(10) type n,
          f1(10) type c,
          end of itab.
    itab-f = 'ABCD'.
    itab-n = 5567.
    itab-f1 = 'DEFG'.
    append itab.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
            BIN_FILESIZE                    =
              FILENAME                        = 'd:\def.txt'
            FILETYPE                        = 'ASC'
            APPEND                          = ' '
            WRITE_FIELD_SEPARATOR           = ' '
            HEADER                          = '00'
            TRUNC_TRAILING_BLANKS           = ' '
            WRITE_LF                        = 'X'
            COL_SELECT                      = ' '
            COL_SELECT_MASK                 = ' '
            DAT_MODE                        = ' '
            CONFIRM_OVERWRITE               = ' '
            NO_AUTH_CHECK                   = ' '
            CODEPAGE                        = ' '
            IGNORE_CERR                     = ABAP_TRUE
            REPLACEMENT                     = '#'
            WRITE_BOM                       = ' '
            TRUNC_TRAILING_BLANKS_EOL       = 'X'
            WK1_N_FORMAT                    = ' '
            WK1_N_SIZE                      = ' '
            WK1_T_FORMAT                    = ' '
            WK1_T_SIZE                      = ' '
          IMPORTING
            FILELENGTH                      =
            TABLES
              DATA_TAB                        = itab
            FIELDNAMES                      =
          EXCEPTIONS
            FILE_WRITE_ERROR                = 1
            NO_BATCH                        = 2
            GUI_REFUSE_FILETRANSFER         = 3
            INVALID_TYPE                    = 4
            NO_AUTHORITY                    = 5
            UNKNOWN_ERROR                   = 6
            HEADER_NOT_ALLOWED              = 7
            SEPARATOR_NOT_ALLOWED           = 8
            FILESIZE_NOT_ALLOWED            = 9
            HEADER_TOO_LONG                 = 10
            DP_ERROR_CREATE                 = 11
            DP_ERROR_SEND                   = 12
            DP_ERROR_WRITE                  = 13
            UNKNOWN_DP_ERROR                = 14
            ACCESS_DENIED                   = 15
            DP_OUT_OF_MEMORY                = 16
            DISK_FULL                       = 17
            DP_TIMEOUT                      = 18
            FILE_NOT_FOUND                  = 19
            DATAPROVIDER_EXCEPTION          = 20
            CONTROL_FLUSH_ERROR             = 21
            OTHERS                          = 22
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    regards,
    amit m.

Maybe you are looking for

  • Accessing Photos in Photoshop 3.0, never registered?

    Adobe Photoshop Album Starter Edition 3.0 came on our HP computer when new several years ago.  We never registered it, but some camera photos got grabbed by Adobe and are now in there.  When we try to access, a screen pops up telling us we need to re

  • Is it possible to create a list of NI-DAQmx tasks used in a VI in LV7.1?

    Hello, I was wondering if there is a built in function for Labview 7.1 that would allow me to generate a list of DAQmx tasks or global channels that are being used in the VI. Thanks, Steve

  • Quick Help Please!!!!... White balance 6 HD Cameras

    Hey guys/gals (I only have 2 hours before I ship out)... I have an important gig tonight shooting a live event. I have 6 cameras all at different distances to the stage. The stage is reasonable and evenly lit. How should I white balance all of these

  • SAP MDM 5.5 SP6 client installable

    Hi All           Can any one help me out in getting the installable for SAP MDM 5.5 SP6 client installable. I need that version.Also let me know, does it effect in any way if the build version of server is different from the cleint version. Thanks in

  • Please enter valid  value for characteristics

    Hi, One of our user got this error when opening a query Please enter valid  value for characteristics. How do I fix this since I couldn't see any errors in SU53 and authourization logs. thanks