Character Processing  A to  B

I have a situation where for a given character say 'A', the program should propose the next in the english alphabet. I have used a logic with field symbols of type X , it works in 4.6c but not in ecc6.0 with the unicode checks. Is there a way to get this  or a function module that does it..
Thank you
Edited by: Krish M on Apr 22, 2009 11:39 PM

Hi Vijay,
How to beleive you..:-)))
Its Simple,
When I was replying I have seen many replies just copying the code and pasting  the code after a changing case...
And I still remember that I have almost reportred nearly 10-12 threads as abuse explaining this...
And after some day I still seen the same user doing the same again...
I am not sure in which thread I have seen that.
But I am sorry for all the above which is really not necessary,
And Now I got a clear picture & more aware of the forums by looking into the Community Discussions from last few days.
And this thread is already closed... we can close this conversation here...
Thanks a lot again to the moderators.
Thanks & regards,
Dileep .C

Similar Messages

  • ASCII Character Processing in ABAP

    Hi,
    I have to remove the special characters (+/-, Ø) from the Text and process the same with out the Special Characters in it. The General requirement is that, I need to remove the special characters, which fall between the ASCII Values 32 to 128. Is there a Standard Function Module or Function available in SAP. Can you please suggest me a good solution for this requirement. Thanks for your Help  in Advance.
    Thanks and Regards,
    Kannan.
    Message was edited by: Kannan SA

    Hi,
    DATA: v_char.
    FIELD-SYMBOLS: .
      IF v_int1 IN r_hex.
        CONCATENATE v_result v_char INTO v_result.
        CONDENSE v_result.
      ENDIF.
    ENDDO.
    WRITE: / v_result.
    Hope this helps..
    Thanks,
    Naren

  • New line character in ABAP

    Hi,
    How do ABAP stores new-line character internally?
    Thanks and Regards,
    Sharadha

    Hi Sharadha,
    You can use :
    data :str1(100) type c value 'aabbddcd/ddhdhd',
          count type i.
    vlen = strlen(str1).
    do vlen times.
    if str1(count)= CL_ABAP_CHAR_UTILITIES=>NEWLINE
    then <NewLine Character processing>
    else.
    count = count + 1.
    endif.
    enddo.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • Offsetting String which contains Japanese Character. In the smartform

    Hi,
    I am having a problem with Japanese Character.
    +ycomment(132) type c.+
    +ycomment receives text from read text FM.+
    +clear V_CHAR52.+
    +V_CHAR52 = ycomment(52).+
    Here are the scenarios.
    * ycomment
       = Pooulated in Japanese testing testing testing by Lore testing testing
      v_char52(displayed in form)   
       = Pooulated in Japanese testing testing testing by Lor
    * ycomment
      =  u308Fu305Fu304Fu306Eu540Du524Du306Fu5C0Fu5C71u5FB3u9053u3067u3059u79C1u306Eu540Du524Du306Fu5C0Fu5C71u5FB3u9053u3067u3059u308Fu305Fu304Fu306Eu540Du524Du306Fu5C0Fu5C71u5FB3u9053u3067
      v_char52(displayed in form)
      = u308Fu305Fu304Fu306Eu540Du524Du306Fu5C0Fu5C71u5FB3u9053u3067u3059u79C1u306Eu540Du5C0Fu524Du5C71u306Fu5FB3u5C0Fu9053u5C71u3067u5FB3u9053u3067u3059u308Fu305Fu304Fu306Eu540Du524Du306F

    hi
    this will give you clear picture about Byte processing and Character processing.
    in case of byte processing
    DATA : test TYPE X LENGTH 16,       " here check length only 16
                test1 TYPE Xstring.
    test = '000102030405060708090A0B0C0D0E0F'.  " but here passing string of 32
    test1 = '00537'.
    IF test byte-ca test1.
    WRITE : test.
    ENDIF.
    In case of Char-String processing
    DATA : test TYPE c LENGTH 32,       " here check length only 32
                test1 TYPE string.
    test = '000102030405060708090A0B0C0D0E0F'.  " but here passing string of 32
    test1 = '00537'.
    IF test ca test1.
    WRITE : test.
    ENDIF.
    may be this comparison is helpfull for you.

  • Error reading data from CLOB column into VARCHAR2 variable

    Hi all,
    Am hitting an issue retrieving data > 8K (minus 1) stored in a CLOB column into a VARCHAR2 variable in PL/SQL...
    The "problem to be solved" here is storing DDL, in this case a "CREATE VIEW" statement, that is longer than 8K for later retrieval (and execution) using dynamic SQL. Given that the EXECUTE IMMEDIATE statement can take a VARCHAR2 variable (up to 32K(-1)), this should suffice for our needs, however, it seems that somewhere in the process of converting this VARCHAR2 text to a CLOB for storage, and then retrieving the CLOB and attempting to put it back into a VARCHAR2 variable, it is throwing a standard ORA-06502 exception ("PL/SQL: numeric or value error"). Consider the following code:
    set serveroutput on
    drop table test1;
    create table test1(col1 CLOB);
    declare
    cursor c1 is select col1 from test1;
    myvar VARCHAR2(32000);
    begin
    myvar := '';
    for i in 1..8192 loop
    myvar := myvar || 'a';
    end loop;
    INSERT INTO test1 (col1) VALUES (myvar);
    for arec in c1 loop
    begin
    myvar := arec.col1;
    dbms_output.put_line('Read data of length ' || length(myvar));
    exception when others then
    dbms_output.put_line('Error reading data: ' || sqlerrm);
    end;
    end loop;
    end;
    If you change the loop upper bound to 8191, all works fine. I'm guessing this might have something to do with the database character set -- we've recently converted our databases over to UTF-8, for Internationalizion support, and that seems to have changed underlying assumptions regarding character processing...?
    As far as the dynamic SQL issue goes, we can probably use the DBMS_SQL interface instead, with it's EXECUTE procedure that takes a PL/SQL array of varchar2(32K) - the only issue there is reading the data from the CLOB column, and then breaking that data into an array but that doesn't seem insurmountable. But this same basic issue (when a 9K text block, let's say, turns into a >32K block after being CLOBberred) seems to comes up in other text-processing situations also, so any ideas for how to resolve would be much appreciated.
    Thanks for any tips/hints/ideas...
    Jim

    For those curious about this, here's the word from Oracle support (courtesy of Metalinks):
    RESEARCH
    ========
    Test the issue for different DB version and different characterset.
    --Testing the following PL/SQL blocks by using direct assignment method(myvar := arec.col1;) on
    different database version and different characterset.
    SQL>create table test1(col1 CLOB);
    --Inserting four CLOB data into test1.
    declare
    myvar VARCHAR2(32767);
    begin
    myvar := RPAD('a',4000);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('a',8191);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('b',8192);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('c',32767);
    INSERT INTO test1 (col1) VALUES (myvar);
    commit;
    end;
    --Testing the direct assignment method.
    declare
    cursor c1 is select col1, length(col1) len1 from test1;
    myvar VARCHAR2(32767);
    begin
    for arec in c1 loop
    myvar := arec.col1;
    --DBMS_LOB.READ(arec.col1, arec.len1, 1, myvar);
    dbms_output.put_line('Read data of length: ' || length(myvar));
    end loop;
    end;
    The following are the summary of the test results:
    ===================================
    1. If the database characterset is WE8ISO8859P1, then the above direct assignment
    method(myvar := arec.col1;) works for database version 9i/10g/11g without any
    errors.
    2. If the database characterset is UTF8 or AL32UTF8, then the above direct assignment method(myvar := arec.col1;) will generate the "ORA-06502:
    PL/SQL: numeric or value error" when the length of the CLOB data is greater
    than 8191(=8K-1). The same error can be reproduced across all database versions
    9i/10g/11g.
    3. Using DBMS_LOB.READ(arec.col1, arec.len1, 1, myvar) method to read CLOB data into a VARCHAR2 variable works for both WE8ISO8859P1 and UTF8
    characterset and for all database versions.
    So - it seems as I'd surmised, UTF8 changes the way VARCHAR2 and CLOB data is handled. Not too surprising, I suppose - may you all be lucky enough to be able to stay away from this sort of issue. But - the DBMS_LOB.READ workaround is certainly sufficient for the text processing situations we find ourselves in currently.
    Cheers,
    Jim C.

  • Job_open language

    Hello,
    i have to submit a program in different language from logon language.
    can i set language in below code flow:
    job_open
    submit ......
    job close
    thank you.

    Hello,
    U can set the like this:
    Basic form 8
    SET LOCALE LANGUAGE lg.
    Additions:
    1. ... COUNTRY c
    2. ... MODIFIER m
    Effect
    Sets the text environment according to the specified language lg.
    The text environment includes the language stored in SY-LANGU, the locale categories LC_CTYPE and LC_COLLATE and the SAP character set.
    You determine the text environment by accessing the SAP text environment table TCP0C with the specified key
    If the country is not specified, it is taken from the table TCP0D. If TCP0D is empty, the setting COUNTRY = SPACE is used to access TCP0C. If the modifier is not specified, the setting MODIFIER = SPACE is used to access TCP0C.
    The text environment affects all operations specific to the character set (such operations include ABAP character processing statements, screen output to the front-end, data transmission between the application server and the front-end, data transmission by RFC, and printing).
    The locale category LC_COLLATE affects the behavior of the SORT ... AS TEXT and CONVERT TEXT statements.
    When an internal session is opened (in other words, when a roll area is opened), the text environment is automatically set to the active user's language as specified in the user master record. Therefore, you usually do not need an explicit SET LOCALE statement.
    You only have to use SET LOCALE if you want to program a special text environment regardless of the active user's language.
    You should take particular care when switching back and forth between different text environments or if you use a text environment which is not compatible with the frontend character set.
    Addition 1
    ... COUNTRY c
    Effect
    If a language spoken in different countries (or, to be more politically precise, in different territories) has different text environments for different countries, you can use the addition COUNTRY c to specify the country for a language.
    Addition 2
    ... MODIFIER m
    Effect
    If a language in a country has different text environments (for example, in Germany, letters with umlauts are treated in different ways - in a dictionary, ä is treated like a, but in a telephone directory, it is treated like 'ae'), you can use the addition MODIFIER m to specify a further modifier for the language and country.
    The values 'BINARY', 'C', 'POSIX' and 'RAW' are not allowed as modifiers because they are reserved for a later development intended to support 'binary' text environments.
    Notes
    The special form SET LOCALE LANGUAGE SPACE (or lg contains SPACE) resets the text environment to the language of the active user as specified in the user master record. In this case, specifying COUNTRY c and/or MODIFIER m has no effect.
    The effect of SET LOCALE is not restricted to the current program, but covers all programs in the current roll area.
    If one of the specified key fields lg, c or m is not a character field, or if one of the key values is longer than the corresponding fields LANGU, COUNTRY or MODIFIER in the SAP text environment table TCP0C, the processing terminates with a runtime error.
    Although entries in the SAP text environment table TCP0C are platform-specific, the platform is treated as an implicit key component. The system then retrieves the value for the key component PLATFORM = p at runtime when accessing the table TCP0C and you do not have to bother about this when programming.
    If the SAP text environment table TCP0C contains no entry for the specified key
    (on the current platform), or the text environment cannot be set according to the values in TCP0C, the processing terminates with a runtime error.
    If the boolean SAP profile parameter abap/set_text_env_at_new_mode is set to 0 (the default is 1), the text environment is not set according to the language of the active user when a new internal session is opened, but according to the language of the application server (which is determined by the SAP profile parameter zcsa/system_language). Resetting the text environment with SET LOCALE LANGUAGE SPACE restores the text environment for the language of the application server.
    If the boolean SAP profile parameter install/collate/active is set to 0 (the default is 1), SET LOCALE has no effect at all; furthermore, the text environment remains unchanged, even when a new internal mode is opened, and the locale category LC_COLLATE is not set at all by the SAP kernel. Accordingly, the SORT ... AS TEXT and CONVERT TEXT statements then also have no effect.
    Regards,
    Vasanth

  • How to get initial entries of sales orders to go into CDHDR/CDPOS

    When a sales order is first created and saved, we do not get an entry in CDHDR and/or CDPOS for it.
    People have suggested looking at ERDAT and ERZET, but I have found that those entries may be false - especially if a person doesn't press save for a while.
    A followup question to this is that when I use SE16N to look at field CHNGIND in table CDPOS, one of the possible values is J.  It appears to work just like E does for deletes, but I cannot find a way to turn it on.  I have been successful in using SCDO to turn on values for deletes which I needed ( thus turning the D's into E's ).  A "J" appears to be an insert with the value of the field.
    Is there some transaction in the system which will force the system to log the initial creation and thus assign it a change number ?  I have a workaround of using a user exit to create an entry in a table, but I hate to have to do that if I don't have to.  And what do I use to get the system to log the individual values on inserts ?  It would help immensely if we had the values on the fields when they are inserted as a lot of logic is going towards determining those values.

    To anyone who reads this thread.
    We ended up adding code to userexit_save_document in MV45AFZZ to create records in a custom table with a field that indicates that the entry needs to be processed.  It got us around the date issue in the fact that the query looks for unprocessed entries and thus avoids the whole buffering thing.  The only fields we had in the table were VBELN, POSNR, and a single character processing flag ( initial if not processed, 'X' if processed ).
    There definitely is some kind of buffering going on so that our date/time went by and got missed.
    I never did find any answers to my last two questions - if I ever do I will post it here.  If anyone else finds out the answers, please post and I will award credit.

  • Can not converted to be a charter-type field

    Hi everyone,
      As i m new in abap . i wrote this code and received charter type error.
    *& Report  ZT11
    REPORT  ZT11.
    DATA: aa type lfa1.
         tables lfa1.
         select * from lfa1 into aa where lifnr > 'Z' .
             write / aa.
            endselect.
        if sy-subrc <> 0.
             write / 'No records found'.
            endif.
    error is
    'AA' can not converted to a character-type field.
    plz help to reslove the error .
    thanks in advance.
    Edited by: Faisal Abbasi on May 9, 2010 11:19 AM

    Hi Dear,
    This is Unicode problem, In unicode systme some restriction in programing.
    There is three kid of data type
    Character Processing ( C, N, D, T and STRING ).
    Byte Processing Mode ( X and XString ).
    Numeric Data Type ( I, P , F ).
    whenever in structure all kind of data types are used then you can not use WRITE and then whole structure name.
    in LFA1 in ECC6.0 if any custom fields are not added then up to length 1232 is determined as Character.
    so if you will give aa(1232) it will work similarlly other kid of remainig data tpe you move in another structure of required format and then check.
    REPORT ZT11.
    DATA: aa type lfa1.
    tables lfa1.
    select * from lfa1 into aa where lifnr > 'Z' .
    write / aa(1232).
    endselect.
    if sy-subrc 0.
    write / 'No records found'.
    endif.
    For better Understanding Check
    The following structure has both character-type and non-character-type components:
    BEGIN OF STRUC,
      a TYPE c LENGTH 3,    "Length 3 characters
      b TYPE n LENGTH 4,    "Length 4 characters
      c TYPE d,             "Length 8 characters
      d TYPE t,             "Length 6 characters
      e TYPE f,             "Length 8 bytes
      f TYPE c LENGTH 28,   "Length28 characters
      g TYPE x LENGTH 2,    "Length 2 bytes
    END OF STRUC.
    The Unicode fragment view splits the structure into four areas F1 - F5.
    [ aaa | bbbb | cccccccc | ddd | AAA | eeee | fffffffffffff | gg ]
    [            F1               |  F2 |  F3  |       F4      | F5 ]
    Offset/length access is only possible for the character-type initial fragment F1. Specifications such as struc(21) or struc7(14) are accepted and are handled as a single field of type c. An access such as struc57(2), for example, is not permitted in Unicode systems.

  • PDF Color issues with Pages 09

    I made a new Page Layout document with Pages 09. I created my own page templates for this document. The left page of the document uses a wide blue filled band and the right page uses a narrower blue filled band.
    Both use the same exact color. (I'm even using the DigitalColor Meter app to show me this.)
    I exported the finished file to pdf using the best setting. When I open it up in Adobe acrobat reader, I now have two different colors. One is purplish, the other is navy blue. This is visible on the PC screen. If I open it up in Preview on my mac, they are all the same color.
    Any ideas?

    Well, yes. I was more after links to information about why they wait.
    There is a legal side and a technical side. The legal side revolves around antitrust issues, apparently. The technical side revolves around the same issues as in the past.
    Through cross-licencing, Adobe Systems controls the composition model and the configuration of composition products at any point in time.
    At the Seybold Conference on Computer Publishing in September 1989, John Warnock stated that the proposed protective separation of character processing from glyph processing was "garbage" - according to the New York Times.
    In December 1990, the PostScript Language Reference Manual, Second Edition, Appendix E, published how drawing ligatures, small capitals etc would be done by overruling the character set.
    This is the road to destructive drawing: it sacrifices content-based spelling, searching and sorting for the sake of appearance-based composition.
    The Apple developer discussion stated in 1992 that a composition model that can draw a glyph design if and only if the glyph codes is directly depicted onto a character code is disastrous.
    By the time QuickDraw GX was available in q3 1994 there were at least 15,000 Adobe Type 1 products and at least 100 million licences (there were 22 million licences in September 1989).
    By promoting the Adobe Type 1 library, and in particular the Adobe Type 1 Expert library, Adobe destroyed the text services of Apple Mac OS, simply.
    Microsoft TrueImage was discontinued partly because PostScript Level 2 does not support the screen in its colour management model and partly because Adobe Type 1 and the PostScript use of a completely configurable name space instead of a coded character set allows Adobe to overrule the OS text services at any time.
    When Adobe in April 2002 made the the Adobe OpenType library available on the Adobe Font Folio, in place of the Adobe Type 1 library, Adobe applied the same tactic. As John Hudson points out, all alternate glyphs were available for drawing with Private Use Area characters which is analoguous to what Adobe Type 1 Expert did before.
    Because Adobe bases PDF on PS and because PS ignores intact SFNT indices as well as intact ICC indices, Adobe based PDF on the completely configurable name space model of PS. For this to work in synthesising source character specifications it is necessary that the name space be configured with ISO-IEC 10036/AFII glyph identifiers or with ISO-IEC 10036 character identifiers.
    It is also necessary that the glyph stream be passed into PS in reading order and not in geometric order, that there be a linear relationship of characters to glyphs in the processing (problems with bidirectional ordering and with functions like insertion in AAT e.g. for Khmer), and of course that font-indenpendent identifiers in fact by implemented by all concerned - which they are not.
    XPS revolves around keeping the source character string intact, PDF does not revolve around keeping the source character string intact (not for lowend office typesetting of the Latin script, at any rate). At the Linotype Typotechnica in April 2007, Adobe announced that configuring CMAPs with PUA would not be discontinued - it would be continued.
    In other words, technically Adobe is using the completely configurable name space of PostScript as a weapon against Microsoft just as it used it as a weapon against Apple. But the problem is that Adobe publishes no documentation with its type products informing the customer in the EU of how the type product is in fact configured, and that may or may not be illegal.
    Personally, I don't have a problem with PUA drawing provided it is documented in order that the everyday enduser understands that the ISO-IEC 10646 standard character set is being overruled and that a synthesis has to take place from a private name space model, but if this is not documented then the everyday enduser is made hostage.
    This is where Adobe's tactical use of type as a strategic pawn in its struggle for the digital document market becomes politically problematic. How are we ever going to rid the Mac of Adobe Type 1 'Expert'? Adobe and Linotype spent a fortune marketing the idea that correct type was done by changing the correct text. Utterly braindead from day one.
    /hh

  • Paint type on black plane only

    This question comes up fairly frequently :
    1. Start a blank document, in the blank document insert a box for type (Insert > Text Box), set the type size for the default copy in the box to 18pt or 24pt, and open the Apple Colour Picker (View > Show Colours).
    2. Type deviceK, select Return to start a new line, and type ICCBased.
    3. Select the word deviceK in the first taking care not to select the word ICCBased in the second line, set the Apple Colour Picker to CMYK Sliders, click the Colour Model / Colour Space icon to the left of the CMYK Sliders, scroll down to select Device CMYK, and set the CMYK Sliders to C0 M0 Y0 K100.
    4. Don't select the word ICCBased, taking care to leave the default colour model and colour space set by the software and the system.
    5. Export as PDF/X-3 with OutputIntent.
    6. Open in an auditing application such as Acrobat Professional and select separations preview. Disable the cyan plane/plate, the magenta plane/plate, the yellow plane/plate and note that the word deviceK only paints on the black plane/plate. Select a PDF/X-3 audit and note that there is no CIE reference for the word deviceK (neither a PostScript calibrated colour space nor an ICCBased profile) whereas the word ICCBased references Apple's Generic RGB Profile with the alternate colour space being Apple's Generic Gray Profile. In separations preview the word ICCBased is painted on four planes/plates.
    As far as I am aware, this configuration is technically correct. However, if drop shadows are applied to the words or if the words are sandwiched in a transparency/opacity blend space it becomes much more complex. What is or is not correct in that context is uncertain, or perhaps better that I'm uncertain of what would and what would not be correct.
    /hh

    Do you see major problems if all the OS's and apps including eventually Apple standardize on OpenType for internationalization rendering and AAT/GX fades away?
    In answering a question, the first step is to determine what criteria are applicable to considering that an answer has been given. I'm not sure what you would consider an answer, since we have discussed this for a year and a half, and you began by rejecting the simplest level which was improved invertibility for character-glyph-character transforms and improved input methods for interactive identification of character information.
    Briefly, the purpose of TrueType Specification 1.0 of 1990 is to establish a drawing model for composition wherein which by definition character processing is separable from glyph processing, and the purpose of separating character processing from glyph processing is to avoid that desired glyph designs be drawn by depiction onto incorrect public characters or alternatively by depiction onto private characters.
    TrueType Specification 1.0 supports this model by being indefinitely extensible, and by being indefinitely localisable for extensions. Apple supports this which means that were one to want a feature selector / rendering intent uniquely defined in user space then that is possible and localising that is possible in ISO 10646/Unicode strings (see Specification 1.0 for details). In this sense, the application is the client of the layout in the intelligent font which is what David Lemon and Thomas Phinney of Adobe have posted time and time again that Adobe does not want.
    David Lemon posted in 1997 the business model for OpenType which is application-dependent drawing. David Opstad posted the objection, and published the objection in a paper on Apple's drawing implementation versus Microsoft's drawing implementation. By definition, if the application does not have to support the feature selectors / rendering intents in the font file, which will preserve the source character string and the glyph run in the backing store, the workaround is for type makers to make type that draws desired glyph designs by depiction onto incorrect public characters or onto incorrect private characters.
    It is not possible in system software to stop user access to the Private Use Area because the Private Use Area is legitimate for innovative ideographs in Japanese (itaiji) and Chinese. The marketing manager for Fontlab has advised in public posts that it is admissable to make CMAP Character Maps with Private Use Area drawing as a way to work around the application-dependent drawing model of OpenType. John Hudson has posted since 2000 when he prepared a discussion of the Windows glyph model for Microsoft that drawing desired glyph designs by incorrect private characters in Adobe OpenType is the replacement for drawing desired glyph designs by incorrect public characters in Adobe Type 1.
    1989-1997, Apple failed to provide a platform that would produce parity between the small developer and the big developer by providing the small developer with free internationalisation models and free graphics libraries including a free digital document model. 1997-2007, Adobe and Microsoft provided a platform for the static software suites wherein which the software suite owns the internationalisation models, the graphics libraries and the digital document model which, as John Jenkins notes in a paper, is the model for OpenType.
    Adobe (and Linotype/Heidelberg) has in the process of undermining first Apple's implementation and then Microsoft's implementation made and marketed type that destroys the source character string on a scale that is almost incomprehensible. Because Adobe depends on recovering source character strings from glyph names and does not preserve the source character string and the glyph run, public perception of the performance of Adobe PDF is not necessarily affected by the fact that Adobe PDF is in fact a poor model even for professional typography in the simple and linear Latin script.
    The model is the same: Separate character processing from glyph processing for the sake of portability and repurposing. The implementation is different: Make the font file a client of the application or make the application a client of the font file. Which implementation one wants depends on which software ecosystem one wants: Decentralised internationalisation including localisation in the hands of independent developers who are in a position to provide what their markets desire or centralised internationalisation including localisation in the hands of Anglo-American corporations.
    You will not get a high ratio of academic anthropologists to agree to the centralised model.
    /hh

  • HP2740p expansion battery problem - slow, 100% cpu

    Posting this problem because it took us months to figure out root cause.  When expansion battery for 2740p gets old and tablet tries to charge it the computer slows to a crawl - seriously slow and unworkable.  It's tough to troubleshoot the machine in this state.  CPU shows at or near 100% and task manager doesn't show processes consuming all the resources.  Mouse movement and clicks are slow - everything slow. 
    Occurs most often to people who have lot of meetings when they dock.  Seems to only happen when tablet is ON when it gets plugged in.  If tablet is OFF, then docked, and then turned ON problem doesn't occur.  We have dozens of this model and it's totally reproducable with different tablets and batteries.  Downloaded HP Battery Check app and it shows all batteries that cause this problem with status Replace.
    We run Win7 enterprise and downloaded all latest drivers on HP support.  Obvious fix is remove or replace expansion battery.
    Cheers,
    John

    Nevermind!
    Sorry for the trouble. The problem was that last time I compiled the code, it reverted back to and older version of a class I had compiled days ago. Why it did this is totally beyond me... but it did, and it just so happens that the old version of that class combined with the new version of my program were the perfect recipe for an infinite loop.
    Seriously, if you are in inveterate debugger, you might get a good laugh out of this. I've spent the last week and a half trying to find a way to set the Windows console into cbreak mode (single character processing rather than line-at-a-time processing), and I finally managed to do it by writing some c code and putting it into a DLL with the JNI. So now my program (which runs from the console) can process each character as it is entered rather than waiting for a line return. The older version of the class that got reverted was one that used System.in rather than the input stream generated by the socket. I had set it to System.in for testing purposes, and apparently that testing version is the one it got reverted back to. So combine the two, and you have a console that is feeding System.in each character as it is pressed and a socket wrapper that is listening infinitely. It was a mess... but an uncannily serindipitous mess...
    Ahh... debugging... good time...

  • How to execute an external file in java ?

    How to execute an external file , where the file name of the external file is in unicode character. (i,e, may be in Chinese character).

    Process p = Runtime.getRuntime().exec("/path/to/executable");
    This is write. But my question is while the file name is in Chinese font.
    It means while a file name is in Chinese font or any unicode character that are supported by window but not in the command prompt. In this case the file name is changed to ??????.doc like.
    So, while trying to execute this it shows File not found message.

  • XSLT error LPX-314

    I have an XSL stylesheet which is supposed to take the input as Japanese character and produce the transformed output.
    I am using Xml parser for c++, to be precise 2.0.7 . When I embed a query in <xsl:template match="i`b|tg1o@l\"> , the XSLT processor is throwing an error LPX-314. Please reply.
    null

    You may also wish to try it with version 9.0.1 (or later) which fixed all known multibyte and Unicode character processing issues.

  • Help me in Converting textarea msg to single line string

    Please help me in converting the textarea message with line breaks in to single line string. because i shud pass that to the Javascript which doesnot accept line breaks.
    <%
    StringBuffer text = new StringBuffer(request.getParameter("textarea1"));
    int loc = (new String(text)).indexOf('\n');
    while(loc > 0){
    text.replace(loc, loc+1, "<BR>");
    loc = (new String(text)).indexOf('\n');
    out.println(text);
    %>

    Hi,
    i did not understood your problem. javascript supports \n character processing. so you should not get any error. Do one thing write a javascript function, that replaces all \n with "". this will solve your problem
    funciton replaceNewLine(StringValue) {
    StringValue.replace('\n','') (check replace() syntax once)
    have fun!!
    raj

  • 4.6 c n4.7 ee

    what are the differences between 4.6 c and 4.7 ee?i need atleast 7 differences...pls ....points wil be rewarded..

    Hi,
    One major difference is that 46 runs on what they call the basis layer, in 4.7 the basis layer was majorly modified to include new web technologies, hence the renaming of Basis to Web Application Server. 4.7 runs on the Web Application Server 6.20. With this, was the introduction to BSPs or Business Server Pages.
    Also in 4.6, we use ws_upload where as in 4.7, it is gui_upload to upload a flat file. 4.7 is the advanced version with very little changes to 4.6
    There have been plenty of changes from 4.6 to 4.7 in terms of ABAP and ABAP Objects, probably the one that will affect your code the most are the unicode changes. I would recommend you go to transaction se38 (on your 4.7 system, I hope you have one, I couldn't find a nice source online) view the online help and then read the Release notes section.
    Here is a quick short list though:
    - Statements for character processing have additions IN BYTE MODE and IN CHARACTER MODE, this affects statements like DESCRIBE LENGTH, OPEN DATASET
    - Header lines should not longer be used for tables (in OO context this is not even possible)
    - TABLES statement in reports should no longer be used
    - PNPCE for concurrent employement (new logical DB for HR)
    - For OO abap there a plenty of short forms for method calls that were not previously available.
    - One very cool feature is that data reference's can have actual data types and van be referenced directly without field symbols.
    - Additions to many abap statements, for example there is now a ALL OCCURENCES addition to the replace statement.
    - Class based exceptions are now available (although it is debatable how usefull these are seeing as there is no FINALLY part to the try catch statement, very disappointing but maybe that is just me).
    - Friends have been introduced for OO abap.
    - Dynamic program has plenty of improvements, for example there is now a TYPE TABLE OF variant for create data which lets you dynamically create an internal table with a structure type, your can also now call a class constructor with different importing parameters dynamically.
    These are just a few worth mentioning but there are plenty.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • Unable to restore time machine backup onto a new hard drive

    I recently bought a new hard drive for my mid-2010 white Macbook. I have kept this computer regularly backed up with time machine, but just to be sure I made sure I hooked up my external hard drive prior to changing the hard drive and made sure it wa

  • How do I delete part of a message conversation?

    I have to reboot my iPhone 5 to get the trash can to appear when I am trying to delete a part of a message conversation. Is there another way to delete part of a conversation? Using IOS 8.2. Thanks!

  • New Apple laptops, power cords and batteries

    Eventually, my parents' white MacBook is going to wear out and need to be replaced. I am keeping an eye on the discount deals for refurbished laptops on the Apple Store. I may also have to do some business traveling in the future, necessitating that

  • ORA-02041

    I am getting this error when using a UNION that also goes through a DATABASE LINK. I am developing an application that will create a Recordset based on the results of this query. Here is the code (VB): Private Sub PopulateCompanyComboBox() 'Create Re

  • Configurat​ion Utility - Is this supported on new Thinkpads

    Can anyone confirm whether the Lenovo Configuration Utility is still supported on new Thinkpads. Looking at the Lenovo website it doesn't look as though anything has been updated since 2006 when the X60/T60 were current models. http://www-307.ibm.com