Help needed in c programming

hi
i am writing a c program using fstream.
can anyone tell me where can i post my questions here in apple discussion board?
i just don't know in which section does my problem fits.

The main developer forum is here:
http://discussions.apple.com/forum.jspa?forumID=727

Similar Messages

  • Help needed in Dialog programming

    Hi,
    I am in a module pool program. This contains a subscreen which has a tablecontrol. Based on one of the entry in the table control. I need to stop the user to change the value.
    So I have coded like the below.
    If i_tc-value = 0.
       v_scrno = sy-dynnr.
       leave to screen v_scrno.
    endif.
    But the above code gives an ABEND error with message
    <b>SET SCREEN not allowed in subscreen (screen: <Program name> <Screen nbr>)</b>
    Please help to solve the above issue. User must make the entry in the table control. How to stop the user for changing the entry?

    Hi Murphy,
    I don't know on wot entry you want to stop the user to changes , i hope for stoping your user you may have some condiation once that condation pass make use screen properties to make that field into display mode such that the user again not able to edit.
    Thanks,
    saleem.

  • 2 Layout's for 2 screens different F4 Help needed for same program

    Hi Friends,
    I have 2 layouts in the selection screen the first layout is for screen 1 and the second layout is for screen 2.
    I save the layouts when I run the report.
    Now when I do F4 Help for the first layout it shows me all the layouts available for the program and the same thing
    for Second layout too.
    Is there a way for the first layout I need to get only the layouts for the first screen when I hit the F4 button
    and for the second layout I need to get only the layouts for the second screen when I hit the F4 button. in order to choose
    I am using REUSE_ALV_VARIANT_F4 and passing report name to is_variant and i_save = 'X'.
    Thanks,
    chaithanya.

    I think this is not possible.
    Variant names get stored on Report Name as key.

  • Help needed in report programming

    Hi All
    I am processing some data on first screen of a report transaction and an output is displayed on second screen. My requirement is that when I press back, I have to come to SAP initial screen.
    I have tried all options with 'LEAVE'. Problem is that control doesnt come even once in report, it goes into some standard code so I am unable to make changes..
    Kindly help.
    Thanks
    Dinesh
    <LOCKED BY MODERATOR - USE APPROPRIATE TITLES>
    <LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 18, 2008 5:17 PM

    Hi,
    Since it is a report program. U have to set PF status in ur output page (either ALV or any other output format).
    In GUI status, triger the function code for BACK.
    Then, inside the event AT USER-COMMAND, code LEAVE PROGRAM for the BACK function.
    If it is an ALV output, the PF-status and User-command event should be called in the ALV function module.
    Regards,
    Prem

  • Help needed regarding Dynamic Programming

    Hi,
    While doing dynamic programming , we bind the context variable with two types of
    values .
    1 . ddic
    2 . extern
    My doubt is in which case we should use ddic and where to use extern .
    Can anybody help me out regarding this.
    Thanks a lot.

    Hi Ki,
    Predefined, Web Dynpro UI-specific, and user-defined Dictionary types all have the
    prefix ddic:.
    wdContext.getNodeInfo()
    .addAttribute(
    "Visibility",
    "ddic:com.sap.ide.webdynpro.uielementdefinitions.Visbility")
    •&#61472;Logical Dictionary types from Adaptive RFC models have the prefix extern:.
    Check this links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec32d43b06e0
    /people/dipankar.saha3/blog/2007/05/31/how-to-create-dynamic-approval-process-using-conditional-loop-block-in-guided-procedure
    Regards,
    Mithu

  • Help needed for compactrio programming

    Hello all,
    I am very new to LabVIEW programming.I've an application where it's required to acquire temprature data at a perticular duration  from a heater.Depending upon the differance between current temp (process varible)and set temprature,heater  has to make ON and OFF in a controlled way to reach the set value.
    I have made a loop where i am acquireing temp data at every 30 sec interval and depending upon temprature diff between set value and present value ,am genarting a pulse   (for eg. 22 sec on period and 8 sec off period).Inside that loop  I am driving the "True" value to DIO of CompactRIO  for ON period to make the  heater ON .Problem what I am facing is the heater is not gaetting ON at Exact 0 to 22 sec and not OFF from 22 sec to 30 sec.
    i have tried to use  separate loop for acustion ,analysis and control but not able  to synchonise all.Heater is getting ON and OFF randomly.Please help.
    thanks
    tapasm

    Can you post your code?
    It would make is so much easier to help.
    Tim
    Johnson Controls
    Holland Michigan

  • Help needed with basic program

    I am working on an assignment for my java class, and I am stuck. This is the 1st programming class that i have taken and am a little confused. I am supposed to write a program that inputs 5 numbers and determines and prints the number of negative numbers, positive numbers, and zeros that were inputed. I have gone about this a few different ways so far... but I'm not really sure what to do...
    This is what I have so far on my latest attempt, which I think might be completely wrong..... HELP!!!
    import java.util.Scanner;
    public class test
         public static void main (String[] args)
         Scanner input = new Scanner (System.in);
         int integer
         int negative = 0;
         int positive = 0;
         int zero = 0;
         int studentCounter = 1;
         while (studentCounter <=5)
         System.out.print("Please enter an integer:");
         integer = input.nextInt();
         if (integer == 0
              zero = zero +1
    I also tried something similar using :
         int num1; //first number input     
         int num2; //second number input
         int num3; //third number input
         int num4; //forth number input
         int num5; //fifth number input
    System.out.print ("Enter first integer:"); //prompts for input
         num1 = input.nextInt();
         System.out.print ("Enter second integer:"); //prompts for input
         num2 = input.nextInt();
         System.out.print ("Enter third integer:"); //prompts for input
         num3 = input.nextInt();
         System.out.print ("Enter forth integer:"); //prompts for input
         num4 = input.nextInt();
         System.out.print ("Enter fifth integer:"); //prompts for input
         num5 = input.nextInt();
    but i didn't know what to do next.....

    import java.util.Scanner;
    ublic class test
         public static void main (String[] args)
         Scanner input = new Scanner (System.in);
    int integer
    int negative = 0;
    int positive = 0;
         int zero = 0;
    int studentCounter = 1;
    while (studentCounter <=5)
         System.out.print("Please enter an integer:");
         integer = input.nextInt();
    if (integer == 0
              zero = zero +1
    This looks more or less correct so far. Not ideal, but aside from a missing ) and the fact that you trailed off without finishing, it looks like you're on track.
    Start with this, and post details about what specific problems you're having.
    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.

  • Help needed in this program!

    Hi, i have written a program for solving a power flow question,using Gaussian elimination method to solve for matrices.The program is pretty long,and i have tried breaking the program into smaller modules,but there were errors in the numeric results at the end.
    I need some suggests as to how to break the program into smaller modules???
    /* Example 10.6 Pg 347 from Bergen.
       Demonstration of Newton-Raphson Iteration.
    import java.util.*;
    import java.io.*;
    import java.lang.Math;
    import java.lang.ArrayIndexOutOfBoundsException;
    public class NewtonRaphsonIt
         public static void main( String args[])throws ArrayIndexOutOfBoundsException
              int Deg = 360;
              int Loop = 3;
              double pi = 3.141592653589793238;
              double limit = Math.abs(5E-6);
              int i,j,k,u;
              double V1,V2,V3,P2,P3,Q3,deltaP2,deltaP3,deltaQ3;
              double Theta1,Theta2,Theta3;
              double P1,Q1,Q2;
              double P_Loss,Q_Loss,PF;
              double maxi,temp,temp2;
              int tempi=0;
              //values given
              P2=0.6661; P3=-2.8653; Q3=-1.2244;
              V1=1; V2=1.05; Theta1=0;
              //values supposely to be chosen as a rough guess
              Theta2=Theta3=0; V3=1;
              double [][] Y_bus = {{-19.98,10,10},{10,-19.98,10},{10,10,-19.98}};
              double [][]   J   = new double [3][3];
              double []     fx  = new double [3];
              double []    oldx = {Theta2,Theta3,V3};
              double []     x   = {Theta2,Theta3,V3};
              double []     V   = {V1,V2,Theta1};
              double []    Bus  = {P2,P3,Q3};     
              double []   delta = new double [3];
              double []    ANS  = new double [3];
              int f = fx.length;
              int y = Y_bus.length;
              int z = J.length;
              int c = Bus.length;
              int h = delta.length;     
              int e = ANS.length;
              int ox= oldx.length;
              //System.out.println("Arrary size for Ybus is:" +n);
              //output Ybus Matrix
              System.out.println(" Ybus is:");
              System.out.println("---------");
              for ( i=0; i<y; i++)
                   for ( j=0; j<y; j++)
                        System.out.print(+Y_bus[i][j]+" "+", ");
              System.out.println();
              for ( u=1; u<Loop+1; u++){
              //while(delta[0] < limit){
              //Jacobian matrix
              //deltaP2/deltaTheta2
              J[0][0] = (Math.abs(V[1]))* (Math.abs(V[0])) * Y_bus[1][0] * (Math.cos(x[0]))
                        + (Math.abs(V[1]))* (Math.abs(x[2])) * Y_bus[1][2] * (Math.cos(x[0]-x[1]));
              //deltaP2/deltaTheta3
              J[0][1] = -(Math.abs(V[1]))* (Math.abs(x[2])) * Y_bus[1][2] * (Math.cos(x[0]-x[1]));
              //deltaP2/delta|V3|
              J[0][2] = (Math.abs(V[1])) * Y_bus[1][2] * (Math.sin(x[0]-x[1]));
              //deltaP3/deltaTheta2
              J[1][0] = -(Math.abs(V[1]))*(Math.abs(x[2])) * Y_bus[2][0] * (Math.cos(x[1]-x[0]));
              //deltaP3/deltaTheta3          
              J[1][1] = (Math.abs(V[0])) *(Math.abs(x[2])) * Y_bus[2][0] * (Math.cos(x[1]))
                        +(Math.abs(V[1])) *(Math.abs(x[2])) * Y_bus[2][1] * (Math.cos(x[1]-x[0]));
              //deltaP3/delta|V3|
              J[1][2]     = (Math.abs(V[0])) * Y_bus[2][0] * (Math.sin(x[1]))
                        +(Math.abs(V[1]))* Y_bus[2][1] * (Math.sin(x[1]-x[0]));
              //deltaQ3/deltaTheta2
              J[2][0] = - Y_bus[2][0] * (Math.abs(x[2])) * (Math.abs(V[1])) *(Math.sin(x[1]-x[0]));
              //deltaQ3/deltaTheta3
              J[2][1]     = (Math.abs(x[2]))*(Math.abs(V[0])) * Y_bus[2][0] * (Math.sin(x[1]))
                        +(Math.abs(x[2]))*(Math.abs(V[1])) * Y_bus[2][1] * (Math.sin(x[1]-x[0]));
              //deltaQ3/delta|V3|
              J[2][2]     = -((Math.abs(V[0])) * Y_bus[2][0] * (Math.cos(x[1]))
                        + (Math.abs(V[1])) * Y_bus[2][1] * (Math.cos(x[1]-x[0]))
                        + (Math.abs(x[2]))* 2 * Y_bus[2][2]);
              //output Jacobian Matrix
              System.out.println();
              System.out.println(+u+")"+" Jacobian Matrix is:");
              System.out.println("-----------------------");
              for ( i=0; i<z; i++)
                   for ( j=0; j<z; j++)
                        System.out.print(+J[i][j]+" "+", ");
              System.out.println();
              // variable P2
              fx[0] = (Math.abs(V[1]))*(Math.abs(V[0])) * Y_bus[1][0] * (Math.sin(x[0]-V[2]))
                   + (Math.abs(V[1]))*(Math.abs(x[2])) * Y_bus[1][2] * (Math.sin(x[0]-x[1]));
              //System.out.println("P2 is :"+fx[0]);
              // variable P3
              fx[1] = (Math.abs(x[2]))*(Math.abs(V[0])) * Y_bus[2][0] * (Math.sin(x[1]-V[2]))
                   + (Math.abs(x[2]))*(Math.abs(V[1])) * Y_bus[2][1] * (Math.sin(x[1]-x[0]));
              //System.out.println("P3 is :"+fx[1]);
              // variable Q3
              fx[2] = -((Math.abs(x[2]))*(Math.abs(V[0])) * Y_bus[2][0] * (Math.cos(x[1]-V[2]))
                   + (Math.abs(x[2]))*(Math.abs(V[1])) * Y_bus[2][1] * (Math.cos(x[1]-x[0]))
                   + (Math.abs(x[2]))*(Math.abs(x[2])) * Y_bus[2][2]);
              //System.out.println("Q3 is :"+fx[2]);
              //Output f(x)
              System.out.println();     
              System.out.println(+u+")"+" Function f(x) is:");
              System.out.println("--------------------");
              for ( k=0; k<f; k++)
                   System.out.println(+fx[k]);
              System.out.println();
              //ouput P2,P3,Q3 as a matrix
              System.out.println();          
              System.out.println(+u+")"+" Matrix [P2,P3,Q3] is:");
              System.out.println("------------------------");
              for ( k=0; k<c; k++)
                   System.out.println(+Bus[k]);
              System.out.println();
              //finding values of deltaP2,deltaP3,deltaQ3
              System.out.println();          
              System.out.println(+u+")"+" Matrix [d.P2,d.P3,d.Q3] is:");
              System.out.println("------------------------------");
              for ( k=0; k<h; k++)
                   System.out.println(delta[k]= Bus[k]- fx[k]);
              System.out.println();
              //find delta x={deltaTheta2,deltaTheta3,delta|V3|}
              //Gaussian Elimination method
              //solve Ax=b
              //matrix J will be destroyed,solution will be in matrix delta
              if(J[0].length != z)
                   System.out.println("Matrix J must be a Square Matrix!");
                   return;
              for(j=0; j<z; j++)
                   maxi=-1E-12;
                   for(i=j; i<z; i++)
                        if(Math.abs(J[i][j])> maxi)
                             tempi=i;
                             maxi=Math.abs(J[i][j]);
                             //System.out.println(+tempi);
                   if(maxi<1E-12)
                        System.out.println
                             ("The Set either has mutltiple solutions or no unique solution!");
                        return;     
                   //Permuting tempi row with the j-th row
                   if(tempi != j)
                        for(k=j; k<z; k++)
                             temp=J[j][k];          //store 1st row into temp space     
                             J[j][k]=J[tempi][k];     //store last row into 1st row
                             J[tempi][k]=temp;     //store 1st row back into last row
                        temp=delta[j];               //store 1st row into temp space     
                        delta[j]=delta[tempi];          //store last row into 1st row
                        delta[tempi]=temp;          //store 1st row back into last row
                   //System.out.println("deltatemp:"+delta[j]);
                   //Divide j-th row by J[j][j]
                   temp=J[j][j];
                   delta[j]=delta[j]/temp;
                   System.out.println("delta1:"+delta[j]);
                   for(k=j; k<z; k++)
                        J[j][k]=J[j][k]/temp;
                   for(i=0; i<z; i++)
                        if(i != j)
                             temp=J[i][j];
                             temp2=delta;                         
                             for(k=0; k<z; k++)
                                  J[i][k] = J[i][k]-temp*J[j][k];
                                  delta[i]= temp2-temp*delta[j];
                                  System.out.println("delta:"+delta[j]);
                                  System.out.println("J:"+J[i][k]);
              // values of deltax in radians
              System.out.println(+u+")"+" The solution for AX=b is:");
              System.out.println("----------------------------");
              for(i=0; i<z; i++)
                   System.out.println(+delta[i]);
                   x[i] = delta[i];
              // values of deltax in degrees
              System.out.println();
              System.out.println(+u+")"+" The solution for deltaX is:");
              System.out.println("------------------------------");
              ANS[0] = x[0] * Deg/(2*pi);
              ANS[1] = x[1] * Deg/(2*pi);
              ANS[2] = x[2];
              for(i=0; i<e; i++)
                   System.out.println(+ANS[i]);
              //finding X^1=x^0 + deltax^0
              System.out.println();
              System.out.println(" The solution for X after iteration:"+"("+u+")");
              System.out.println("---------------------------------------");
              for(i=0; i<e; i++)
                   x[i] = oldx[i] + ANS[i];
                   System.out.println(+x[i]);
                   System.out.println();
                   //System.out.println("oldx:" +oldx[i]);
                   //System.out.println();
              //update the oldx with the new values from x
              for(i=0; i<ox; i++)
                   oldx[i] = x[i];
                   //System.out.println("oldx:" +oldx[i]);
                   //System.out.println();
              //convert to radians for Math.sin/cos()
              x[0] = x[0] * (2*pi)/Deg;
              x[1] = x[1] * (2*pi)/Deg;
              x[2] = x[2];
              }//for loop
              //if (delta[0] == limit)
              //     break;
              //}//while loop
              // calcuate P1,Q1,Q2
              P1 = (Math.abs(V[0]))*(Math.abs(V[1])) * Y_bus[0][1]* (Math.sin(V[2]-x[0]))
                   + (Math.abs(V[0]))*(Math.abs(x[2])) * Y_bus[0][2] * (Math.sin(V[2]-x[1]));
              System.out.println("P1 is :"+P1);
              System.out.println();
              Q1 = -((Math.abs(V[0]))*(Math.abs(V[1])) * Y_bus[0][1] * (Math.cos(V[2]-x[0]))
                   + (Math.abs(V[0]))*(Math.abs(x[2])) * Y_bus[0][2] * (Math.cos(V[2]-x[1]))
                   + (Math.abs(V[0]))*(Math.abs(V[0])) * Y_bus[0][0]);
              System.out.println("Q1 is :"+Q1);
              System.out.println();
              Q2 = -((Math.abs(V[1]))*(Math.abs(V[0])) * Y_bus[1][0] * (Math.cos(x[0]-V[2]))
                   + (Math.abs(V[1]))*(Math.abs(x[2])) * Y_bus[1][2] * (Math.cos(x[0]-x[1]))
                   + (Math.abs(V[1]))*(Math.abs(V[1])) * Y_bus[1][1]);
              System.out.println("Q2 is :"+Q2);
              System.out.println();
              //Power Loss P_Loss = (P1+P2) - P3
              P_Loss = (P1+P2) - P3;
              System.out.println("Power Loss is :"+P_Loss);
              System.out.println();
              System.out.println("P2 is :"+P2);
              System.out.println();
              System.out.println("P3 is :"+P3);
              System.out.println();
              System.out.println("Q3 is :"+Q3);
              System.out.println();
              //Reactive Power Loss
              Q_Loss = (Q1+Q2) - Q3;
              System.out.println("Reactive Power Loss:" +Q_Loss);
              System.out.println();
              System.out.println("Q1 is :"+Q1);
              System.out.println();
              System.out.println("Q2 is :"+Q2);
              System.out.println();
              System.out.println("Q3 is :"+Q3);
              System.out.println();
              //Power factor PF = P/sqrt[(P^2 +  Q^2)]
              PF = P3/(Math.sqrt( (P3*P3) + (Q3*Q3)));
              System.out.println("Power Factor is :"+PF);
              System.out.println();

    Start off by creating a Matrix class, rather than doing it all with 2d arrays in the main method? (The Matrix class might do little more than be a wrapper around a 2d array, but at least it would be a bit more modular.)

  • Help needed in jco programming

    hi friends
    when i try to connect with SAP server using jco i have some probem.
    Connection with jco program is working fine. I make it ajava file and run separately).
    Now i want do that with jsp.
    I am getting error of
    Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.barcodeMainP_jsp._jspService(org.apache.jsp.barcodeMainP_jsp:124)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError
    mySAP.JcoTest.createConnection(JcoTest.java:78)
    mySAP.JcoTest.<init>(JcoTest.java:8)
    org.apache.jsp.barcodeMainP_jsp._jspService(org.apache.jsp.barcodeMainP_jsp:74)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    My Program is
    My java program
    package mySAP;
    import com.sap.mw.jco.*;
    public class JcoTest {
         public JcoTest() {
              createConnection();
              retrieveRepository();
              closeConnection();
         public StringBuffer fetchData(String Dofrom, String Doto) {
              StringBuffer stringbuffer = new StringBuffer();
              try {
                   com.sap.mw.jco.JCO.Function function = getFunction("Z_BC_LABEL");
                   System.out.println("SUCC YOU GOT CONN");
                   com.sap.mw.jco.JCO.ParameterList listParams = function
                             .getImportParameterList();
                   System.out.println(listParams);
                   listParams.setValue(Dofrom, "DO_FROM");
                   listParams.setValue(Doto, "DO_TO");
                   theConnection.execute(function);
                   System.out.println("SUCC function executed success");
                   com.sap.mw.jco.JCO.Table tableList = function
                             .getTableParameterList().getTable("ZBAR");
                   String s3 = "\t";
                   stringbuffer.append("vbeln" + s3);
                   stringbuffer.append("uecha" + s3);
                   stringbuffer.append("kdmat" + s3);
                   stringbuffer.append("lifmg" + s3);
                   stringbuffer.append("bstkd" + s3);
                   stringbuffer.append("groes" + s3);
                   stringbuffer.append("name1" + s3);
                   stringbuffer.append("lfdat" + s3);
                   stringbuffer.append("posnr" + s3);
                   stringbuffer.append("lifmg  bstkd " + "\n");
                   // stringbuffer.append("\t");
                   if (tableList.getNumRows() > 0)
                        do {
                             com.sap.mw.jco.JCO.Field tabField;
                             for (com.sap.mw.jco.JCO.FieldIterator fI = tableList
                                       .fields(); fI.hasMoreElements();
                             stringbuffer.append(tabField.getString() + s3)) {
                                  tabField = fI.nextField();
                             stringbuffer.append("\n");
                        } while (tableList.nextRow());
                   else
                        System.out.println("sorry no records...better luck next time");
              } catch (Exception ex) {
                   ex.printStackTrace();
              return stringbuffer;
         private static void createConnection() {
              try {
                   theConnection = JCO.createClient("080", "xxxx", "xxxx", "EN",
                             "xxx.xxx.xx.xx", "00");
                   theConnection.connect();
              } catch (Exception ex) {
                   System.out.println("Failed to connect to SAP system");
         private static void closeConnection() {
              try {
                   theConnection.disconnect();
              } catch (Exception ex) {
                   System.out.println("Failed to connect to SAP system");
         private static void retrieveRepository() {
              try {
                   theRepository = new com.sap.mw.jco.JCO.Repository("saprep",
                             theConnection);
              } catch (Exception ex) {
                   System.out.println("failed to retrieve repository");
         public static com.sap.mw.jco.JCO.Function getFunction(String name) {
              return theRepository.getFunctionTemplate(name.toUpperCase())
                        .getFunction();
         private static com.sap.mw.jco.JCO.Client theConnection;
         private static IRepository theRepository;
    My JSP calling Program
    <%@page language="java"
         import="java.sql.*,java.io.*,mySAP.*,java.net.URL;"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%!StringBuffer stringbuffer = new StringBuffer();
         int testemp;%>
    <%
         String dofrom;
         String doto;
         String s;
         String s1;
         dofrom = request.getParameter("DOFrom");
         doto = request.getParameter("DOTo");
         ResultSet resultset;
         String flag = request.getParameter("dall");
         mySAP.JcoTest obj = new mySAP.JcoTest();
         StringBuffer sb = obj.fetchData("one", "two");
         out.println(sb);
         try {
              StringBuffer stringbuffer = new StringBuffer();
              String separator = System.getProperty("file.separator");
              String path = System.getProperty("user.dir") + separator;
         } catch (Exception e) {
              out.println("error%%%%%%%%%" + e);
    %>
    </body>
    </html>

    NoClassDefFoundError always means Class Path problem. The classpath of the Servlet is not the same as a normal Java Application. Move any of the necessary dependencies to the Servlet Context's class path (jars in the WEB-INF/lib/ or classes in WEB-INF/classes/).

  • Help needed with this program

    Hello,
    I would like to enquire on whether this VI  has any error. I need to configure the digital input as a positive limit switch which is a sensor which when blocked, will produce a change in the voltage pulse.
    Attachments:
    sensor.vi ‏34 KB

    Hello,
    I could not open. Can you save it for LabView 8.2 or 8.5?
    Andy
    Best Regards,
    Andy
    PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7

  • HELP NEEDED with videora program

    ok...so i am a bit confused. When im converting my movie it says it is 100% complete, yet there is no message or anything...is there supposed to be?...and what do i do after it is comlete?

    No, there's no message.
    The next step is to find the file that it created for you, and add it to iTunes so that it can be transferred to your Pod.
    If you're not sure where it saved the file to, look in the Videora settings and see what is set as the output directory.

  • Need help for writing extract program

    hi
    i need help for writing extract program to retriew data from legacy system.
    i already developed bdc programs for me31k and me21.
    my requirement is to write extract program s for those t.codes.
    to retriew data from legacy system and stored in flat file.

    i need help with a java program. it is a program that allows the user to enter a student's GPA, number of extracurricular activities, and number of service activities. The user can not enter a gpa above 4.0 or below 0. The user can not enter a negative number for the number of both activities. If the student meets the following criteria: 1) GPA of 3.8 or above and at least one extracurricular activity and one service activity, 2) GPA below 3.8 but at least 3.4 and a total of at least three extracurricular and service activities, 3) GPA below 3.4 but at least 3.0 and at least two extracurricular activities and three service activities, the message "Scholarship candidate" should display. If the student does not meet the criteria above, then the message"not a candidate" should display. Can you help me, please?
    You haven't posted ANY 'java program' for us to help with.
    The forum is NOT a coding service. It is to help you with YOUR code.
    Post the code you have written and SHOW us (don't just tell us) how you compile it and execute it and the results you get. Then we can help you with any problems you are are having.
    If you need help understanding just what the program should be doing you need to ask your instructor to clarify the assignment.

  • Please help: I need a "sleep" program

    Hi!
    I need an ABAP program which will start, then 'sleep' (i.e.do nothing) for
    5 minutes, and eventually exit with a message like 'I wake up' on the screen.
    Please help. Points guaranteed. Thanks!

    Check this out.  This uses the gui timer, so it will not hold up your dialog process, it will count till the timer runs out and give a message.
    REPORT  zrich_0001.
    DATA: gui_timer TYPE REF TO cl_gui_timer.
    DATA: timeout TYPE i VALUE '3'.
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
    ENDCLASS.                   
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_finished.
        MESSAGE i001(00) WITH 'Hey, its been 3 seconds, im done'.
      ENDMETHOD.                  
    ENDCLASS.                  
    PARAMETERS : p_check TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      CREATE OBJECT gui_timer.
      SET HANDLER lcl_event_handler=>on_finished FOR gui_timer.
      gui_timer->interval = timeout.
      CALL METHOD gui_timer->run.
    To increase the time, simply change the value of the TIMEOUT variable to the desire number of seconds.
    Regards,
    Rich Heilman

  • I have a licence code for Adobe CS6 Master Collection which I'm using for more  than a year, suddeny I am in trial mode (all programs)  an it seems that this code is not accepted anymore. Help needed!!

    I have a licence code for Adobe CS6 Master Collection which I'm using for more  than a year, suddeny I am in trial mode (all programs)  an it seems that this code is not accepted anymore. Help needed!!

    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Need one abap program.....pls help

    Hi all,
    i have need one ABAP program , which can dispaly how many same number of charecter are there.
    ex : my input is  suresh.
    output is,,,
    2 - s
    1 - u
    1 - r
    just like that..
    pls help me..
    thanks in advance.
    indu

    Hello
    Try this:
    data: string(100),
          length type i.
    data: begin of itab occurs 0,
          chart,
          count type i,
          end of itab.
    string = 'suresh'.
    length = strlen( string ).
    do length times.
      length = length - 1.
      clear itab.
      itab-chart = string+length(1).
      itab-count = 1.
      collect itab.
    enddo.
    loop at itab.
      write: itab-chart, itab-count. new-line.
    endloop.

Maybe you are looking for