Error while executing Servlet. java.lang. (Error in loading Specific Driver

Hi all,
I am getting the following error while running the servlet.
Error:
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver,
The above error arise while I try to access a data from the database table using servlet through browser, but the same driver works well in jdbc program(jdbc alone).
Here is how I am load the driver:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con=DriverManager.getConnection("jdbc:microsoft:sqlserver://NODE1:1433","**","**");
con.setCatalog("senthil");
Here is my software specification:
Tomcat5.5.26,
MS SQL Server 2000 Driver.
Looking forward to your reply,
Thanks in advance,
Senthil.

Hi,
Thanks for your reply.
Yes, I am using the Eclipse IDE, and it doesn't shows any error while I save the servlet source file.
Please find the below source code:
*1. JDBC program to retrive data from the database table: No issue works well.*
The below source code works well and I used it to retrive the data from the database table using the jdbc.Here there is no problem, the source code works well.
package pak;
import java.sql.*;
import java.io.*;
class UserDataDemo
     public static void main(String args[])
          Connection con;
          ResultSet result;
          try
               Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
               con=DriverManager.getConnection("jdbc:microsoft:sqlserver://NODE1:1433","user_name","password");
               con.setCatalog("datadase_name");
               Statement stat=con.createStatement();
               result=stat.executeQuery("select * from table_name");
               while(result.next())
                    System.out.println("**************************************");
                    System.out.println("Name :"+result.getString(1));
                    System.out.println("Company :"+result.getString(2));
                    System.out.println("Position:"+result.getString(3));
                    System.out.println("Emp Id :"+result.getInt(4));
                    System.out.println("Place :"+result.getString(5));
          catch(Exception e)
               System.out.println(e);
*2.Issue: Servlet program used to retrive data from the data base table through jdbc:*
Here I am getting above said error : java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
Please note, here I dosen't get any compile time error(i.e, eclipse ide doesn't shows any error while saving this file).
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class ServletTest extends HttpServlet
     String name;
     ResultSet result;
     PrintWriter pw;
     public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
          Connection con;
          try
               res.setContentType("text/html");
               pw=res.getWriter();
               Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
               con=DriverManager.getConnection("jdbc:microsoft:sqlserver://NODE1:1433","user_name","password");
               con.setCatalog("database_name");
               Statement stat=con.createStatement();
               result=stat.executeQuery("select * from table_name");
               while(result.next())
                    pw.println(result.getString(1));
          catch(Exception e)
               pw.println(e);
Also please note, I have no problem in running the servlet alone.
Looking forward to your reply,
Thanks,
Senthil.

Similar Messages

  • Getting error while executing workflow: java.lang.OutOfMemoryError.

    Hi,
    I am getting the below error while executing the unassigment workflow on AD resource having 160 user objects.
    java.lang.OutOfMemoryError.
    Please provid your inputs on this.
    Your help wolud be appriciated.
    Thanks
    Renuka.

    Well, if you're getting an out of memory exception then your memory settings are too low. Odds are there's a period of activity where the memory usage spikes above what you've configured for the VM.

  • Error while executing Servlet.

    Hi all,
    I am getting the following error while running the servlet.
    Error:
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver,
    The above error arise while I try to access a data from the database table using servlet through browser, but the same driver works well in jdbc program(jdbc alone).
    Here is how I am load the driver:
    Class.+forName+("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con=DriverManager.+getConnection+("jdbc:microsoft:sqlserver://NODE1:1433","**","**");
    con.setCatalog("senthil");
    Here is my software specification:
    Tomcat5.5.26,
    MS SQL Server 2000 Driver.
    Looking forward to your reply,
    Thanks in advance,
    Senthil.

    Hi all,
    This is an corrcted version of the above topic. Please find the correction in the Driver connection,
    Class.forName('com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://NODE1:1433","**","**");
    con.setCatalog("senthil");
    Thanks,
    Senthil.
    Edited by: SenthilJansi on Mar 21, 2008 10:36 PM

  • Error while executing HelloWorld.java program

    Hi All,
    I am trying to execute the samples(HelloWorld.java) program from Jdeveloper and provided the following details in runtime.defaults:
    CONTENT_DB_URL
    ADMIN_USER_NAME
    ADMIN_USER_PASSWORD
    however getting the following exception:
    FdkException:
    Error Code: ORACLE.FDK.UnexpectedError
    Detailed Error Code: ORACLE.FDK.FeatureNotEnabled
    Trace Id:
    info (NamedValue[]): null
    can any one please help me to resolve this issue.
    Thanks
    Krrish.

    See the Cleartext Authentication note in the running_client_samples.html file of the CDB devkit.
    The default configuration for an out-of-box Oracle Content DB installation allows Cleartext Authentication only if SSL has been enabled (and the Web Services connection string begins with https). See the authentication topic for details.
    To allow Cleartext Authentication to take place over standard (non-SSL) HTTP, set the Oracle Content DB domain property IFS.DOMAIN.WS.CleartextAuthenticationRequiresHttps to false using Enterprise Manager (Application Server Control). See the Content DB Administration Guide for details.
    If the domain property above is not modified to false and Cleartext Authentication is attempted using using standard HTTP, an FdkException will be thrown:
    ORACLE.FDK.UnexpectedError : ORACLE.FDK.FeatureNotEnabled
    cheers
    Matt.

  • Error while executing a java command

    Hi,
    When i am trying to excute the below i am geeting the error message
    Can some please help me in resolving this
    Command executed:
    java -jar eulbuilder.jar -connect user/a_password@instance
    Error:
    Picked up JAVAOPTIONS: -Dawt.toolkit=mercury.awt.awtSW -Xrunmicsupp -Xbootclas
    spath/a:C:\PROGRA~1\COMMON~1\MERCUR~1\SHARED~1\JAVAAD~1\classes;C:\PROGRA~1\COMM
    ON~1\MERCUR~1\SHARED~1\JAVAAD~1\classes\mic.jar
    Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    -------------------------------------------

    dhilip wrote:
    Hi
    Execute this command "set CLASSPATH=./classes12.jar; " from your command prompt and then execute your jar.
    Thanks & Regards
    dhilipThere is so much so wrong with this "advice". For one thing the OP is not having a classpath issue. For another, it appears your "solution" to classpath issues is to try and use an Oracle JDBC driver... which is ... odd.
    You should at the very least investigate what the classpath is and how it works. Adding Oracle (or any other) JDBC jars to your classpath is not a magical solution to a classpath issue. Which again the OP isn't having anyway.

  • Error while executing servlet through a HyperLink.

    Hi
    When i am trying to execute a servlet through the HyperLink using this statement
    where CallStatusDetailsAssign is my servlet.then i am getting this error :
    The Following is the Alert Message.
    1. Microsoft InterNet Explorer
    http://localhost:8080/examples/servlets/CallStatusDetails?Call_ID=1&EMP_NO=1
    ** Download of the specified Resource has failed.
    & also getting this error:
    2. IE Cannot open the Internet Site
         ** Operation has been Cancelled.
    If i refresh the screen by clicking on refresh button in the Internet Explorer.the Page is getting displayed properly.
    Is there any problem with my servlet code ??or some other Problem.
    Can Anyone Please help me on this & give me the Solution for my Problem.
    Rashmi

    I'm not sure if this is cause of your problem but the anchor tag should look like this:
    some text</ a>
    ... in the code the quotes are missing
    spieler

  • "BAD packet signature 18245" :error while executing servlet

    i am running a servlet under jakarta-tomcat-4.1.24...the server is crashing giving the error "BAD packet signature 18245",unable to process header ..help me out plzz,,

    Hi, I have the same problem and yes I'm running mod_jk on apache. Anybody knows the solution?
    Our problem is that we have a load balancing solution for webservices (axis), using mod_jk, which works for lets say about 5 hours after that the services become unavailable (wsdl still reachanble by the browser, but unreachable/unusable form the applications using teh webservices).
    Sometimes the tomcat crashes and this Exception appears in its logs.
    Thanks for any help in advance.

  • Error while executing  tcode FSE2 "Internal error in program SAPLFIBS no 5"

    I am getting below error which while trying to execute tcode FSE2 (Financial statement version). Can't able even go inside the tcode.  Please tell how to solve this.
    "Internal error in program SAPLFIBS number 5"

    Hi Dsr,
    Use transaction code <b>OB58</b>->Highlight the Fin. Stmt. version you want to Change and click on the <b>Display</b> icon.->Next, click on the "<b>Fin.Statement items</b>" icon on the application tool bar. You can then expand and carry out your update as appropriate.
    If you do not have the prerequisite authorisations, you wouldn't be able to do this.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

  • Cube engine: Error while executing manage

    Since my last changes at the bpel process, i am getting the following serious error, even after restarting and fresh deploying.
    <2004-10-27 17:32:37,528> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube engine": Error while executing manage.
    An error has occurred while attempting to execute the method "manage" on the work manager for node "BpRcv1". The exception reported was: "".
    <2004-10-27 17:32:37,528> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.PerformMessage"; the exception is: Error while executing manage.
    An error has occurred while attempting to execute the method "manage" on the work manager for node "BpRcv1". The exception reported was: "".
    When I turn debugging on, I can see a NPE:
    <2004-10-27 18:03:34,459> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::checkManageScope> Found highest dirty scope 'BpTry0.2'
    <2004-10-27 18:03:34,459> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::manageScope> Managing scope 'BpTry0.2' on cube instance '150'
    <2004-10-27 18:03:34,469> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::manageScope> Can activate node 'BpRcv1' with scope 'BpSeq3.13'
    <2004-10-27 18:03:34,469> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::manageScope> failed to manage scope
    java.lang.NullPointerException
    at com.collaxa.cube.engine.ext.wmp.BPELMailReceiveWMP.__getDelay(BPELMailReceiveWMP.java:120)
    at com.collaxa.cube.engine.ext.wmp.BPELMailReceiveWMP.manage(BPELMailReceiveWMP.java:62)
    at com.collaxa.cube.engine.CubeEngine.manageScope(CubeEngine.java:3161)
    at com.collaxa.cube.engine.CubeEngine.checkManageScope(CubeEngine.java:4830)
    at com.collaxa.cube.engine.CubeEngine.finalizeActivity(CubeEngine.java:3699)
    at com.collaxa.cube.engine.CubeEngine.checkBlockConditions(CubeEngine.java:4605)
    at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3372)
    at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1698)
    What to do ???
    (I am using OC4J with 2.0.10 on W2k.)
    Wolfgang

    Just another reminder, apart from configuring the incoming (say POP3) server correctly, in order for a receive "onMessage" operation work in a POP3 email partner, a "subscribe" operation must be performed on the same partner link first.
    Here is a working example:
    <assign>
    <copy>
    <from>
    <subscription xmlns="http://services.oracle.com/bpel/mail">
    <mailAccount>kaugen-mail</mailAccount>
    <filter>from='[email protected]'</filter>
    </subscription>
    </from>
    <to variable="subscriptionRequest" part="payload"/>
    </copy>
    </assign>
    <invoke name="subscribe" partnerLink="MailService"
    portType="mail:MailService"
    operation="subscribe" inputVariable="subscriptionRequest"/>
    <receive name="receiveResult" createInstance="no"
    partnerLink="MailService" portType="mail:MailServiceCallback"
    operation="onMessage" variable="message"/>
    Thanks!
    And, I totally agree that we need to improve our error handling and messages.
    Regards,
    Alex Yiu

  • Error while executing agent.  ORABPEL-05006

    Hi:
    I have a bpel process waiting until a DbAdapter (with one Wait Activity) reads a record on database, but the problem is :
    - The record is in the database
    - The DbAdapter read it but the process don´t continue.
    - If the process is monitored by the Bpel Console it seems like it is waiting for the expiration of the wait activity, but the expiration time is reached.
    When i restart the OC4J_BPEL the process that was waiting , continues.
    i was looking the log file of the oc4j and it throws the following exception, could anybody help me??
    Thanks
    Santiago Velez.
    <2006-11-08 13:43:26,871> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/data2/middle/integration/orabpel/domains/default/tmp/.bpel_PG-ComunicacionATC_1.0.jar/InsertaAtcsComunicados.wsdl [ InsertaAtcsComunicados_ptt::insert(AtcsComunicadosCollection) ] - Using JCA Connection Pool - max size = <unbounded>
    <ExpirationJob::execute> Error while executing agent.
    An error occured while attempting to execute the job "111499-BpWai0-BpSwt1.22-1" for agent "scheduler". The exception reported was : Dispatcher schedule error.
    An error occurred while scheduling a batch message with the dispatcher. The exception is: Failed to create "ejb/collaxa/system/DispatcherBean" bean; exception reported is: "javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads
    at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:34)
    at com.evermind.naming.FilterContext.lookup(FilterContext.java:138)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.collaxa.cube.engine.util.EngineBeanRegistry.lookupDispatcherBean(EngineBeanRegistry.java:137)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.scheduleRemote(DispatchHelper.java:348)
    at com.collaxa.cube.engine.agents.ExpirationAgent$ExpirationJob.execute(ExpirationAgent.java:417)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:141)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:281)
    ORABPEL-05006
    Dispatcher schedule error.
    An error occurred while scheduling a batch message with the dispatcher. The exception is: Failed to create "ejb/collaxa/system/DispatcherBean" bean; exception reported is: "javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads
    at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:34)
    at com.evermind.naming.FilterContext.lookup(FilterContext.java:138)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.collaxa.cube.engine.util.EngineBeanRegistry.lookupDispatcherBean(EngineBeanRegistry.java:137)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.scheduleRemote(DispatchHelper.java:348)
    at com.collaxa.cube.engine.agents.ExpirationAgent$ExpirationJob.execute(ExpirationAgent.java:417)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:141)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:281)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.scheduleRemote(DispatchHelper.java:354)
    at com.collaxa.cube.engine.agents.ExpirationAgent$ExpirationJob.execute(ExpirationAgent.java:417)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:141)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:281)

    anybody have comments on this????????????

  • Error while executing the application

    Hi Friends,
    I am getting error while executing the application.The error is
    "javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback."
    Can anybody help me..
    Thanks in advance.

    You need to step through a debugger and find the source of your problem as something is clearly going wrong and causing the transaction to roll back. That is all that message tells us.
    m

  • Error while executing report : Error in program CL_RSR_RRK0_CURR

    Hi Gurus,
    I am getting an error while executing a report.This error is only for one date seletion. For other selections report runs fine.Below is the error description & long text.
    Please let me know if you have any solution on this.
    A System error in program CL_RSR_RRK0_CURR and form FILL_CUDIM_02-04.
    System error in program CL_RSR_RRK0_CURR and form FILL_CUDIM_02-04- (see long text)
    Message no. BRAIN299
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not
    permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in
    the planning modeler, and if you can reproduce this termination, record a trace (transaction
    RSTT).
    For more information about recording a trace, see the documentation for the trace tool
    environment as well as SAP Note 899572
    Thanks,
    Prasanna N.

    Hi Prasanna,
                 Check the below SAp Note:
    SAP Note : 1030657
    Thanks,
    Vijay.

  • Error while executing LUW in SM58 - Mess.No.SY359

    hi,
    error while executing LUW in SM58
    Error. Mess.No.SY359
    "Function module does not exist or EXCEPTION raised-sy359"
    trfc has been configured and try to push the Idoc through SM58 need help on this.
    Regards
    Leo

    Hi,
    This error is related to RFC settings and also the logon group in RZ12
    Kindly generate the appropriated logon groups and confirm if the idocs are flowing
    Thanks

  • Error while executing function

    hiii all,
    hope doing welll
    iam getting error while executing the function and error is
    ORA-00932: inconsistent datatypes: expected NUMBER got AMPLEX_GRAND1.SYS_PLSQL_75185_9_1

    hii sir this is my function
    create or replace
    FUNCTION FnFetchEmployeesforjobsheet
    v_user_id IN NUMBER
    RETURN FnFetchEmployeesforjobshee_pkg.tt_v_employees_type PIPELINED
    AS
    --declare @manager as int
    v_empid VARCHAR2(20);
    v_compid VARCHAR2(20);
    v_temp NUMBER(1, 0) := 0;
    v_temp_1 SYS_REFCURSOR;
    v_temp_2 TT_V_EMPLOYEES%ROWTYPE;
    BEGIN
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 0
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    BEGIN
    SELECT Emp_ID
    INTO v_empid
    FROM User_List
    WHERE USER_ID = v_user_id;
    SELECT Comp_ID
    INTO v_compid
    FROM Employee
    WHERE Emp_ID = v_empid;
    INSERT INTO tt_v_employees
    ( SELECT DISTINCT Emp_id ,
    v_user_id
    FROM employee
    WHERE Comp_ID = v_compid );
    END;
    END IF;
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 2
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    BEGIN
    INSERT INTO tt_v_employees
    ( SELECT e.Emp_ID ,
    v_user_id
    FROM employee e
    JOIN user_list ul
    ON ul.Emp_ID = e.Emp_ID
    WHERE USER_ID = v_user_id );
    END;
    END IF;
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE EXISTS ( SELECT 1
    FROM user_list
    WHERE Access_level = 1
    AND USER_ID = v_user_id );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    DECLARE
    v_Emp_id VARCHAR2(50);
    BEGIN
    SELECT e.Emp_id
    INTO v_Emp_id
    FROM employee e
    JOIN user_list ul
    ON ul.Emp_ID = e.Emp_ID
    WHERE USER_ID = v_user_id;
    --insert @employees select e.Emp_id,User_ID from employee e inner join user_list ul on ul.Emp_ID = e.Emp_ID   
    --where User_ID = @user_id
    --insert @employees select  Emp_ID from User_List where User_Id=@user_id
    INSERT INTO tt_v_employees
    ( Emp_ID )
    VALUES ( v_Emp_id );
    INSERT INTO tt_v_employees
    --select Emp_ID,@user_id from employee  where Emp_ID = @Emp_id   
    --union    
    SELECT Emp_ID ,
    v_user_id
    FROM employee
    WHERE Managerid = v_Emp_id
    AND STATUS = 1 );
    END;
    END IF;
    OPEN v_temp_1 FOR
    SELECT *
    FROM tt_v_employees;
    LOOP
    FETCH v_temp_1 INTO v_temp_2;
    EXIT WHEN v_temp_1%NOTFOUND;
    PIPE ROW ( v_temp_2 );
    END LOOP;
    END;
    and my table is
    CREATE GLOBAL TEMPORARY TABLE tt_v_employees
    Emp_ID VARCHAR2(8) ,
    USER_ID NUMBER(10,0)
    and i am executing this function ,like this
    select FnFetchEmployeesforjobshee_pkg.FnFetchEmployeesforjobsheet('1') from dual; and getting this error
    SQL Error: ORA-00904: "FNFETCHEMPLOYEESFORJOBSHEE_PKG"."FNFETCHEMPLOYEESFORJOBSHEET": invalid identifier
    00904. 00000 - "%s: invalid identifier"

  • Errors while executing bapi_po_create1

    Hi experts,
    I am getting errors while executing bapi_po_create1.
    The errors are -
    1. No instance of object type purchaseorder has been created.External reference
    2.Purchase order still contain faulty item
    Please help <removed by moderator>.
    Thanks
    Sahil
    Edited by: Thomas Zloch on Sep 14, 2010 2:30 PM

    Hi,
    Check this code it may help you.
    DATA:
    W_BAPIMEPOHEADER TYPE BAPIMEPOHEADER,
    W_BAPIMEPOHEADERX TYPE BAPIMEPOHEADERX,
    T_BAPIRET2        TYPE STANDARD TABLE OF BAPIRET2
                       WITH HEADER LINE,
    T_BAPIMEPOITEM    TYPE STANDARD TABLE OF BAPIMEPOITEM
                       WITH HEADER LINE,
    T_BAPIMEPOITEMX   TYPE STANDARD TABLE OF BAPIMEPOITEMX
                       WITH HEADER LINE,
    T_POSCHEDULE      TYPE STANDARD TABLE OF BAPIMEPOSCHEDULE
                          WITH HEADER LINE,
    T_POSCHEDULEX     TYPE STANDARD TABLE OF BAPIMEPOSCHEDULX
                      WITH HEADER LINE.
    W_BAPIMEPOHEADER-COMP_CODE = '1000'.
    W_BAPIMEPOHEADER-DOC_TYPE = 'NB'.
    W_BAPIMEPOHEADER-CREAT_DATE = SY-DATUM.
    W_BAPIMEPOHEADER-CREATED_BY = SY-UNAME.
    W_BAPIMEPOHEADER-ITEM_INTVL = '00010'.
    W_BAPIMEPOHEADER-VENDOR = '0000300001'.
    W_BAPIMEPOHEADER-LANGU = SY-LANGU.
    W_BAPIMEPOHEADER-PMNTTRMS = '0001'.
    W_BAPIMEPOHEADER-PURCH_ORG = '1000'.
    W_BAPIMEPOHEADER-PUR_GROUP = '100'.
    W_BAPIMEPOHEADER-CURRENCY = 'INR'.
    W_BAPIMEPOHEADER-DOC_DATE = SY-DATUM.
    W_BAPIMEPOHEADER-VPER_START = '20100728'.
    W_BAPIMEPOHEADER-VPER_END = '20100828'.
    W_BAPIMEPOHEADERX-COMP_CODE = 'X'.
    W_BAPIMEPOHEADERX-DOC_TYPE = 'X'.
    W_BAPIMEPOHEADERX-CREAT_DATE = 'X'.
    W_BAPIMEPOHEADERX-CREATED_BY = 'X'..
    W_BAPIMEPOHEADERX-ITEM_INTVL = 'X'.
    W_BAPIMEPOHEADERX-VENDOR = 'X'.
    W_BAPIMEPOHEADERX-LANGU = 'X'.
    W_BAPIMEPOHEADERX-PMNTTRMS = 'X'.
    W_BAPIMEPOHEADERX-PURCH_ORG = 'X'.
    W_BAPIMEPOHEADERX-PUR_GROUP = 'X'.
    W_BAPIMEPOHEADERX-CURRENCY = 'X'.
    W_BAPIMEPOHEADERX-DOC_DATE = 'X'.
    W_BAPIMEPOHEADERX-VPER_START = 'X'.
    W_BAPIMEPOHEADERX-VPER_END = 'X'.
    T_BAPIMEPOITEM-PO_ITEM  =     '00010'.
    T_BAPIMEPOITEM-MATERIAL =     '000000001002000031'.
    T_BAPIMEPOITEM-PLANT =     '1000'.
    T_BAPIMEPOITEM-QUANTITY =     '10'.
    T_BAPIMEPOITEM-PO_UNIT =     'NOS'.
    T_BAPIMEPOITEM-NET_PRICE = '120.00'.
    T_BAPIMEPOITEM-INFO_UPD ='X'.
    T_BAPIMEPOITEM-PRICE_UNIT = '1'.
    T_BAPIMEPOITEM-TAX_CODE =     'VE'.
    APPEND T_BAPIMEPOITEM.
    T_BAPIMEPOITEMX-PO_ITEM = '00010'.
    T_BAPIMEPOITEMX-PO_ITEMX  =     'X'.
    T_BAPIMEPOITEMX-MATERIAL =     'X'.
    T_BAPIMEPOITEMX-PLANT =     'X'.
    T_BAPIMEPOITEMX-QUANTITY =     'X'.
    T_BAPIMEPOITEMX-PO_UNIT =     'X'.
    T_BAPIMEPOITEMx-NET_PRICE = 'X'.
    T_BAPIMEPOITEMX-INFO_UPD ='X'.
    T_BAPIMEPOITEMX-PRICE_UNIT = 'X'.
    T_BAPIMEPOITEMX-TAX_CODE =     'X'.
    APPEND T_BAPIMEPOITEMX.
    T_POSCHEDULE-PO_ITEM          = '00010'.
    T_POSCHEDULE-SCHED_LINE        = '0001'.
    T_POSCHEDULE-DEL_DATCAT_EXT    = 'D'.
    T_POSCHEDULE-DELIVERY_DATE     =  '09.09.2010'.
    T_POSCHEDULE-QUANTITY          = '10'.
    APPEND T_POSCHEDULE.
    T_POSCHEDULEX-PO_ITEM = '00010'.
    T_POSCHEDULEX-SCHED_LINE = '0001'.
    T_POSCHEDULEX-PO_ITEMX = 'X'.
    T_POSCHEDULEX-SCHED_LINEX = 'X'.
    T_POSCHEDULEX-DEL_DATCAT_EXT = 'X'.
    T_POSCHEDULEX-DELIVERY_DATE = 'X'.
    T_POSCHEDULEX-QUANTITY  = 'X'.
    APPEND T_POSCHEDULEX.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     =  W_BAPIMEPOHEADER
        POHEADERX                    =  W_BAPIMEPOHEADERX
    TABLES
       RETURN                       = T_BAPIRET2[]
       POITEM                       = T_BAPIMEPOITEM[]
       POITEMX                      = T_BAPIMEPOITEMX[]
       POSCHEDULE                   = T_POSCHEDULE[]
       POSCHEDULEX                  = T_POSCHEDULEX[].
    IF SY-SUBRC = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    ENDIF.
    LOOP AT T_BAPIRET2.
    WRITE: /
    T_BAPIRET2-TYPE ,
    T_BAPIRET2-ID,
    T_BAPIRET2-NUMBER,
    T_BAPIRET2-MESSAGE,
    T_BAPIRET2-LOG_NO,
    T_BAPIRET2-LOG_MSG_NO,
    T_BAPIRET2-MESSAGE_V1,
    T_BAPIRET2-MESSAGE_V2,
    T_BAPIRET2-MESSAGE_V3,
    T_BAPIRET2-MESSAGE_V4,
    T_BAPIRET2-PARAMETER,
    T_BAPIRET2-ROW,
    T_BAPIRET2-FIELD,
    T_BAPIRET2-SYSTEM.
    WRITE: / '----
    ENDLOOP.
    Regards,
    Jagadeesh T.

Maybe you are looking for

  • Images are not reflecting in Multi Level Menu

    Hi, i am facing some problem in the Multi Level Menu. i have created a book in my portal application. For the "Main Page Book" i am setting "Multi Level Menu" For the Book with in the menu, i am setting "No Navigation"(to avoid the sub pages displayi

  • Error description not available

    Getting the error message in my OH iPad when trying to setup iMessage and FaceTime to use her icloud.com account. Can anyone suggest anything, please? 10wickets

  • Problems printing CD jewel case

    iTunes refuses to list the track names when I try to print a CD jewel case insert.  This is on iTunes version 11.0.2.26 running on Windows 7.  I had no problems printing CD inserts on earlier versions of iTunes.  Any suggestions? Thanks, Cindy

  • Solution Manager for Deploy, Test, Trace....

    Hi All, We have developed some custom java based components. I want to know how can we use the <b>Solution Manager</b> to do the following; <b>Deploy, Test, Trace, Performance tuning and trouble shooting..</b> Where can i find Solution Manager docume

  • SPOOL function help

    Hi, I have a file upload2.sql that contains sql exec procedures, something like this: WHENEVER SQLERROR exit 1; SPOOL D:\STARS\Download\SQL\upload2.log exec DUP_ADDR_CHECK; exec PopulateBulletAddr; exec PopulateSurveyAcct; exec BUILD_CALL_REC_DL; and