Classpath seetings for Executing J2EE

I am started my new J2EE project. But i am struck on the Classpath setting.. Whenever i run the "ant" tool it is showing "unable to locate tools.jar". But i mention the folder name in J2ee_Home.. Eventhough it is showing problem.. What's the actual settings i have to be made!!!
Please held me in this regard at the earliest.

I am having the same problem:
I followed the instructions per the tutorial:
Apache Ant
Ant is a Java technology-based build tool developed by the Apache Software Foundation (http://ant.apache.org), and is used to build, package, and deploy the tutorial examples. Ant is included with the Application Server. To use the ant command-line tool add <JAVAEE_HOME>/lib/ant/bin to your PATH environment variable.
Building the Examples
The tutorial examples are distributed with a configuration file for ant or asant, a portable build tool contained in the Application Server. This tool is an extension of the Ant tool developed by the Apache Software Foundation (http://ant.apache.org). The asant utility contains additional tasks that invoke the Application Server administration utility asadmin. Directions for building the examples are provided in each chapter. Either ant or asant may be used to build, package, and deploy the examples.
Build properties common to all the examples are specified in the <INSTALL>/javaeetutorial5/examples/bp-project/build.properties file. This file must be created before you run the examples. We've included a sample file <INSTALL>/javaeetutorial5/examples/bp-project/build.properties.sample that you should rename to <INSTALL>/javaeetutorial5/examples/bp-project/build.properties and edit to reflect your environment. The tutorial examples use the Java BluePrints (http://java.sun.com/reference/blueprints/) build system and application layout structure.
To run the ant scripts, you must set common build properties in the file <INSTALL>/javaeetutorial5/examples/bp-project/build.properties as follows:
Set the javaee.home property to the location of your Application Server installation. The build process uses the javaee.home property to include the libraries in <JAVAEE_HOME>/lib/ in the classpath. All examples that run on the Application Server include the Java EE library archive--<JAVAEE_HOME>/lib/javaee.jar--in the build classpath. Some examples use additional libraries in <JAVAEE_HOME>/lib/; the required libraries are enumerated in the individual technology chapters. <JAVAEE_HOME> refers to the directory where you have installed the Application Server.
etc., but received the same error message: "Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_06\lib\tools.jar
The ant website is of no help since it does not address the specific java EE environment, where ant is supposedly integrated into AppServer 9.

Similar Messages

  • Error executing J2EE server

    When I try to run the J2EE server, I get an error saying "ERROR executing J2EE server" with the following system.err file: Does anyone know what I need to do ? Thanks.
    Logging for J2EE Server Version: 1.3.1-b17 started at: Sat Nov 01 11:12:21 EST 2003..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.2_01 from Sun Microsystems Inc..
    VM is using the classpath: C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tools.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\classes;C:\j2sdkee1.3.1\classes;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\toolclasses;C:\j2sdkee1.3.1\lib\j2eetools.jar;C:\j2sdkee1.3.1\lib\locale;;C:\j2sdk1.4.2_01\lib\tools.jar;C:\j2sdkee1.3.1\lib\jhall.jar .
    J2EE Home Directory has been set to: C:\j2sdkee1.3.1.
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1007)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:690)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1088)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:37)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Error executing J2EE server ...

    I found out that when I disable my anti-virus software that I was able to bringup the J2EE server. I am using J2sdk1.4.2_01 and J2sdkee1.3.1.

  • Error Executing J2EE server PLZ help

    Hi All
    Im using Windows 2003 professional J2SDK 1.3.0, J2SDKEE1.2.1
    Please help me in this...can't able to start the server.
    When I gave j2ee -verbose, it gave the following result.
    D:\>j2ee -verbose
    J2EE server Listen Port: = 1049
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:373)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORBInitialPort(ORBManager.java:
    80)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:375)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:74)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:377)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    java.lang.NullPointerException
    at com.sun.enterprise.iiop.POAProtocolMgr.<init>(POAProtocolMgr.java:84)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:237)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    java.lang.RuntimeException
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:348)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    Error executing J2EE server ...
    Then if i try to stop the server by j2ee -stop ....the following happens
    D:\>j2ee -stop
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:36)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:117)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:762)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:830)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:74)
    at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:37)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:117)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:762)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:830)
    Unable to shutdown the J2EE server.
    D:\>
    Please help me in this regard ...
    Thanking you in advance..

    Please help me guys Im really waiting for the solutiion to the problem

  • RFC Connection error in SM59 for SAP J2EE

    Hi All,
    i am getting the following error description while testing the connection for
    SAP J2EE ...
    Connection Test SAPJ2EE  
    Connection Type TCP/IP Connection  
    Logon              Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: program sapfallback not registered
    Error Details     LOCATION: SAP-Gateway on host filip / sapgw00
    Error Details     DETAIL: TP sapfallback not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 1483
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1694
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Tue Mar 31 02:44:35 2009
    Error Details     VERSION: 2
    Help me resolve this
    Regards,
    Mahesh.

    Hi,
    Please follow this steps:
    Creating RFC Destinations in the ABAP and Java Environment
    You need to create the following RFC destinations in transaction SM59 (ABAP) and the Visual Administrator (Java):
    u2022 AI_RUNTIME_JCOSERVER
    u2022 AI_DIRECTORY_JCOSERVER
    u2022 LCRSAPRFC
    u2022 SAPSLDAPI
    Depending on your client settings, it may be necessary to be logged on your SAP Exchange Infrastructure host as SAP system user with the authorization to maintain customizing tables and to release transport orders. Note, that user "SAP*" or "DDIC" does not have these authorizations.
    Maintaining the RFC Connections (Transaction SM59)
    1. Log on to your SAP Exchange Infrastructure central instance host.
    2. Call transaction SM59.
    3. Choose Create.
    4. Enter at least the following:
    RFC destination: AI_RUNTIME_JCOSERVER
    Connection type: T
    Description: <your description>
    5. Choose ENTER
    6. Choose the tab Technical settings and do the following:
    a. Select Registered Server Program
    b. In the Program ID field, enter: AI_RUNTIME_<SID> where <SID> is the SAP system ID of your Integration Server host. Use uppercase letters only.
    c. Enter Gateway host and Gateway service of your Integration Server host. To find out the required parameters:
    a. On the Integration Server host, call transaction SMGW
    b. Choose Goto u2192 Parameters u2192 Display (see entries for gateway hostname and gateway service)
    7. Choose tab Special Options and select the flag Unicode in the box Character Width in Target System.
    8. Save your settings.
    9. Repeat the steps 3 u2013 8 for the remaining destinations:
    Destination
    Values
    AI_DIRECTORY_JCOSERVER
    Program ID: AI_DIRECTORY_<SID>, where <SID> is the SAP system ID of your SAP XI host
    LCRSAPRFC
    Program ID: LCRSAPRFC_<SID>, where <SID> is the SAP system ID of your SAP XI host.
    SAPSLDAPI
    Program ID: SAPSLDAPI_<SID>, where <SID> is the SAP system ID of your SAP XI host.
    10. Leave the transaction SM59 open for later tests.
    J2EE Configuration for the Destinations (Visual Administrator)
    1. On your SAP Exchange Infrastructure central instance host, start the J2EE Engine administration tool.
    2. Choose Cluster u2192 Server u2192 Services u2192 JCo RFC Provider
    3. In the section RFC destination, enter exactly the same program ID and gateway options for AI_RUNTIME_JCOSERVER that you used in the step Maintaining the RFC connection above. Additionally, set the number of processes to 10.
    4. In the section Repository, do the following:
    a. Enter the parameter for the SAP XI host: Application Server, System Number, Client and Language.
    b. For User and Password maintain the login parameters for the user SAPJSF.
    c. Select the flag Unicode.
    6. Choose Set.
    7. Repeat the steps 3 u2013 6 for the remaining destinations:
    Destination
    Values
    AI_DIRECTORY_JCOSERVER
    u2022 Corresponding values from SM59
    u2022 Number of processes: 10
    LCRSAPRFC
    u2022 Corresponding values from SM59
    u2022 Number of processes: 3
    SAPSLDAPI
    u2022 Corresponding values from SM59
    u2022 Number of processes: 3
    Testing the RFC Destination
    After you have maintained all RFC destinations in both the ABAP and Java environment, you can check all the connections above as follows:
    1. Call transaction SM59 again.
    2. Open your RFC destination.
    3. Choose Test Connection. No error should be displayed.
    This will solve your problem.
    Thanks
    Laxmi Bhushan

  • Need a Syatem variable for Executing the report by RFC.

    Hi Experts,
    Need a Syatem variable for Executing the report by RFC.
    what i mean to say is,i can execure the report directly ...then no issues.
    But if i execute the Report by RFC ,then i should put a condition with system variable...
    Please suggest me ,how can put a condition when i am executing the report through RFC.
    Thanks
    Babu

    Hello Friend,
    what I understood that you want to put some extra condition if that report is getting called from RFC...
    you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
    but when it is getting executed therough RFC...it will hold that RFC name...
    Thanks
    Krish

  • How to create one more server node for SAP J2EE server?

    Hi,
    Can any one please suggest how to create one more server node for SAP J2EE server? I am using WAS700.
    Thanks and Regards,
    Smriti.

    Hai,
          Login into the Configtool(C:\usr\sap\SID\DVEBMGS<inst no>\j2ee\configtool) if ABAP+JAVA stack or C:\usr\sap\SID\JC<inst no>\j2ee\configtool) if JAVA stack
    click on the instance and and select the addserver button on the top to create a servernode for J2EE server.
    Thanks and Regards,

  • How to create a password file for executing psadmin command to deploy portl

    how to create a password file for executing psadmin command to deploy portlet

    What you have done is perfectly right. The password file doesn't have anything else apart from the password
    for example in your case
    $echo password > /tmp/password.txt
    However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
    The solution was,
    manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
    HTH

  • How to config the user and role in the runtime for executing in the GP?....

    Hi Experts,
    I am learning GP(Guided processor)according the document
    http://help.sap.com/saphelp_nw70/helpdata/en/44/0d5b8f250d5cfae10000000a155369/frameset.htmneed.
    I meet two question when I learn the GP.
    The first:
    This document don't tell me how to config the member framework of the company.  After I design the GP, I have to config the user and role in the runtime for executing. I hope I can use the WDA(webdynpro for java or webdynpro for java) to implement to config the user for executing in the runtime. Thus, the customer don't config the user when runing the GP. But I don't know how to do this.
    I need a document guide step by step to tell me how to do this.
    The second:
    If I use the workflow in the GP, I have to install and config the NWDI(Netweaver Development Infrastructure). Now I have installed the NWDI, but I don't know config it so that I can download it to my machine for develop the workfolw in the GP.
    Do you give me some hints? Thanks a lot.
    Thank a lot.
    Best regards,
    tao

    Hi, Mithu,
    Thanks a lot for your help in advance.
    I have carefully read the document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b66d7ea-0c01-0010-14af-b3ee523210b5.
    Now, I think I have to set the processor of every actions in every process if I use the GP for processing the workflow.
    I am better to hope that I can set the processor to the role for every actions in every process in the runtime through get the organizational structure in the WDA(webdynpro for java or webdynpro for java). Thus, the customer don't set the processor to the role for every action in every process when runing in the GP.   I don't know how to do this. 
    Whether the function is not supported in the GP? If so, I have to config two organizational structure: in the R/3 and in the Portal. I don't think our customer don't receipt this solution.
    Do you give me some hints? Thanks a lot.  My email: [email protected]
    Thanks again.
    Thanks & Regards,
    Tao

  • Function module/BAPI for executing VD51/VD52 transactions

    Hi
    Warm greetings to all,
    I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this
    Sreekanth

    Hi Sreekanth,
    Use this.
    There is an FM which is used by standard transaction
    'RV_CUSTOMER_MATERIAL_UPDATE' .
    Ex Code -
    CALL FUNCTION 'RV_CUSTOMER_MATERIAL_UPDATE'
    IN UPDATE TASK
    TABLES
    XKNMT_TAB = XKNMT
    YKNMT_TAB = YKNMT
    TCATALOG_TAB = LT_CATALOG.
    commit work.
    Regards,
    Vijay

  • VB code for executing pl/sql procedure, and displaying TABLE OUT parameter

    Does anybody have any sample VB code (using OO4O) for executing a PL/SQL stored procedure, and then displaying (in Excel preferably) the following OUT parameters from the procedure:
    (1) variable(s) of TYPE PL/SQL RECORD
    (2) variable of TYPE PL/SQL TABLE defined as TABLE%ROWTYPE
    (3) n variables of TYPE PL/SQL TABLE'S defined as table.column%TYPE;
    Thanks.

    Here is what we use to bring in arrays of data from plsql. Here will be some sample vba code and plsql.
    What the plsql need to run in an array of input dates and an array of ids to lookup for the dates (also needs the number of values in the arrray.
    vba code...
    Sub Bull()
    Dim oDoc As Object
    Dim oTable As Object
    Dim oCell As Object
    Dim ArrCtr As Integer
    Dim iCount As Integer 'Counter
    Dim DataDynaset As Object 'Dynaset for retrieved values
    Dim DischDataDynaset As Object 'Dynaset for retrieved values
    Dim TWDataDynaset As Object 'Dynaset for retrieved values
    Dim PDDataDynaset As Object 'Dynaset for previous day retrieved values
    Dim MSTssCodes As Variant ' TS Codes Array
    Dim NumRows As Integer 'Number of rows in the table
    Dim NumColumns As Integer 'Number of columns in the table
    Dim NumArrayVals As Integer 'Number of array values (actual number - 1)
    OraLogin
    NumRows = 83
    NumColumns = 11
    'One less than number because we start at 0
    'NumArrayVals = 5
    NumArrayVals = 117
    ReDim DateArr(NumArrayVals)
    MSTssCodes = Array(3398, 3406, 3391, 3385, 3413, 3378, _
    2254, 2254, 2254, _
    3398, 3406, 3391, 3385, 3413, _
    3460, 3455, 3450, 3447, 3505, 3444, 2254, 2254, _
    4974, 2803, 4735, 4719, 2837)
    ****** NOW THIS WILL GET READY TO SEND TO PLSQLGetData MSTssCodes, DateArr, DataDynaset, NumArrayVals + 1
    .... more suff in the sub
    Sub GetData(Tssids, DateArray, TmpDataDynaset, NumRetVals)
    'Retrieves data from the Oracle database
    Dim I As Integer 'Counter
    Dim TssidDynaset As Object 'Temporary array for Tssids
    Dim DateDynaset As Object 'Temporary array for dates
    OraDatabase.Parameters.addTable "TSCODES", 1, 68, NumRetVals, 0
    OraDatabase.Parameters("TSCODES").ServerType = ORATYPE_UINT
    OraDatabase.Parameters.addTable "DATES", 1, 12, NumRetVals, 0
    OraDatabase.Parameters("DATES").ServerType = ORATYPE_DATE
    OraDatabase.Parameters.addTable "VALS", 3, 2, NumRetVals, 0
    OraDatabase.Parameters("VALS").ServerType = ORATYPE_NUMBER
    OraDatabase.Parameters.Add "NUM_VALS", NumRetVals, 3
    OraDatabase.Parameters("NUM_VALS").ServerType = ORATYPE_NUMBER
    OraDatabase.Parameters.Add "ERR_NUM", 0, 2
    OraDatabase.Parameters("ERR_NUM").ServerType = ORATYPE_NUMBER
    Set TssidDynaset = OraDatabase.Parameters("TSCODES")
    Set DateDynaset = OraDatabase.Parameters("DATES")
    'Fill the arrays
    For I = 0 To NumRetVals - 1
    TssidDynaset.Put_Value Tssids(I), I
    DateDynaset.Put_Value DateArray(I), I
    Next I
    OraDatabase.DbExecuteSQL ("Begin DBCALLS.SELECT_VALUES (:TSCODES, :DATES, :VALS, :NUM_VALS, :ERR_NUM); End;")
    If OraDatabase.LastServerErr <> 0 Or OraDatabase.LastServerErrText <> "" Then
    MsgBox "Error Getting Data"
    End If
    Set TmpDataDynaset = OraDatabase.Parameters("VALS")
    'MsgBox (OraDatabase.Parameters("NUM_VALS") & " " & OraDatabase.Parameters("ERR_NUM"))
    OraDatabase.Parameters.Remove "TSCODES"
    OraDatabase.Parameters.Remove "DATES"
    OraDatabase.Parameters.Remove "VALS"
    OraDatabase.Parameters.Remove "NUM_VALS"
    OraDatabase.Parameters.Remove "ERR_NUM"
    End Sub
    Now here is the plsql called from the DBCALL package......
    --Select time series values for give ts_codes.
    PROCEDURE select_values (
    ts_codes IN IntArrayTyp,
    dates IN DateArrayTyp,
    vals IN OUT NumArrayTypIB,
    --quality   IN  OUT RawArrayTyp,
    num_vals IN INTEGER,
    err_num OUT INTEGER) IS
    BEGIN
    --initialize variables
    err_num := 0;
    FOR i IN 1..num_vals LOOP
    BEGIN
    SELECT value INTO vals(i)
    FROM table_name
    WHERE ts_code = ts_codes(i)
    AND date_time = dates(i);
    EXCEPTION
    WHEN OTHERS THEN
    --dbms_output.put_line (ts_codes(i) || ' ' || SQLCODE);
    vals(i) := -1.0;
    err_num := SQLCODE;
    END;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    --dbms_output.put_line (tssid || ' ' || SQLCODE);
    err_num := SQLCODE;
    END select_values;

  • Is there any SAP substitute role to create expense report for executives?

    Hello,
    In an organization there are executives like MD, CEO and they need to submit their expenses. This activity is basically needs to be done by their secretary (substitute). So is there any SAP provided roles to do this activity?
    I have seen SAP_FI_TV_WEB_ASSISTANT used for My Employees/POWL. Apart from this role do we have any other way for executives?
    Appreciate your help.
    Thanks,
    Chandra.

    Hi ,
    You can create travel request from PR05 from ECC or if you have ESS and you want administrators to create on behalf of others provide the below role and you can create from My Employees or you can customize a role specific for administrators using structural authorizations.
    SAP_FI_TV_WEB_ASSISTANT
    Hope this helps,
    Regards,
    S.Srikanth
    Edited by: SrikanthS on May 10, 2011 6:32 AM

  • How to set user specific Layout for executing IW38/IW39  report.

    Dear Experts,
    We have 10 users seperatly, For executing IW38/39 transaction they have maintained seperate layouts for executing the reports. While saving layout they have saved the layout as 'user specific' Now some body has chage the settings.
    After changing the setting all are getting same layout.
    Please suggest how to set user specific layout. When user enter the IW38/39 report by default he should get his layout.
    Thanks in advance.

    Create Variant using SHD0 and with Group and assign to particular user's
    Here is the steps
    Creating a Variant Group
    1. Open transaction SHD0, enter the transaction code, and press enter.
    2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP_GEN
    3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
    Assigning Users
    Once you have created the variant group and the relevant transaction variants with screen variants, you now need to assign users to the variant group as follows
    1. Return to the Standard Variants tab page, Variant Groups sub tab page.
    2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
    3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal. The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
    You can use this procedure of user assignment for all other users that you want to add to the variant group
    Hope this helps.
    Thanks
    S.N

  • No ICF authorization CHECK for executing /sap/bc/bsp/sap/hap_document

    In EP we are trying to access bsp
    and we are getting error ,User T000209 (client 350) has no ICF authorization CHECK for executing /sap/bc/bsp/sap/hap_document
    How to give authorization please help
    venkateswararao

    First Check is the ICF service is active using the SICF transaction.
    Then Check for the authorization objects SAP_HR_HAP_EMPLOYEE
    and SAP_HR_HAP_MANAGER.
    Add the above roles to your user , it should work

  • Function code for execute button

    Hi,
    I have a requirement like this...
    there is a program for selective deletion from a data target by a transaction called delete_facts.
    this generates a program for selective deletion. when i run this report there comes one screen asks for selections fields and then again excute it then deletion will happen.
    But this program i need to modify for certain default values so as to avoid entering of the values in the selection screen.
    i will use default value this will solve my 1st purpose but since this program has to be scheduled from process chain, the 2nd execute funtionality( once the values appear in the screen) shud be automated.
    can anybody tell me how to do this that is after program runs values will be passed to selection screen and selection screen shud not be shown and execute shud happen automatically.
    this is the code generated by transaction delete_facts:
    *& Report  ZTEST_DELETE1
    REPORT  ZTEST_DELETE1.
    generated Header from i_sel_repid
    generated REPORT (RSDRD)
    (should be deleted after use)
    Generated by..: SALAGUN
    Date/Time.....: 20070322 / 051426
    *REPORT GP457FUV92GJS4663HYHXLYC9Q7 .
    generated Tables from i_t_tables
                     and  i_datatarget
    TABLES:
    SSCRFIELDS,
    /BIC/SZTESTBC
    ,/BI0/SCHNGID
    ,/BI0/SRECORDTP
    ,/BI0/SREQUID
    ,/BI0/SDATE
    ,/BI0/SUNIT
    generated DATA/TYPES
    TYPE-POOLS: RSDRD, RSDQ.
    DATA:
      L_INTERACTIVE      TYPE RS_BOOL,
      L_ANSWER(1)        TYPE C,
      L_TYPE(1)          TYPE C,
      L_PARALLEL         TYPE I,
      L_NO_OF_ROWS       TYPE I,
      L_NO_OF_ROWS_C(10) TYPE C,
      L_TITEL            TYPE RS_CHAR72,
      L_TEXT1            TYPE RS_CHAR72,
      L_TEXT2            TYPE RS_CHAR72,
      L_S_RANGE          TYPE RSDRD_S_RANGE,
      L_S_SELTXT         TYPE RSDQ_S_SELTEXT,
      L_SX_SEL           TYPE RSDRD_SX_SEL,
      L_T_MSG            TYPE RS_T_MSG,
      L_THX_SEL          TYPE RSDRD_THX_SEL,
      L_T_SELTXTS        TYPE RSDQ_T_SELTEXT
                              WITH HEADER LINE.
    generated SELECTION-SCREEN from i_t_selscr
    SELECTION-SCREEN BEGIN OF BLOCK B001 WITH FRAME TITLE T001 .
    SELECT-OPTIONS C001 FOR /BIC/SZTESTBC-/BIC/ZTESTBC
    default 'D' TO  'C'.
    SELECTION-SCREEN   END OF BLOCK B001 .
    SELECTION-SCREEN BEGIN OF BLOCK B002 WITH FRAME TITLE T002 .
    SELECT-OPTIONS C002 FOR /BI0/SCHNGID-SID .
    SELECT-OPTIONS C003 FOR /BI0/SRECORDTP-SID .
    SELECT-OPTIONS C004 FOR /BI0/SREQUID-SID .
    SELECTION-SCREEN   END OF BLOCK B002 .
    SELECTION-SCREEN BEGIN OF BLOCK B003 WITH FRAME TITLE T003 .
    SELECT-OPTIONS C005 FOR /BI0/SDATE-DATE0 .
    SELECTION-SCREEN   END OF BLOCK B003 .
    SELECTION-SCREEN BEGIN OF BLOCK B004 WITH FRAME TITLE T004 .
    SELECT-OPTIONS C006 FOR /BI0/SUNIT-UNIT .
    SELECTION-SCREEN   END OF BLOCK B004 .
    SELECTION-SCREEN BEGIN OF BLOCK B005 WITH FRAME TITLE T005 .
    PARAMETERS L_PA TYPE DBMAN_PARALLEL_DEGREE DEFAULT '01'.
    DATA L_P1(1) TYPE C.
    PARAMETERS L_NL TYPE DBMAN_NO_LOGGING AS CHECKBOX DEFAULT ' '.
    PARAMETERS L_SR TYPE DBMAN_SHOW_REPORT AS CHECKBOX DEFAULT ' '.
    SELECTION-SCREEN   END OF BLOCK B005 .
    generated body from i_t_body
    generated INITIALIZATION from i_t_init
                             and  i_t_seltexts
                             and  i_batch_allowed
                             and  i_datatarget
    INITIALIZATION.
    T001 = 'product'.
    T002 = 'Data Package'.
    T003 = 'Time'.
    T004 = 'Unit'.
    T005 = 'Options'.
    SELECTION-SCREEN FUNCTION KEY 1.
    MOVE 'Execute in Bckgrnd' TO SSCRFIELDS-FUNCTXT_01.
    PERFORM RESTRICT_SEL_OPTIONS(SAPLRSDRD).
    SET TITLEBAR 'SELECTION' OF PROGRAM 'SAPLRSDRD' WITH
    ' Delete selected entries from the data target DELETE '.
    L_S_SELTXT-NAME = 'C001'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Base Code'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C002'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Change Run ID (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C003'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Record type (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C004'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Request ID (SID)'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C005'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Calendar Day'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'C006'.
    L_S_SELTXT-KIND = 'S'.
    L_S_SELTXT-TEXT = 'Unit of measure'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_PA'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Parall. deg. during reconstruc'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_NL'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Switch off logging drng recons'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    L_S_SELTXT-NAME = 'L_SR'.
    L_S_SELTXT-KIND = 'P'.
    L_S_SELTXT-TEXT = 'Display generated report'.
    APPEND L_S_SELTXT TO L_T_SELTXTS.
    generated AT SELECTION-SCREEN OUTPUT from i_sel_repid
    AT SELECTION-SCREEN OUTPUT.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
         EXPORTING
              PROGRAM                     =  'GP457FUV92GJS4663HYHXLYC9Q7'
         TABLES
              SELTEXTS                    =  L_T_SELTXTS
         EXCEPTIONS
              PROGRAM_NOT_FOUND           = 1
              PROGRAM_CANNOT_BE_GENERATED = 2
              OTHERS                      = 3.
    generated AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
      WHEN 'ONLI'.
        L_INTERACTIVE = RS_C_TRUE.
      WHEN 'OPTI'.
      WHEN 'DELS'.
      WHEN 'FC01'.
        L_INTERACTIVE = RS_C_FALSE.
        SSCRFIELDS-UCOMM = 'ONLI'.
      WHEN 'OTHERS'.
    ENDCASE.
    generated END-OF-SELECTION from i_t_selopt
                               and  i_del_repid
                               and  i_datatarget
                               and  i_gen_mode
    END-OF-SELECTION.
    IF NOT C001[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = 'ZTESTBC'.
      LOOP AT C001 .
        CLEAR L_S_RANGE.
        MOVE C001-SIGN TO L_S_RANGE-SIGN.
        MOVE C001-OPTION TO L_S_RANGE-OPTION.
        MOVE C001-LOW TO L_S_RANGE-LOW.
        MOVE C001-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C002[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CHNGID'.
      LOOP AT C002 .
        CLEAR L_S_RANGE.
        MOVE C002-SIGN TO L_S_RANGE-SIGN.
        MOVE C002-OPTION TO L_S_RANGE-OPTION.
        MOVE C002-LOW TO L_S_RANGE-SIDLOW.
        MOVE C002-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C002-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C003[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0RECORDTP'.
      LOOP AT C003 .
        CLEAR L_S_RANGE.
        MOVE C003-SIGN TO L_S_RANGE-SIGN.
        MOVE C003-OPTION TO L_S_RANGE-OPTION.
        MOVE C003-LOW TO L_S_RANGE-SIDLOW.
        MOVE C003-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C003-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C004[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0REQUID'.
      LOOP AT C004 .
        CLEAR L_S_RANGE.
        MOVE C004-SIGN TO L_S_RANGE-SIGN.
        MOVE C004-OPTION TO L_S_RANGE-OPTION.
        MOVE C004-LOW TO L_S_RANGE-SIDLOW.
        MOVE C004-HIGH TO L_S_RANGE-SIDHIGH.
        MOVE RS_C_FALSE TO L_S_RANGE-KEYFL.
    start change
        DESCRIBE FIELD C004-LOW TYPE l_type.
        IF l_type = 'I'.
          CONDENSE L_S_RANGE-LOW.
          CONDENSE L_S_RANGE-HIGH.
        ENDIF.
    stop change
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C005[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0CALDAY'.
      LOOP AT C005 .
        CLEAR L_S_RANGE.
        MOVE C005-SIGN TO L_S_RANGE-SIGN.
        MOVE C005-OPTION TO L_S_RANGE-OPTION.
        MOVE C005-LOW TO L_S_RANGE-LOW.
        MOVE C005-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
    IF NOT C006[] IS INITIAL.
      CLEAR L_SX_SEL.
      L_SX_SEL-IOBJNM = '0UNIT'.
      LOOP AT C006 .
        CLEAR L_S_RANGE.
        MOVE C006-SIGN TO L_S_RANGE-SIGN.
        MOVE C006-OPTION TO L_S_RANGE-OPTION.
        MOVE C006-LOW TO L_S_RANGE-LOW.
        MOVE C006-HIGH TO L_S_RANGE-HIGH.
        MOVE RS_C_TRUE TO L_S_RANGE-KEYFL.
        APPEND L_S_RANGE TO L_SX_SEL-T_RANGE.
      ENDLOOP.
      INSERT L_SX_SEL INTO TABLE L_THX_SEL.
    ENDIF.
      L_PARALLEL = L_PA.
      IF L_INTERACTIVE EQ RS_C_TRUE.
      CALL FUNCTION 'RSDRD_SEL_DELETION'
           EXPORTING
                I_DATATARGET   = 'DELETE'
                I_THX_SEL           = L_THX_SEL
                I_AUTHORITY_CHECK   = RS_C_TRUE
                I_NO_LOGGING        = L_NL
                I_PARALLEL_DEGREE   = L_PARALLEL
                I_SHOW_REPORT       = L_SR
           CHANGING
                C_T_MSG             = L_T_MSG.
      ELSE.
        CALL FUNCTION 'RSDRD_BUILD_REPORT_FOR_BATCH'
             EXPORTING
              I_REPID        = 'GP457FWJUK1J1F3ZIZZOEH9U533'
              I_DATATARGET   = 'DELETE'
              I_GEN_ONLY          = RS_C_FALSE
              I_THX_SEL           = L_THX_SEL
              I_AUTHORITY_CHECK   = RS_C_TRUE
              I_NO_LOGGING        = L_NL
              I_PARALLEL_DEGREE   = L_PARALLEL
              I_SHOW_REPORT       = L_SR
         CHANGING
              C_T_MSG             = L_T_MSG.
      ENDIF.
    Thanks in advance,
    Vijaya

    hi!
    Function code for execute button is 'ONLI'.
    try ur code using it!!
    Reward points if it helps.
    Regards,
    Neha Bansal.
    Message was edited by:
            Neha Bansal

  • Search functionality in Talent Hub for Executive

    We are in process of implementation of NAKISA 4.0 on ECC 6.0 EHP5 and EP 7.3 EHP1.
    We did all required configurations for Talent Hub for Executive and also configured TREX as per Mr. Luke Marson blog http://scn.sap.com/community/erp/hcm/blog/2010/09/20/setting-up-netweaver-embedded-search-trex-for-sap-ehp4-talent-management
    We are able to see all AOR orgunits, positions and employees in Talent Hub for Executive application.
    For example see below screen shot, we have position 50001330 in org.unit.
    But when we try to search with that same position ID in My Positions, it's not showing any thing in list.

    Issue solved by running the Synchronization HR_SYNC_PERSON report and recreating indexing using ESH_ADM_INDEX_ALL_SC for EA-HRGXX component.

Maybe you are looking for

  • Movie clips in starmovie apps

    Hello. I recently restored and updated my daughter's ipod touch hoping to erase restriction code that we forgot (5th time so far and don't want the ipod to get blocked). After restoring it, the restriction code area remains the same (5th time wrong c

  • DO NOT INSTALL 7.0.1 ITS NO GOOD

    I keep checking in and seeing how things are going still the same problems in this board. By now you should know that iTunes 7 is as good as viral and you should return to 6.0.5. Here is a short list of some things you will notice when you install iT

  • TS1424 I get an error message "missing msvcr80.dll".  Can anyone help?

    I'm getting an error message "missing msvcr80.dll".  Can anyone help?

  • Early start & lates start date

    Hi experts, I want to change the early start & latest start date which are in grey mode of maintenance order operation direcly instead of changing the order basic start date .How can I do it? please through some clues.thanks

  • ATH.exe has stopped working.

    When syncing my ipod touch in itunes I get a pop up message telling me ATH.exe has stopped working. It also tells me that a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available