I need to run a piece of code which is inside a string object..is it possible?if so how?

i need to run a piece of code which is inside a string object..is it possible?if so how?

i need to run a piece of code which is inside a string object..is it possible?if so how?
How would anyone know?
You haven't said what 'code' you are talking about or what you mean by 'run' it.
Since you are asking us to 'guess' what you need to do I will guess that it is a valid batch file for your OS. So just save the contents of that string to a file and then use a ProcessBuilder to 'run' it.
See the example in the API
ProcessBuilder (Java Platform SE 7 )

Similar Messages

  • I need to run windows program's like word and excel and PowerPoint etc on my mac for college , how can I do it?

    I need to run windows program's like word and excel and PowerPoint etc on my mac for college , how can I do it?

    You can install Office for Mac
    You can install Windows using Boot Camp Assistant then install Office for Windows in your Windows installation
    You can install Windows and Office for Windows using a virtual machine like Fusion, Parallels, or VirtualBox

  • I need to run Java 6, not 7. Mozilla keeps wanting me to intstall plugin for 7. How can I get around this.

    I need to run a program called Niagara. It will not run with Java 7 so I have uninstalled 7 and re-installed 6. Now, mozilla wants me to install a plugin in order to run the program. When I click install plugin, it takes me to the java site and wants me to download 7.

    Do you get any Java error or security messages?
    There has been a change in the Java security settings, see:
    *http://kb.mozillazine.org/Java#Java_security_prompts
    *"What should I do when I see a security prompt from Java?":<br>http://www.java.com/en/download/help/appsecuritydialogs.xml
    If you visit a website regularly then a possible workaround is to add the URL to the Java Exceptions Site List, see:
    *"Why are Java applications blocked by your security settings?":<br>http://www.java.com/en/download/help/java_blocked.xml
    *"How can I configure the Exception Site List?":<br>http://www.java.com/en/download/faq/exception_sitelist.xml

  • Windows7 needed to run

    I have a Windows 7 machine.  I have loaded the Photoshop elements 13 software.  When I try to open the program I get a pop-up : (Photoshop elements 13 Editor) that says "Adobe Photoshop cannot run on this computer because this version of Photoshop requires Windows 7 or later."
    Is there a fix for this?
    Thanks!

    Hi Brian,
    Thanks for all your help!!!  I finally got PSE13 to run.   On our string of communications this posting appeared in the converstion:
                andaleebfatima1
    There is a browser plugin or software (BrowserSafeGaurd) which blocks and  tampers network calls. This software has been reported as malware. Please check if you have it on your machineand remove that by following steps mentioned on http://www.tomsguide.com/us/browser-safeguard-remove-how-to,news-19273.htmland try to license the software once again.
    Thanks
    Shikha
    I followed the advice and uninstalled the BrowserSafeGuard program.  I don't know how it go installed, but it has been uninstalled.
    After doing that I rebooted, clicked on the PSE13 shortcut and it took me to the sign-in and accept yet again, BUT this time it communicated and the PSE13 organizer opened!!! the Editor opened fine as well!!!
    So thank you to you and andaleebfatima1 and Shikha.
    Have a great evening and Thanksgiving Holiday!!!
    Best,
    Richard
    From: Little_Pale_Face <[email protected]>
    To: Richard Crain <[email protected]>
    Sent: Monday, November 17, 2014 9:17 AM
    Subject:  Windows7 needed to run
    Windows7 needed to run  created by Little_Pale_Face in Photoshop Elements - View the full discussion  
    Hi Richard,
    I'm wondering how that compatibility option got checked in the first place. When you installed it, do you recall getting the message form windows saying that the application may not have installed correctly? I hope you answered yes.
    I think that I might be tempted to uninstall/re-install PSE 13 - with anti-virus disabled.
    After you sign in, did you get the Trial message or a request for the serial number?
    There appears to be a few reasons why the editor doesn't start. It can be that something is blocking your PC connecting to the authentication servers. Try disabling your firewall while you try to sign in.
    You could also check your hosts file to make sure that there is no entry for Adobe servers. The file can be found here
    C:\Windows\System32\drivers\etc
    Brian
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6937168#6937168 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: 
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6937168#6937168
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" 
    Start a new discussion in Photoshop Elements by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • To run a piece of PL/SQL code,  in TT  is much slower than   in ORACLE.

    A piece of PL/SQL code , about 1500 lines, package is named rtmon_event, function in it is named rtmon_SHOLD_CUS_RPT;
    the PL/SQL code is run in ORACLE.
    Now I want to get fast speed, I think of TT.
    I rewrite the PL/SQL code by grammer in TT.
    But the speed in TT is much slower than the speed in ORACLE.
    In ORACLE, to run the PL/SQL code, it need 80 seconds; but In TT, to run the PL/SQL code, it need 183 seconds;
    How can I resolve the problem?
    Btw: there are some joins of 2 tables, or 3 tables in rtmon_event.rtmon_SHOLD_CUS_RPT, and some complex DML in it.
    The run method is :
    declare
    a number;
    begin
    a := rtmon_event.rtmon_SHOLD_CUS_RPT ;
    end;
    Thanks a lot.

    The easiest way to view a plan is to use ttIsql and issue the command:
    explain SQL-statement;
    For example:
    explain select a.ol1, b.col2 from taba a, tab b where a.key = b.key;
    See the documentation that 'hitgon' pointed you to to help you interpret the plans.
    Chris

  • Office key code lost But need to run restore

    2008 HP G60-120US 32 Bit Vista Laptop
    Need to run full restore, but don't have the key code/disk for Microsof Office 2007 that I had Office Depot
         install at the time of purchase. Can it be found? What can be done, don't want to lose it.
    Thanks
    This question was solved.
    View Solution.

    Welcome Corey.
    If you can still boot your system try this???
    http://www.nirsoft.net/utils/product_cd_key_viewer.html
    Download links are at the bottom of that page.
    Let us know how things go.
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Running and restricting unsafe code within a safe application

    My application (actually a web application) will do the following:
    - Obtain Java source code from an untrusted source. One such piece of source code will be a JUnit test class (and another will be the class(es) it is testing).
    - Compile the source code in memory, storing the compiled classes into byte[] arrays, using the JSR-199 compiler.
    - Load the JUnit test class that was just compiled, using a URLClassLoader.
    - Run the JUnit test (using the JUnitCore core class in JUnit 4.4) and report the results to the client.
    Since the source code is untrusted, it may do malicious things that I want to prevent. I have wide flexibility in limiting the permissions of the code; for example, I can disallow file reading and writing, network access, etc. However, I do not want to restrict these permissions on my own application, or the JUnit code itself (such as the class JUnitCore, which runs the JUnit test). So the flow will go like this:
    1. Allow unrestricted security policy initially.
    2. Obtain source code.
    3. Compile source code.
    4. Apply restricted security policy.
    5. Load compiled classes and use JUnitCore to run the JUnit test class. (Loading should be restricted so that static initializers in the unsafe code cannot do harm.)
    6. Remove restricted security policy.
    7. Report results (in particular, violating the security policy means, "Test failed").
    However, my very basic understanding of the security policies in Java is that permission granting within a call stack seems to go the other way; untrusted code is run with a restricted security policy, but it may make a call to a system library, for instance, that runs as a privileged block and has extra permissions that the unsafe calling code does not have. I want to flip that around and say, "My code is okay, but when it executes the method JUnitCore.run, restrict the access of that method". Or, to be even more fine-grained, "My code, and any code from junit-4.4.jar such as JUnitCore, is okay, but somewhere in the bowels of JUnitCore.run, some unsafe code will eventually be called, and I want its access restricted."
    I don't even know if this is possible the way I have stated it, and if so, I am having trouble mapping the abstract concepts of a codebase, code signers, etc., on to the specific pieces of code in my project. Someone on another forum suggested that the URLClassLoader used to load the unsafe classes would somehow play the role of a codebase, so that I could state that anything loaded with that class loader should be restricted, but I have not seen a syntax for expressing this in the documentation. Plus, I don't see how using the URLClassLoader used to load the unsafe classes would play a role, since permissions are granted, not denied. It seems that I need a way to map a codebase to the safe code, not the unsafe code, and then grant permissions to the unsafe code.
    It seems like it could be as simple as creating a policy file (say, unsafe.policy) with the contents
    grant codebase "My Application + supporting classes I wrote + any class in junit-4.4.jar" {
        permission java.security.AllPermission;
    };and running java -Djava.security.manager -Djava.security.policy=unsafe.policy MyApp, except that I don't really know how to specify the codebase, or if it is possible to draw a box around my code + junit-4.4.jar in that way.
    Thank you,
    Dave
    Edited by: pexatus on Aug 10, 2008 12:48 PM

    >
    Have a look at AccessController and AccessControlContext. These are the tools you need for this task.
    >
    By "this task", do you mean, "writing a custom SecurityManager"? Or do you mean the more general task of creating a security policy (such as by writing a policy file) to ensure untrusted code does no damage?
    I'm sorry to be so slow, but I don't see how to use the two classes you mention for my task. I assume that the only reason I need AccessController is to call AccessController.getContext() to get an instance of AccessControlContext, since the other methods of AccessController don't seem to be what I need. AccessController.checkPermission presumes I have successfully written the security policy already, which is the problem I am trying to solve, and the various AccessController.doPrivileged methods appear to grant extra privileges to code that is called, which is the problem I mentioned earlier: I want certain code that I call to have fewer privileges, rather than more.
    Similarly, I do not see any methods in AccessControlContext that could tell me whether the current executing code is trusted or not. It, too, has a checkPermission method that will work if I set up the security policy correct, which is what I cannot figure out how to do in the first place, and a getDomainCombiner() method. A DomainCombiner has only a single method, which assumes that I already have an array of ProtectionDomain objects. To create a ProtectionDomain, I need to specify a CodeSource, which is, as the documentation indicates, an extension of "the concept of a codebase". It is at this point I get completely lost in the abstract and generic nouns such as domain, codebase, code source, context, and I do not see how to connect them to concrete nouns that I understand such as class file, package, method, etc. Is it the case that I need to create a CodeSource representing the trusted classes? Is there an elegant way to create a CodeSource representing all the classes in a a project (say, under a given directory, or contained within a given jar file), short of enumerating them or digging into directories and jar files doing a search? And once I create this CodeSource within my program, what do I do with it to specify that I want my security policy to allow all permissions for the classes represented by the CodeSource, and restricted permissions for all classes outside the CodeSource, regardless of call order? (since trusted code will call untrusted code, and I do not want the permissions of the trusted code to be inherited by the untrusted code)
    Again, I am sorry to be so ignorant, and I appreciate the help, but I am simply having trouble connecting the concepts described in the documentation to the specific concrete aspects of my application.
    Dave

  • Help needed to run JSTL 1.1 in Tomcat 6.0.16

    Hi All,Help needed to run JSTL 1.1 in Tomcat 6.0.16. I am trying to run the example given in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html The example tries to connect to MySQL database from JSP using JSTL and JNDI Datasource.I am running the example using Eclipse 3.4.2 using Sysdeo plugin to start and stop Tomcat server from Eclipse IDE.
    My web.xml file has <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    </web-app>
    and test.jsp has proper taglib directives
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    I have placed the jstl.jar and standard.jarof the jakarta-taglibs-standard-1.1.2.zip under E:\Deepa\workspace\DBTest\WebContent\WEB-INF\lib directory also placedcontext.xml file under E:\Deepa\workspace\DBTest\WebContent\META-INF and the content of context.xml is as below
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
    </Context>
    Now while running the example, Eclipse creates one DBTest.xml file under C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost
    which has the following line:
    <Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest" workDir="E:\Deepa\workspace\DBTest\work" />
    I am getting the following error when running http://localhost/DBTest/WebContent/test.jsp
    in Browser:
    <HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    In the Tomcat Server console, I am getting the following error:
    INFO: Server startup in 7295 ms
    May 20, 2009 6:36:48 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml
    WARNING: Internal Error: File /WEB-INF/web.xml not found
    May 20, 2009 6:36:48 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    what is the problem with my code?
    When running the same example, by creating a local server in Eclipse(creating new Server connection pointing to same Tomcat 6.0 installation) it runs fine without any error.

    Hi evnafets,
    Wow, very helpful information, great insight into working of Eclipse. Thanks a lot.
    I have one more question. I have a context.xml file under {color:#0000ff}E:\Deepa\workspace\DBTest\WebContent\META-INF{color} folder and that has the Resource element to connect to MySQL database:
    {code{color:#000000}}{color}<Context path="/DBTest" docBase="DBTest" debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    {color:#0000ff}url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>{color}
    {color:#0000ff}</Context>{color}As usual when running application in local Tomcat server of Eclipse, this data source works fine. But when I run the application on Tomcat, by starting Sysdeo plugin from Eclipse, the DBTest.xml file created in C:\Tomcat 6.0\conf\Catalina\localhost has the context entry as<Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest\WebContent" workDir="E:\Deepa\workspace\DBTest\work">
    </Context>The<Resource> element I have specified in the context.xml of \WebContent\META-INF folder is not taken into account by Tomcat and it gives the following error:May 21, 2009 5:20:04 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException_: Cannot create JDBC driver of class '' for connect URL 'null'"
    _at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(_QueryTagSupport.java:276_)
    at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(_QueryTagSupport.java:159_)
    at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(_test_jsp.java:113_)
    at org.apache.jsp.test_jsp._jspService(_test_jsp.java:66_)
    at org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:70_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper.java:374_)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:342_)
    at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:267_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:290_)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:206_)
    at org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperValve.java:233_)
    at org.apache.catalina.core.StandardContextValve.invoke(_StandardContextValve.java:191_)
    at org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.java:128_)
    at org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.java:102_)
    at org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineValve.java:109_)
    at org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.java:286_)
    at org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java:845_)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(_Http11Protocol.java:583_)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_)
    at java.lang.Thread.run(_Thread.java:619_)
    {code}
    So to overcome this error I had to place the <Resource> element in DBTest.xml under C:\Tomcat 6.0\conf\Catalina\localhost {color:#000000}and then it works fine. {color}{color:#ff0000}*Why is the context.xml file in META-INF not considered by Tomcat server using Sysdeo Plugin?*
    *Thanks,*
    *Deepa*{color}
    {color}
    Edited by: Deepa76 on May 26, 2009 9:32 PM

  • How do i run this peice of code with out executing the PROC

    I have the following code which i want to run but not a a Pocedure.
    I know its always better to runa PROC but this is for test purpose so the only target is to run it by part or somehow but with out the need to create or execute a procedure
    CREATE PROCEDURE temp_account_salary_archive_proc
    IS
    CURSOR arcur
    IS
    SELECT sequence_num
    FROM north.account_offer
    WHERE north.datediff ('mm', hire_date, SYSDATE) > 3;
    BEGIN
    FOR arrec IN arcur
    LOOP
    INSERT INTO north.account_salary_archive
    SELECT *
    FROM north.account_salaries
    WHERE sequence_num = arrec.sequence_num;
    DELETE FROM north.account_salaries
    WHERE sequence_num = arrec.sequence_num;
    END LOOP;
    COMMIT;
    END temp_account_salary_archive_proc;
    I need to know which parts of this code is to be executed if i want to run the process with out the help of Stored Procedure
    I am on Oracle 10g
    and I am a beginer.

    781244 wrote:
    Sorry for not mentioning earlier sir. It is Oracle 10g.
    And the DATEDIFF function I am using is a user defined function which i created.Ok, i apologize ... thanks for the clarification.
    The code as you've posted is not something i'd want to run on any volume of data. It will be horribly slow (looping is the slowest method to perform a SQL operation in Oracle).
    Much faster would be to simply
    INSERT --+ APPEND
    INTO north.account_salary_archive
    SELECT *
    FROM north.account_salaries
    WHERE sequence_num in
       SELECT
          sequence_num
       FROM north.account_offer
       WHERE north.datediff ('mm', hire_date, SYSDATE) > 3
    DELETE FROM north.account_salaries
    WHERE sequence_num IN
       SELECT
          sequence_num
       FROM north.account_offer
       WHERE north.datediff ('mm', hire_date, SYSDATE) > 3
    );2 fast SQL statements (fast being a relative term, this will depend on the number of rows you need to play around with here).
    Even faster would be partition exchanges (if you have partitioning on this table).
    If you notice, i put an APPEND hint in the INSERT statement. Please read about it in the documentation and determine if you meet the restrictions to use it or not. If you do that will increase the performance of your INSERT.
    I would also try to remove the custom function you created (DateDiff) and replace that with the logic required (is the function horribly complex?). Calling functions/procedures (custom created) places a good deal of overhead on SQL operations.

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • Help needed in writting Customer exit - ABAP Code

    Hi Friends,
    I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
    I am using one input variable XXX to get input from user which feeds value to one of the charateristic  lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
    So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2.  I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi Arun,
    1. What should CHAR2 take - Hierarchy node variable or something else ?
    --> CHAR2 is a simple charateristic
    2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
    --> We dont want user to enter two input as the input values for both Chars are same.
    3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
    --> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
    Thanks

  • APP Run Through F111 T-Code

    Hi Guru's
    I need to run the Payment program(APP) in T-code F111,i dont know the process.System by default set the parameters and give the Run id too,,,we just need to run the program.
    please give me some inputs
    Thanks
    Sap Guru
    kischowdary*gmail.com

    Hi,
    Read the below link,
    http://help.sap.com/saphelp_47x200/helpdata/en/bf/d0883c9dc1440ee10000000a114084/frameset.htm
    This may not be applicable for normal scenario....
    Hope it helps
    Saravanan.A

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • How to close a running exe through java code

    hai friends,
    i need to close a running exe file through code...
    i tried
    Runtime r;
    Process p;
    try {
                r = Runtime.getRuntime();
                p=r.exec("d:\\aaa");
            } catch (IOException ex)
    p.destroy();but its not closing the application properly...
    pls anyone help me

    ksnagendran26 wrote:
    how to exit the application which is running in quick launchWell my guess, since you are not providing specific information, is that java is in fact closing the application that it ran. What you are seeing is some other application that was spawned by whatever it is that you did. And java isn't going to close that because it doesn't even know it exists.

  • FI-AA Depreciation  Run :what does I need to run depreciation (AFAB trans.)

    I don´t know what I need to run depreciation, I have create a fixed asset, and I have done a posting f-90 , and afterwards I want to execute depreciation but I cannot ¿what does I need to do this ?
    Thanks in advance.
    Olga.

    Hi,
    First of all before running depreciation you need to give the required GL accounts needed for posting the depreciation to the GL accounts in T.Code AO90.
    Then after doing the required configurations u can run a depreciation run only in the month end or in the next month for the previous month.
    If u had posted transactions to an asset using F-90 say suppose in october, u can do the depreciation in the month of october or in the coming month.
    hope it is clear.
    regards
    srikanth.

Maybe you are looking for

  • How do I create a count of all the different values in a column

    I'm using Numbers 09, and I have a table with over 20,000 rows.  Each row is a record of a digital asset download.  I'm trying to get a list how many times each asset was downloaded.  For example, if my table looked like this: Category a c b b c c a

  • ALE WE19 ERROR

    I am trying to post a FI document using transaction code we19. Below are the steps that I have performed. The message type is FIDCC2. SCENARIO 1 - Without entering the business area. I enter the data into the segments and after checking the partner p

  • Problem with updating Adobe Reader in my LENOVO.

    the installing in my lenovo had an errore. i try to uninstall all the abobe application. and it didn't work. what can i do?

  • Digitally responding to the notification sent by workflow

    Hi, I have a requirement that states that the response to a notification needs to be electronically/digitally signed by the end user. I went through the documentations related to workflows and it states something about a message attribute by the name

  • Data transfer from 4.6C to ECC6 using bcp

    Hi experts,   Is there any risk to use bcp transfer customized tables(Z*) beucase I find using R3trans is too slow and I have data volume about 65GB(compressed). I think it takes me about 3-5 days to import. And I use bcp -n, would this cause any dat