Java syntax issues

Hi,
I am getting syntax errors in below code,
D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:165: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out1 = contractNo + tmpqtystr1 + price + delperiod.substring(0,4)+"01" + condate + shipwts + mtype + cif + comtype + rejreason ^ D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:177: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out2 = out1; ^ 2 errors
is there any declaration issue..........
string out1 = contractNo + tmpqtystr1 +  price +  delperiod.substring(0,4)+"01" +  condate +  shipwts +  mtype +  cif +  comtype +  rejreason
+  type +   usrname +impdate +  imptime ;
int strlen = out1.length();
for (int s = strlen; s<178; s++)
out1 = out1.concat("");
string out2 = out1;
out1 = out1.concat(delperiod.substring(0,4)+"01");
result.addValue( out1 );
out2 = out2.concat(delperiod.substring(0,4)+"03");
result.addValue( out2 );

Thanks a lot dude....
this did solved the issue........
lemme keep this post open.......
seems to be some logic issue.........
even the logic issue got solved...... thanks again....
Edited by: san485 on Aug 25, 2010 6:13 PM

Similar Messages

  • What is new in Java syntaxes in new Java versions?

    What is new in Java syntaxes in new Java versions?
    What about this sentenses
    1. for (int c:data), where data is array of integer
    2. ArrayList<Object> () ...
    3. Class<?>...
    I can't find this syntaxes in my books and documentation...
    And what Java version is latest?

    dont crosspost
    Edited by language police

  • HT1338 There is a lot of talk about the Java security issues and the ability to download a patch fix, do i need to do this or will software update pick this up for me?

    There is a lot of talk about the Java security issues and the ability to download an apple patch fix, do i need to do this or will software update pick this up for me?

    Thanks for that, how do I establish if I have Java installed as on Safari preferences it indicates the following
    Web content - Enable Java
                        - Enable JavaScript

  • New improvement for Java syntax

    Hi developers
    I develop in java each day and the new project that I am envolved uses too much multithreading. So i thought that a litle improvement could be made on java syntax.
    When two threads uses the same class attribute we must synchronize the access to this.
    class myClass {
    private int myAtribute = 0;
    thread1: We must access the attribute synchronized....
    shynchronized (this) {
    myAttribute = 1;
    thread2: The same....
    synchronized (this) {
    myAttribute = 3;
    thread2: But if i don't care.... :-(
    myAttribute = 4;
    Ok, that is the problem.
    I thought to solve this the java language must give us the chance to declare attributes in the way...
    private synchronize int myAttribute = 0;
    to be only accesed by sinchronized methods or by synchronized blocks in order to force interpreter to check if any method access this attribute without being synchronized in compiling time.

    In your example, wouldn't the volatile keyword normally suffice?
    private volatile int myAttribute = 0;Graeme

  • Dynamic SQL from within DML - merging syntax issue #2

    Further to my previous thread on a SQL - DML merging syntax issue, I have another problem with multiple conditions in the WHERE-clause:
    vrb _retval decimal
    vrb _val1 text
    vrb _val2 text
    _val1 = 'value1'
    _val2 = 'value2'
    SQL SELECT DIM1_ATTR1 FROM MYSCHEMA.DIM1_DIM WHERE COL1 = :_val1, AND COL2 = :_val2, INTO :_retval
    The above SQL will return NA. If I use the text literals instead of the OLAP variables, the query just runs fine. Also, with a single condition (on COL1 only) the query returns the expected value.
    A note in the help states that OLAP DML objects should clearly be sperated from the rest of the SQL but does not say how. I am using a colon before and a comma after as without them the line would not compile. I could not find any example that would use multiple conditions in the WHERE-clause however the help text indicates that it is possible.
    Please help me, how.
    Regards,
    Csaba
    Windows, Oracle10gRel2 Ver. 10.2.0.1.0 eversion: 84090

    It does work, although I applied the finishing touch by removing the commas as well!
    Thanks a lot! Good job!
    Could you please have a look at issue #1 too? :-)
    Regards,
    Csaba

  • Documaker 12.1 XPath Syntax Issue

    We are moving to Documaker Studio 12.1 from Docucreate 11.0. So, I am importing few forms into 12.1 and doing test runs. I ran into a XPath syntax issue. We use XPath manual triggers to trigger forms and sections.
    In 11.0, the following trigger (use as Search Mask (True/False) in Manual Triggers) works perfectly fine. But it doesn't work in 12.1
    *!/Acord/Bills/Form/[FormNumber='U61']FormNumber*
    In 12.1, I have to remove the "/" present before "[" to make it work - as shown below.
    *!/Acord/Bills/Form[FormNumber='U61']FormNumber*
    Is there a way we can make the old syntax work with 12.1 as well? It would save us from changing thousands of Form and Section Triggers?
    Thank you,
    SGov.

    I suspect the short answer is No. The initial xPath syntax appears invalid as you would not define a slash between the node and the attribute that belongs to the node. The fact that it somehow succeeded was an anomaly that must have been corrected.

  • Java syntax in vim

    can somebody help me set up correctly a java syntax in vim?
    what files should be changed? it seems like the default syntax is for c/c++.
    thx

    try ":help syntax"

  • Java "Syntax" should be a main button.

    So I really like the idea of the new syntax and such, but I think it's annoying that 1.  I have to go to "advanced" reply to use "Java" syntax, and just having to click and scroll to it can be annoying(even though it takes 10 seconds.as it
    ImO I loved being able to do {code}{code} as it was fast and easy, so something like that would be cool, or just having the little Java button on top.  Is tables really more important than Java Syntax on a Java forum?
    Thanks for the forum!

    For a radio button group called 'frequency' where the value binding is
    1 - weekly
    2 - bi-weekly
    3 - monthly
    4 - annual
    you could add the following client-side JavaScript to the 'frequency' change event.
    var frequency = form1.subform1.frequency.rawValue;
    switch (frequency) {
    case "1":
    form1.subform1.annual.rawValue = form1.subform1.pay.rawValue * 52;
    break;
    case "2":
    form1.subform1.annual.rawValue = form1.subform1.pay.rawValue * 26;
    break;
    case "3":
    form1.subform1.annual.rawValue = form1.subform1.pay.rawValue * 12;
    break;
    case "4":
    form1.subform1.annual.rawValue = form1.subform1.pay.rawValue * 1;
    break;
    default:
    break;
    Steve

  • Where can I find a Java Syntax Highlighting TextArea?

    Where can I find a Java Syntax Highlighting TextArea?
    I'm currently only aware of JEdit and Netbeans being open source projects containing textarea components.
    BTW can code from the above projects be used in a project of my own?

    I have a syntax highlighting package (open source, GPL):
    http://ostermiller.org/syntax/
    It comes with a demonstration editor a tutorial:
    http://ostermiller.org/syntax/editor.html

  • What to do about the recent Java security issue?

    I am reading about the Java security issue. Do I need to do something with Safari?

    Open Safari preferences, click on the Security icon in the toolbar. Uncheck the Enable Java option.

  • Safari locks up on stock streamer due to Java Version issue

    I bought a MacBook for personal use when I travel. My company expressly forbids any personal use of their laptop.
    When I use Safari with my wireless network at home it works fine. In this hotel I cannot access the stock streamer on TD Ameritrade when working over a wireless connection. TD Ameritrade "help" indicates a Java Version problem. I upgraded to the latest version of Java. TD still indicates a Java Version issue. This really does not make sense since the streamer works fine at home. I used my business laptop (XP with Internet Explorer) just to check the streamer and it works fine at the hotel.
    I checked the Safari Plug-ins. The Java Plug-ins listed say;
    Java Plug-in for Cocoa
    Java Switchable Plug-in (Cocoa) - from file "JavaPluginCocoa.bundle".
    Java Plug-in
    Java 1.3.1 Plug-in - from file "Java Applet.plugin".
    Java Plug-in (CFM)
    Java 1.3.1 Plug-in (CFM) - from file "Java Applet Plugin Enabler".
    I tried to download and reinstall Java 1.4.2. The system indicated there was already a newer version of Java 1.4 installed and terminated the install.
    Any suggestions will be tried.
    I am hoping that after all my years on PCs I will not regret trying to switch to Apple.
    MacBook   Mac OS X (10.4.7)   Java Version 5 not indicated in plug-in wndow

    Welcome to Apple Discussions and Mac Computing
    Do you have J2SE 5.0 installed in your Utilities>Java folder? Given your machine is new it ought to be there. If not, go to Software Update in your System Preferences and install it.
    If it is installed: inside the J2SE5.0 folder is Java Preferences.app and Java Cache Viewer. Double click the Pref. app. Upon opening, the ensuing panel indicates the "priority" for Java - mine says J2SE 5.0, then J2SE 1.4.2. If it isn't in that order, reverse the order by dragging one of them to the proper place. Select "save".
    Next, clear the 1.4.2 cache file by opening Java 1.4.2 Plugin Settings.app, selecting cache, then "clear". Quit the app. and restart your computer/Safari.
    Post back.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • Why the JavaFX syntax not closer to the Java syntax?

    I wonder why the JavaFX syntax is not closer to Java syntax than it is now?
    For example why
    public function myFunction(param: Integer): String[]
    is not simply
    public String[] myFunction(Integer param)
    After all in JavaFX there is also the word Java :)

    Somehow, I am more "shocked" by the usage of "script" name for JavaFX programs, since we don't really script an application (original sense of the word).It's certainly possible to have a long discussion about whether JavaFX Script is or is not a "scripting language". Unlike other scripting languages (e.g. JavaScript and Python come to mind, but there are many other possibilities) JavaFX Script is not interpreted directly nor is it dynamically typed. However, several features of the language do make JavaFX Script convenient for casual programming. For example, for simple programs it's not necessary to declare the types of variables, as they can (usually) be inferred by the compiler. Also, it's possible to code statements (really, expressions) "loose" in a plain file, without verbose class declarations. For example, "Hello, world!" in Java looks something like:
    public class Hello {
        public static void main() {
            System.out.println("Hello, world!");
    }whereas the equivalent in JavaFX Script is simply:
    println("Hello, world!")For larger JavaFX Script programs one usually has to add import lines and class declarations, which do tend to lead away from the "scripty" feel of the language. Nonetheless I find JavaFX Script considerably more concise than Java and, well, the authors wanted to call it a scripting language, so there it is.
    One other thing I learned recently is that to put something on the screen, it's not necessary to wrap your scene graph objects in a Stage and a Scene. If the last expression in the script is a Node, the runtime automatically provides a Stage and a Scene for you. So something like:
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    Rectangle {
        x: 50 y: 30 width: 100 height: 40 fill: Color.DODGERBLUE
    }will work.

  • Java Syntax Analyser

    Basically i am trying to make a java syntax analyser and there is one problem i am haing with the StreamTokenizer.
    when the streamtokenizer reads a token it takes a whole string such as blah.blah.blah
    but i want it to take on the first blah and then think that the '.' is a whitespace
    is there any way of doing this.
    also i tried using string.split(".") stuff but it seems that it regards the . as a termination character or something
    can you answer some of these questions. thank you
    regards
    alpha

    Oh, sorry, you asked for StreamTokenizer, not String Tokenizer. With Streamtokenizer, you can call
              tokenizer.whitespaceChars('.', '.');
    With that method, you can declare a range of characters as whitespace characters.
    Regards
    Der Hinterwaeldler

  • Autofilled Java Syntax

    I use Adobe Adge Animate. I'm new in Adobe Edge and Java. I'm from the PHP side and use Dreamweaver. Its not possibly to autofilled Java Syntax in Edge? I have some problems with access of some symbols and element. I'm not sure which is the right command.

    When in the code window select the arrow at the bottom to open the code snippets.
    On Fri, Feb 13, 2015 at 4:55 PM, migro1982 <[email protected]>

  • 'How to..use reporting variables in BPS'  syntax issue

    Hi,
    I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
    SELECT SINGLE * FROM ybw_bps_var_map
    ybw_bps_var_map being my transparent table as described in the white paper.
    I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
    Thanks for any help.
    David

    Hi David,
    I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
    Regards
    Marc
    SAP NetWeaver RIG

Maybe you are looking for

  • Grouping rows in a costs-based form for CO-PA analysis

    Hello everyone, I am designing a form for a CO-PA report and I would like to enhance a bit the layout. I would like to group some value fields with an explorer feature. Do you know how to do so? I attached an example. In my case, I would like to grou

  • Weblogic (WLS) / Oracle Forms & Reports (OFR) JRE lowest version parameter?

    Hi, Have WLS 11.3 and OFR 11.2 running within it. I have adjusted the parameter via the GUI for the JRE. This was to specify what version the client's JRE was in order to run OFR, if it was X version or higher it would run. I can not find this parame

  • Can't send audio messages from Nokia E63 to email ...

    I used to send audio messages from my mobile to my friend's email, and it worked fine. But some days ago it stopped working. I keep on seeing this whenever I try to send audio message. "In order to send/download MM messages, the current active connec

  • Servers take an endless time at applying group policy settings

    We have some Windows 2008R2 RDS servers that have been given a syspreped image. After a few day in production, and several nightly reboots, the servers start to hang at applying group policy setting. I have created a gpsvc.log file. What can be wrong

  • Creating a restricted variable

    Hi, I have a Version characteristic that has the following values assigned to it: 100 B00 H01 F00 F01 F02 F03 FL1 T00 I would like to create a variable that will be restricted to selection values F00 - F03 only. Can anyone point me in the right direc