Code formatter problem

The code formatter handles the character sequence
opening-bracket i closing-bracket
as "start italic".
But this is a very common idiom in Java code samples for  accessing an array by index. Thus all these Java code samples get damaged by this formatting.
Can we fix the code formatting?
Armin

That's what I do but not every poster is aware of that before posting code. The bad thing is that not only the formatting, but that the code gets damaged.
A fix could be to disable the italic tag inside a code tag.
Armin
Message was edited by: Armin Reichert

Similar Messages

  • JSP code formatter

    Hi All, I'm looking for a JSP / HTML code formatter tool. It would be great if its a plugin to WSAD. Thnx

    Try this all-JSP version. It works for me:
    <%@ page import="java.text.*, java.util.*" %>
    <%@ page contentType="text/html; charset=UTF-8" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
    </HEAD>
    <BODY>
    <%
         Locale loc = new Locale("en", "IE", "EURO");
            NumberFormat formatter = NumberFormat.getCurrencyInstance(loc);
            String str = formatter.format(200);
    %>
    <%=str%>
    </BODY></HTML>Maybe that will narrow your problem down a bit. It sure looks like a problem with JSP not knowing your page is UTF-8, but why that might be true I don't know.

  • My dream of a perfect code formatter

    I want to share with you my dream of what I consider a perfect code formatter:
    Have you ever used an if statement with lots of conditions?
    if (((condition1 && condition2) || condition3 || condition4) && condition5) {
    Have you ever created a method with parameters composed by large strings?
    method(AClassWithLargeNameLikeThis aParameterWithSuggestiveNameButAlsoLarge, AnotherClassWithLargeNameLikeThis anotherParameterWithSuggestiveNameButAlsoLarge, OneMoreClassWithLargeNameLikeThis oneMoreParameterWithSuggestiveNameButAlsoLarge) {
    And so on...
    I think it´s time to develop a better code formatter, with improved "GUI features". I mean, what if a "compressed if statement", and then when you click on this compressed if statement a "GUI window" appears, showing to you all the conditions defined in this if stamentent, in an very well organized way?

    prometheuzz wrote:
    jim.jones wrote:
    duffymo wrote:
    i think it's time to write smart code.It doesn´t have anything to do with "smart code". There are times in which you should write an if statement with many conditions. Which can, without a doubt, be written in a different, easier to understand, alternative.No. There are times in which you can´t do that. And I am affirming that. Maybe in an "immutable" system, or in a "semi-immutable" system, in which just few changes are done, you can rewrite the code in order to be easier to understand. But, do you know what I do everyday? I work as a programmer at a financial company. Business rules change all the time, and you have to adapt the system according to those changes
    There are times in which you do not have other better alternatives. If you never wrote such an if statement, I´m sorry for what I´m gonna say, then I believe you´ve never developed a complex system in your life yet.Ah, I see: so someone who doesn't write (or has never written) an if statement with a lot of expressions in it, couldn't have written a "complex system"?Let me rephrase: I was absolutely wrong, if my phrase is set apart. But there is a context, the context of this thread, in which my phrase should be placed to make sense. I just said that because I thought the one who said "it´s time to write smart code" was thinking that an if statement with lots of conditions is absolutely unnecessary, and it never can be written. Are you happy now?
    Let me guess: your definition of a "complex system" (whatever that is) is something that exceeds 3000 lines of code? Or some application that uses at least 8 design patterns?No. From where do you concluded that?
    jim, you're already making an @ss of yourself here in your very first post!What´s wrong in my vert forst post?
    >
    Don´t get me wrong, please. I´m sorry, again.You are wrong.Let me guess. Are you having a bad day?

  • ABAP Code Formatter

    Hi,
    I want a code formatter  for ABAP code which will look afte proper alignment of every staement as well as indentation according to my requirements. Pretty printer was used but the format is not as expected.
    Can anyone help.?

    Hi,
    Im afraid there is no other tool than Pretty printer available, so unless you want to write you own tool for formatting the source code, you'll have to stick to the Pretty printer
    Personally I find the Pretty printer Indentation and Keyword uppercase quite sufficient, and I don't see much point in having some special formatting - the next developer might use the Pretty printer on your code and your formatting is gone anyway...
    regards,
    Stano

  • Hot Code Replace Problem...

    Hi Everyone,
    I am using WebLogic 10 with Eclipse. Whenever i start the server in debug mode and make two three changes in the code... WHAM.... I get the Hot Code Replace error. Is there any way so that the server can keep up with the code changes. Publishing the app again takes approx 40 mins!

    Almost always this is a limitation of the JRE/JDK you are using and really
    nothing to do with Eclipse.
    Try a different VM and see if you have better luck
    HTH
    Darins
    "bobz" <[email protected]> wrote in message
    news:75257188f239cb376da31e19b214d2d9$[email protected]..
    > hi buddies,
    >
    > i am getting "hot code replace" problem whenever i change my
    > java code and build the project and access the website without re-starting
    > the server. so, finally i endup with re-starting the server whenever i
    > change the code. this consumes a lot of time. is there any possibility to
    > work without re-starting the server even after the code change.
    >
    > regards,
    > satish.

  • Hi,  We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 da

    Hi,
    We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 days premier does not loaded a Audio.
    please help me.

    I think you are posting to the wrong forum.  I'd post this in the Premier forum: http://forums.adobe.com/community/premiere/premierepro_current
    -Carl V.

  • Code Formatter

    I want to do a code formatter for COBOL , but have no idea how to do it. I want to plug it in eclipse (but that is the easy part ) . I was wondering if anyone has ever
    done or at least has an idea how to do the formatter. Not specifically for COBOL, any language will be great to know. If anyone has any information where i can find something on the topic ? :)
    Thank you in advance !

    I have no idea what you're asking, then. You want to know if someone has tried to write a code formatter, but one which is very very simple?
    Generally speaking, a code formatter is going to have to know at least some of syntax rules for the language it's formatting. So it will probably be at least as complex as a simple parser.
    Though perhaps some formatters are implemented as a collection of regular expression heuristics, or the like. Dunno.
    You might also want to look at Emacs or Vim syntax files.

  • Code formatter breaking my literals asunder

    The code formatter should respect my literal new lines rather than breaking my literals asunder,
    ||ltrim(sys_connect_by_path("Customer Name", ':
    for one can not use a function such as chr(10) in sys_connect_by_path.

    Built in SQL Worksheet:
    create table a as select '1' a, '2' b from dual;
    create procedure p
    as
    begin
    for r in
    (select ltrim(sys_connect_by_path(a, ':
    from a
    connect by prior a = b
    loop
    null;
    end loop;
    end;
    As formatted (ctrl-F7) in SQL Dev proc editor:
    CREATE OR REPLACE
    PROCEDURE p
    AS
    BEGIN
    FOR r IN
    (SELECT ltrim(sys_connect_by_path(a, ':
    FROM a
    CONNECT BY prior a = b
    LOOP
    NULL;
    END LOOP;
    END;
    Furthermore, the formatter operation is not idempotent as exhibited by the result of a second ctrl-F7:
    CREATE OR REPLACE
    PROCEDURE p
    AS
    BEGIN
    FOR r IN
    (SELECT ltrim(sys_connect_by_path(a, ':
    FROM a
    CONNECT BY prior a = b
    LOOP
    NULL;
    END LOOP;
    END;
    About
    Oracle SQL Developer 3.1.07
    Version 3.1.07
    Build MAIN-07.42
    Copyright © 2005, 2011 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.07.42
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_11
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    Code Style Profiles xml:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SQLprofiles class="oracle.dbtools.proformatter.treePreferences.style.profile.CodingStyleSQLProfiles" xmlns="http://xmlns.oracle.com/jdeveloper/110000/default-coding-sql-style-profiles">
    <profileMap class="java.util.HashMap">
    <Item>
    <Key>1:Old Preferences</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>false</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>false</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>false</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>999</lineNum>
    <lineWidth>999</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>Old Preferences</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>80</smallSql>
    <sourceSql>1</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>1:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>1</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>2:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>2</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>3:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>3</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>4:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>4</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>5:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>5</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    <Item>
    <Key>6:SQL</Key>
    <Value class="oracle.dbtools.proformatter.treePreferences.CodingStyleSQLProfile">
    <alignAs>true</alignAs>
    <alignComma>false</alignComma>
    <alignComment>true</alignComment>
    <alignConcat>true</alignConcat>
    <alignDecl>true</alignDecl>
    <alignEqual>true</alignEqual>
    <alignKeyword>false</alignKeyword>
    <alignOperator>true</alignOperator>
    <bracketSpacing>0</bracketSpacing>
    <bracketSpacingAndOrWhen>true</bracketSpacingAndOrWhen>
    <breakAfterAnd>false</breakAfterAnd>
    <breakAfterComma>true</breakAfterComma>
    <breakAfterConcat>false</breakAfterConcat>
    <breakBeforeAnd>true</breakBeforeAnd>
    <breakBeforeComma>false</breakBeforeComma>
    <breakBeforeComment>false</breakBeforeComment>
    <breakBeforeConcat>true</breakBeforeConcat>
    <breakCase>true</breakCase>
    <breakCaseAndOr>true</breakCaseAndOr>
    <breakCaseElse>true</breakCaseElse>
    <breakCaseThen>true</breakCaseThen>
    <breakCaseWhen>true</breakCaseWhen>
    <breakJoin>true</breakJoin>
    <breakKeyword>true</breakKeyword>
    <breakSchema>0</breakSchema>
    <breakSelectBracket>true</breakSelectBracket>
    <colored>false</colored>
    <commaSpacing>0</commaSpacing>
    <dblIndent>false</dblIndent>
    <forceDifference>true</forceDifference>
    <indentAnd>false</indentAnd>
    <lineNum>10</lineNum>
    <lineWidth>80</lineWidth>
    <memberOrderHashStructure/>
    <moreNewlines>false</moreNewlines>
    <name>SQL</name>
    <numCommas>1</numCommas>
    <numSpaces>2</numSpaces>
    <operatorSpacing>0</operatorSpacing>
    <quoteChar>0</quoteChar>
    <replaceComment>false</replaceComment>
    <smallSql>20</smallSql>
    <sourceSql>6</sourceSql>
    <sqlSourceEnclosed>0</sqlSourceEnclosed>
    <sqlsourceCopied>false</sqlsourceCopied>
    <suppressComment>false</suppressComment>
    <targetSql>0</targetSql>
    <uppercase>0</uppercase>
    <useTab>false</useTab>
    </Value>
    </Item>
    </profileMap>
    </SQLprofiles>

  • Code inspector problem

    Hi all,
    I'm checking the syntax before to release my order requests and I have several errors in code inspector.
    Ok, I've fixed these errors. The problem is if I execute the code inspector again the errors are displayed again... but the code is ok, there are no errors.
    It happened to me a lot of times, with several object types, may be the next day if I pass the code inspector the errors dissapears or may be not.
    It's very strange. I've tried with other users, doing log off and login again... but nothing...
    Do you know if exits some transaction code for "refresh" the code inspector? the buffer or something?
    Thanks in advance.

    Hi,
    I've worked with code inspector quite a lot and I've never spoted this kind of problem. I would suspect that this is not code inspector problem but rather something is wrong with your repository objects.
    If I were you I would try to debug code inspector. There is somewhere inside SCAN ABAP-SOURCE command used. Check what input is being used.
    BR
    Marcin Cholewczuk

  • Code formatter does not work like in Luna

    I am using this code formatter: https://github.com/libgdx/libgdx/blob/master/eclipse-formatter.xml
    It seems to be broken in Mars. It's not that you can't import it, but it behaves differently from Luna. The major aspect that I have noticed is that while in Luna the following code looks like this:
    removeButton.addListener(new ClickListener() {
    @Override
    public void clicked (InputEvent event, float x, float y) {
    editor.remove();
    in Mars it looks like this:
    removeButton.addListener(new ClickListener() {
    @Override
    public void clicked (InputEvent event, float x, float y) {
    editor.remove();
    Although this might seem minor just looking at it like this, the difference ruins commits because of how many places this change occurs. I haven't been able to find the setting to change it back, in Mars, to the way it works in Luna. Just for extra clarification, I am importing the exact same formatter to Luna and Mars, getting those respective results.

    I'm not allowed to use links, so please visit stackoverflow and open /questions/31073603/eclipse-4-5-java-formatter-changed
    A workaround is described.

  • HT203977 is there any way to restore factory settings on an Iphone 5s that will not connect to Itunes because the phone is locked with a pass code.  Problem is that the screen is completely shattered.

    is there any way to restore factory settings on an Iphone 5s that will not connect to Itunes because the phone is locked with a pass code.  Problem is that the screen is completely shattered.

    If the screen is completely shattered why bother to try and restore the phone?
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • [bug] SQLDeveloper 1.5.4.59.40 - Code Formatting problem

    I've installed SQLDeveloper 1.5.4.59.40 and I have found that the code formatting does not format the query with the right case that I choose. I mean, in the option I set to put "SQL words" in uppercase but the formatter ignore this and do not change any case in the query.
    Beretta Costantino

    Hi this works for me.
    -Are you using SQL Formatter Other -> Force formatter on difference ?
    -Are you non USA, there could be a problem with USA strings being assumed and being wrongly used internally?
    --Turloch                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • GDE - function module.. code .. problem

    hi all,
    I am extracting data using FM
    from PAYR and REGUH.
    I need:
    Payr
    doc1 ven01.........filds.a b c.
    doc2 ven02.........filds..
    doc3 ven02.........filds..
    doc4 ven03.........filds..
    My Fm is working fine.
    I need from REGUH:
    doc1 ven01.........filds p q r..
    doc2 ven02.........filds..
    doc3 ven02.........filds..
    doc4 ven03.........filds..
    doc5 ven05.........filds..
    doc6 ven06.........filds..
    doc5 and Doc6 not there in Payr table. finally i need 6 records with a, b,c, p, q, r
    I wrote code:
    ========
    error : It returns dump..
    saying : INDEX problem..?
    Modify e_t_data index sy-tabix.
    FUNCTION z_biw_payr_get_data .
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     REFERENCE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT
    *"       SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  ZBIW_AP_PAYR OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    Example: DataSource for table SFLIGHT
      TABLES: payr.
    Auxiliary Selection criteria structure
      DATA: l_s_select TYPE srsc_s_select.
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
    *internal tables:
    I_payr like payr occurs 0 with header line.
    I_reguh like reguh occurs 0 with header line.
    Select ranges
      RANGES: l_r_gjahr   FOR zap_payr-gjahr,
              l_r_vblnr   FOR zap_payr-vblnr,
              l_r_zbukr   FOR zap_payr-zbukr.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    please Check DataSource validity
        CASE i_dsource.
          WHEN 'ZAP_PAYR'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE e009(r3). ENDIF.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'GJAHR'.
            MOVE-CORRESPONDING l_s_select TO l_r_gjahr.
            APPEND l_r_gjahr.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'VBLNR'.
                  MOVE-CORRESPONDING l_s_select TO l_r_vblnr.
            APPEND l_r_vblnr.
          ENDLOOP.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'ZBUKR'.
            MOVE-CORRESPONDING l_s_select TO l_r_zbukr.
            APPEND l_r_zbukr.
          ENDLOOP.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
    Extracts from Tableu2026..1
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT mandt zbukr hbkid hktid rzawe chect checf laufd laufi lifnr
            kunnr empfg ubhkt vblnr gjahr zaldt waers rwbtr strgb pridt
            priti prius xmanu xbanc bancd extrd extrt xbukr zanre znme1
            znme2 znme3 znme4 zpstl zort1 zstra zpfac zland zregi zbnks
            zbnkn zbnkl zbkon voidr voidd voidu checv hbkiv hktiv zpst2
            xragl pernr seqnr btznr rec_belnr rec_gjahr zpfor uzawe ichec
            irefe rwskt
          FROM  payr
          WHERE zbukr  IN l_r_zbukr
                AND   vblnr  IN l_r_vblnr
          AND   gjahr  IN l_r_gjahr.
        AND   rzawe  EQ 'C'.
        ENDIF.                             "First data package ?
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR s_cursor
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE e_t_data
                   PACKAGE SIZE s_s_if-maxsize.
        IF sy-subrc <> 0.
          CLOSE CURSOR s_cursor.
          RAISE no_more_data.
        ENDIF.
    **get all u2018Du2019 and 2 series VBLNR records from REGUH
    _** --- CHECK the codes for WITH CASE 1 OR CASE 2._
    Case 1 :
    *Select * from reguh*
         Into corresponding fields of table i_reguh
         For all entries in e_t_data
         Where lifnr = e_t_data-lifnr
          And  rzawe = u2018Du2019
          and  Vblnr like u20182%u2019.
    Or u2026u2026 Or u2026u2026 Or u2026u2026
    Case2 :
    *Select * from reguh*
         Into corresponding fields of table i_reguh
         Where rzawe = u2018Du2019
          and  Vblnr like u20182%u2019.
    Loop at e_t_data.
      Read table i_reguh with key lifnr = e_t_data-lifnr
        If sy-subrc = 0.
          E_t_data-laufi  like reguh- laufi.
          E_t_data-Zbukr like reguh-zbukr.
          E_t_data-lifnr like reguh- lifnr .
          E_t_data-empfg like reguh- empfg.
          E_t_data-vblnr  like reguh-vblnr
          E_t_data-waers like reguh-waers
          E_t_data-srtgb like reguh-srtgb.
          E_t_data-znme1 like reguh- znme1.
          E_t_data-znme2  like reguh- znme2.
          E_t_data-znme3 like reguh- znme3.
          E_t_data-znme4 like reguh- znme4.
          E_t_data-zpstl like reguh-zpstl.
          E_t_data-zort1   like reguh-zortl.
          E_t_data-zstra like reguh-zstra.
          E_t_data-zpfac like reguh-zpfac.
          E_t_data-zland like reguh-zland.
          E_t_data-zregi like reguh-zregi.
          E_t_data-zbnkl like reguh-zbnkl.
          E_t_data-rzawe like reguh-rzawe.
          E_t_data-hktid like reguh-hktid.
          E_t_data-hbkid like reguh-hbkid.
          E_t_data-zpst2 like reguh-zpst2.
          E_t_data-uzawe like reguh-uzawe.
                E_t_data-pernr like reguh-pernr.
         E_t_data-btznr like reguh-btanr.
         E_t_data-laufd like reguh-laufd.
         E_t_data-zaldt like reguh-zaldt.
         E_t_data-rwbtr like reguh-rwbtr.
         E_t_data-rwskt like reguh-rwskt.
         Modify e_t_data index sy-tabix.
    Else.
         E_t_data-laufi  like reguh- laufi.
                E_t_data-Zbukr like reguh-zbukr.
         E_t_data-lifnr like reguh- lifnr .
         E_t_data-empfg like reguh- empfg.
         E_t_data-vblnr  like reguh-vblnr
         E_t_data-waers like reguh-waers
         E_t_data-srtgb like reguh-srtgb.
         E_t_data-znme1 like reguh- znme1.
         E_t_data-znme2  like reguh- znme2.
         E_t_data-znme3 like reguh- znme3.
         E_t_data-znme4 like reguh- znme4.
         E_t_data-zpstl like reguh-zpstl.
         E_t_data-zort1   like reguh-zortl.
         E_t_data-zstra like reguh-zstra.
         E_t_data-zpfac like reguh-zpfac.
         E_t_data-zland like reguh-zland.
         E_t_data-zregi like reguh-zregi.
         E_t_data-zbnkl like reguh-zbnkl.
         E_t_data-rzawe like reguh-rzawe.
         E_t_data-hktid like reguh-hktid.
         E_t_data-hbkid like reguh-hbkid.
         E_t_data-zpst2 like reguh-zpst2.
         E_t_data-uzawe like reguh-uzawe.
         E_t_data-pernr like reguh-pernr.
         E_t_data-btznr like reguh-btanr.
         E_t_data-laufd like reguh-laufd.
         E_t_data-zaldt like reguh-zaldt.
         E_t_data-rwbtr like reguh-rwbtr.
         E_t_data-rwskt like reguh-rwskt.
    Modify e_t_data index sy-tabix.
    Endif.
    Endloop.
    Logic for eliminating voided Checks Begin
        itab[] = e_t_data[].
        SORT itab BY chect.
        LOOP AT itab WHERE ( voidu NE space ) AND ( voidd NE space ).
          wa_idx = sy-tabix.
          wa_chect = itab-chect. CLEAR wa_found.
                wa_zbukr = itab-zbukr.
          wa_hbkid = itab-hbkid.
          wa_hktid = itab-hktid.
          wa_rzawe = itab-rzawe.
          DO.
            SELECT SINGLE * FROM payr WHERE
            zbukr = wa_zbukr AND
            hbkid = wa_hbkid AND
            hktid = wa_hktid AND
            rzawe = wa_rzawe AND
            chect = wa_chect.
            IF sy-subrc NE 0.
    Not transferring this record to BW
          message 'Invalid Check No.' type 'I'.
              DELETE itab.
              wa_found = 'Y'. EXIT.
            ENDIF.
            IF ( payr-voidu NE space ) AND ( payr-voidd NE space ).
              wa_chect = payr-checv.
              wa_zbukr = payr-zbukr.
              wa_hbkid = payr-hbkid.
                        wa_hktid = payr-hktid.
              wa_rzawe = payr-rzawe.
    If the Replacement Check # points to Original Check No., this record
    will be skipped.
              IF itab-chect = payr-checv.
                DELETE itab INDEX wa_idx.
                EXIT.
              ENDIF.
            ELSE.
              MOVE-CORRESPONDING payr TO itab.
              APPEND itab. wa_found = 'Y'.
              MOVE-CORRESPONDING itab TO itab1.
              APPEND itab1.
              EXIT.
            ENDIF.
            IF wa_found = 'Y'.
              EXIT.
            ENDIF.
          ENDDO.
        ENDLOOP.
        SORT itab by zbukr hbkid hktid rzawe chect.
            DELETE ADJACENT DUPLICATES FROM itab COMPARING zbukr hbkid hktid
        rzawe chect.
        LOOP AT itab1.
          READ TABLE itab WITH KEY
          zbukr = itab1-zbukr
          hbkid = itab1-hbkid
          hktid = itab1-hktid
          rzawe = itab1-rzawe
          chect = itab1-chect BINARY SEARCH.
          IF ( itab-voidu IS NOT INITIAL ).
            DELETE TABLE itab FROM itab1.
          ENDIF.
        ENDLOOP.
    04/13/08 commented to satisfy 4th condition
    Do not extract the Original record of the replaced Check
       LOOP AT itab.
         IF ( itab-voidu IS NOT INITIAL ) AND
            ( itab-voidd IS NOT INITIAL ).
           DELETE itab.
         ENDIF.
       ENDLOOP.
    04/13/08 commented to satisfy 4th condition
    Logic for eliminating voided Checks End
    ***The below process can be used for Delta Extraction using Time Stamp
       loop at itab.
         concatenate itab-pridt itab-priti into wa_timstmp.
         move wa_timstmp to itab-timstmp.
         move-corresponding itab to e_t_data.
         append e_t_data.
       endloop.
        e_t_data[] =    itab[].
        s_counter_datapakid = s_counter_datapakid + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.
    =========
    Please advise me and where will i correct the code.
    Thanks in advance,
    Siri.
    Edited by: SIRI SIRI on Jun 3, 2008 3:26 PM

    Hi,
    use the following:
    define a index variable.
    data: l_index type sy-tabix.
    in your loop at e_t_data.
    loop at e_t_data.
    new statement
    l_index = sy-tabix.
    changed statement
    modify e_t_data index l_index.
    endloop.
    The other read operations on internal tables will reset sy-tabix so that it will point to a invalid record.
    regards
    Siggi

  • Error code 36 (problems with external hard drive)

    I have just upgraded to Yosemite and am now having major problem with my external western digital hard drive.  I cannot create new folders and when I hit command N I get error code 36.  I also cannot move files from one folder to the next.  When I try to move them I get the error message: "The operation cannot be completed because a file of that name already exists" and that simply isn't true.  None of the files' names exist in the other folder.

    Ok, It appears to be the fault of Western Digital.  I ejected the hard drive and then plugged it back in and it said that the drive was broken but I could still read the files and it told me to save the files on another disk and reformat.  So it was just a coincidence that I upgraded to Yosemite at the same time that my external hard drive broke.

  • T.CODE:OB52 Problem

    Hi
    Now you at Quality server for Unit testing and Integration testing but problem is when you are using T.Code:-OB52 its showing display mode so you cannot open and closed posting periods.
    What is the problem is in fianance moduel or basis module could give sugguestion.
    regards
    cvs

    Hi,
    In standard SAP this transaction is not modifiable under Quality/Ptoduction system where the client is usually closed for modifications in T000 table. However, this could be easily changed by adjusting the attributes of this view V_T001B via SOBJ transaction. Ask your ABAP/BASIS team to help you with this. View note 77430 for further info.
    Regards,
    Eli

Maybe you are looking for