Runing a report through a BAT file

Hi,
I'd like to call Report Runtime through a BAT file, indicating the RDF file I want to open and the user-password-host names for the database (so that when the file is executed the report opens without asking to log on).
Does anybody know how to do this?
Thanks--

Hi
You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
Other procedure is a bit long, you create a form where in you provide the File-Open dialogue box, so that user can select the desired report, from there you can call the report from Reports
I don't known how are this will meet your requirements
Regrads
Karan
null
---i saw this post
You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
and i want to know how iis it done?

Similar Messages

  • Launch Java app through a bat file

    Hi,
    Because I have to launch my Java App through a batch file, I don't know if I can create a new java class to execute this bat file to launch my Java App? Is that gonna work?
    Henry.

    Yes I created a batch file and tested. If I execute my batch file, the java app will be lauched as expected.
    Here is my java class that execute my batch file
    import java.io.*;
    public class LaunchTest {
    public static void main(String args[])
    String cmd[] = new String[3];
    try
    String osName = System.getProperty("os.name" );
    //System will detect current operating system
    if( osName.equals( "Windows NT" ) || osName.equals( "Windows 2000" ) )
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C";
    cmd[2] = "c:\\Run.bat"; //Run.bat will set classpath and launch my java app
    else if( osName.equals( "Windows 95" ) || osName.equals( "Windows 98" ) )
    cmd[0] = "command.exe" ;
    cmd[1] = "/C";
    cmd[2] = "c:\\Run.bat";//Run.bat will set classpath and launch my java app
    Runtime rt = Runtime.getRuntime();
    //running the commands
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // kick them off
    errorGobbler.start();
                   // any error???
    int exitVal = proc.waitFor();
    catch (Throwable t)
    t.printStackTrace();
    System.out.println("error...");
    And here is my batch file
    @echo off
    set path=e:\jbuilder4\jdk1.3\bin
    set classpath=E:\JBuilder4\jdom-b7\jdom-b7\build\jdom.jar;E:\JBuilder4\jdom-b7\jdom-b7\lib\xerces.jar;.
    d:
    cd AutoTest\classes
    java FirmwareTestPack.FirmwareMainClass
    exit
    When I run the java class above, Dos prompt popped up for a second then disappeared. It did not launch my Firmware pplication.
    Thank you.

  • Variable not set (error 91)/Error during import (error 102)/execut bat file

    We are on BO 11.5.0.0 and using the COM SDK with Visual Basic to run multiple reports (sometimes multiple flavors of the same report) through a bat file.
    If we run the reports single-threaded through the bat file, the reports run fine.  However, if multiple versions of the bat file start at approximately the same time, we get one of two errors:
    91 Object variable or With block variable not set
    102 Error during import document -
    Here's the part of the code with the problem:
    Dim BOapp As busobj.Application
    Dim receiveDoc As busobj.Document
    Set BOapp = New busobj.Application
    BOapp.Interactive = False
    BOapp.Logon strUser, strPass, strFromSystem, "Enterprise", False, False
    BOapp.Visible = False
    Set receiveDoc = BOapp.Documents.OpenFromEnterprise(strFromRep, strFromFolder, boFolder)
    receiveDoc.SaveAs (strDocumentPath & strFromRep & ".REP")
    Values for the following variables are passed in from the bat file:
    strUser
    strPass
    strFromSystem
    strFromRep
    strFromFolder
    strDocumentPath
    If it fails on the OpenFromEnterprise statement, we get the 102 error.
    If it fails on the SaveAs statement, we get the 91 error.
    Running it through debug hasn't helped, since we are running only one report.
    Any thoughts on what could be going wrong?
    Thanks in advance

    I have tried this running the VB code on my desktop (outside of the bat file) and nothing out of the ordinary occurs.  The VB code runs fine with only one occurrence.
    I had seen on other posts "ThisDocument" and didn't know if it would be applicable in this situation.  I also wasn't sure how it should be used based on the rest of my code.  Would "ThisDocument" make a difference?
    Thanks again

  • Open CR reports from an xml file

    Hi, Im new using Crystall Report technologies and I wonder if this is possible.. I have a web application and want to use some crystall reports that have been designed some time ago...the thing is that I dont want the reports to be compiled with the project..insted I'd like that the project points to the reports through a xml file where Im going to write the paths where the reports are so that if I change of server o file (where the reports are stored) I only have to change the paths in the xml file...can this be done? ...hope you can help me...thanks...bye

    Yes, this is can be done.  Since you are storing the path to the .rpt files in an xml file, you will need to write some code to retrieve the path to the report.  Now that you have the path to the report, when you create an instance of the ReportDocument class, use its Load() method and pass it the path of the report to its argument and you will achieve what you are wanting to do. 
    To stop the report files from being built as a Resource in your project, change the BuildAction property for the report (in your project) to None.
    -MJ

  • Running from a command line with a .bat file

    I am running my program through a .bat file.
    The .bat file looks as follows:
    java ../classes/HelloWorld
    The .bat file is in a directory at the same level as classes so to get to the class file to run I specify this path. However, it cannot find the class file unless it is in the same directory as the .bat file. Is there a way around this?

    hi,
    as you could have known from the documentation, the java virtual machine executable 'java' expects a fully qualified class name as parameter, no file path. so 'java ../classes/HelloWorld' is of course completely wrong, it should be 'java HelloWorld' and nothing else. if you want to specify a certain path where the class file is to be found, use the -classpath command line option as in 'java -classpath ../classes/ HelloWorld'.
    sincerely, Michael

  • Run crystal report through BI, can't locate par file on BOBJ server

    Attempting to run crystal report through BI iView. 
    Followed steps here: http://wiki.sdn.sap.com/wiki/display/BOBJ/CreateBOEXI3.1IntegrationKitIViewTemplateintoSAPEP+Portal
    successful until we try to locate the par file:
    com.businessobjects.pct.masteriview.par
    Is there something we need to install to be able to load this file, or is there somewhere we can download.
    As of now, stopped b/c can't find
    com.businessobjects.pct.masteriview.par

    Thanks Ingo, would this be the correct file to download and install?
    Download BusinessObjects XI 3.1 Java Portal Integration Kit - WAR 10 MB
    Located here:
    http://www.sdn.sap.com/irj/boc/enterprise;jsessionid=(J2EE3414800)ID1586935850DB11532971180627469992End?rid=/webcontent/uuid/503988db-58c5-2b10-f79d-cb96700417f9
    then click Download BusinessObjects XI 3.1 Java Portal Integration Kit - WAR 10 MB
    to get here:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f0c30ff1-4e75-2c10-a385-8eff81c946aa
    We currently have BOBJ set up, CMC/INFOVIEW, and crystal linked to SAP BI...so I thought we'd installed everything we need, I guess this is more for portal...b/c now our goal is to see what crystal reports look like in BI portal instead of infoview.
    thanks a lot,
    matt

  • Process .bat files through the terminal Window?

    Hi,
    I have a large number of .bat file which have been generated from Rendering out of Maya (3D Application) on PC.
    Usually I would process the bat files from within maya's script editor which would generate the Photoshop images.
    The down side is it ties my PC up and I cant really do anything while these are processing .. and it take quiet a while.
    I have Mac which doesn't have Maya... does anybody know if I can process .bat files maybe through the terminal window?. Problem is theres well over 10,000 images to process.
    If it is possible to do this is there a way I can automate this process from the Terminal for all the files?
    Any help would be much appreciated
    Thanks
    Wayne

    No problem, Kurt. There are several possible solutions for the OP (who seems to have disappeared!):
    You mentioned already running Windows on the Mac. I have found Parallels great, so it should be as simple as setting up his virtual machine, installing his app and copying over the batch files. But he would need to purchase Parallels and have a Windows licence.
    Unix has a much more sophisticated range of scripting facilities than the old DOS batch files, and there are free tools that do a lot of graphics processing.
    Applescript can be used to control Graphic Converter (amongst others) - but OP refers to rendering, and I don't know if GC can do that (in fact I am fairly sure it can't).
    So, to advise wr_uk we really need to know what those bat files are doing!
    AK

  • Encryption through bat file in SAP

    dear all,
    I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
    Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.
    how to give Input and Output file parameters??

    Hi,
    You can use SM69 to define your command and run this command using MF SXPG_COMMAND_EXECUTE. But this can works if you upload the file on the server.
    Regards

  • Encryption through bat file.

    dear all,
    I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
    Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.

    May be you can try these FM.
    Use the following FM to encrypt
    CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
    Use the following FM to decrypt
    CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
    ******Reward points,if found useful

  • How to execute .bat file through java?

    I already create a batch file to pull & push file. Now, i want to execute this .bat file java.I got this example but it doesnt work. Did i missed something or do we have the better one?
    import java.lang.*;
    import java.io.*;
    public class Loadfile
    public static void main(String args[]) throws IOException
    Runtime load = Runtime.getRuntime();
    r.exec("C:\\pull.bat");
    }

    For Runtime,i'd change it to:
    Runtime load = Runtime.getRuntime();
            String cmd = "C:\\javaclass\\copytemp.bat";
            Process proc = load.exec(cmd.toString());Is it right? But still can't work.
    Here is the .bat file:
    @echo off
    c:
    cd "c:\Inetpub\ftproot\Debitin"
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo open localhost
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo Administrator
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo password
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo cd ftpScript
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo binary
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo lcd C:\
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo lcd "C:\Inetpub\ftproot\infile"
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo prompt n
    pause
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo mget *.txt::@rem >> C:\Inetpub\ftproot\Logrecord\pullscript.txt echo mdel *.*
    C:\Inetpub\ftproot\Logrecord\pullscript.txt echo byeftp.exe -s:C:\Inetpub\ftproot\Logrecord\pullscript.txt
    ::del C:\Inetpub\ftproot\Logrecord\pullscript.txt
    pause
    exit
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to print crystal report through DOS

    Can we print a crystal report from report viewer in text mode for dot matrix printer through command prompt

    Hi
    I dont think there is a specific method for printing CR in DOS.
    Try the following procedure:
    first make a .txt file of the report and on the click execute a .bat file which should contain the command for printing to lpt1 the required generated .txt file.Use Shell() to execute the bat file.
    I hope this works for you
    Also check the following links:
    http://www.computing.net/answers/dos/dos-printing/9700.html
    and
    http://visualbasic.ittoolbox.com/groups/technical-functional/visualbasic-l/dos-printing-using-crystal-reports-987353
    Regards
    Chen

  • Creating new BAT file script to stop, restart and disable S I agent

    We have just installed BOXI3 and are in the process of updating some bat files for stopping, restarting and failover (to our backup servers)and disable services on the Central Configuration Manager.   In my old scripts we called each service  Examples (
    sc
    servername.net config "bobjspcengine" start= disabled                    
    sc
    servername.net config "BOBJWebiServer" start= disabled)
    I have a few  questions
    1.  Server Intelligence Agent... Where would I find it's name   like the BOBJWebiServer example?
    2.  If my bat file stops this agent does that automatically stop the CMS, Webi, Report services?
    3. This is for our support team in order to easliy stop Tomcat and other services for failing over to our DR sites and backups since the script automatically stops,  starts, restarts disables and enable services..., is this the best approach?   We put these bat files out on the servers and all they do is click on them to start the failover process.

    Try using
    Process Monitor for looking the key.
    For example, you may set the required value through the group policy and see what windows registry keys are changed.

  • BI report through portal

    Hi,
    I am trying to create a iView to access the BI report through Portal.
    We have done SSO and other configuration.
    While previewing the iView I am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application com.sap.ip.bi.service.generic.
    Exception id: 08:17_28/07/08_0024_4848350
    See the details for the exception ID in the log file
    Any idea ???
    How to check log files ??
    Regards,
    Niraj

    Hi,
    Check these.
    http://help.sap.com/saphelp_nw04s/helpdata/en/a3/7b583c2439e66fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0a5216a-349c-2a10-9baf-9d4797349f6a
    /thread/826292 [original link is broken]
    /message/3945089#3945089 [original link is broken]
    Configuring EP for connecting to BW
    Regards.

  • Portal Runtime Error while accessing BW reports through portal

    Hi,
    We are facing portal runtime error(An exception occurred while processing your request. Please send the exception id to your portal administrator) while accessing BI reports through portal frequently.
    We are unable to trace the error in the 'default trace' log file and although refreshing the cache solves this issue, it is difficult to explain this to every user individually.
    After many such errors, We found one log entry, which we are now not yet sure if it is relevant. The error states:
    1.
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template '<System.Access.WAS.protocol>://<System.Access.WAS.hostname><BWLauncherComponent[PORTAL_URL]>;jsessionid=<Request.JSessionID>?sap-ext-sid=<ID[url_ENCODE]>&Language=<Request.Language>&theme=<LAF.Theme[url_ENCODE]>&sap-lafversions=<LAF.AllVersions[url_ENCODE]>&<Authentication>&<Report>&<BusinessParameters>'; the problem occured at position 230. Cannot process expression <LAF.AllVersions>
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:125)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:540)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:423)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Content pass of Application Integrator failed.
    Component Name:       'com.sap.portal.appintegrator.sap.BWReport',
    Context Name (iView):  <iview name location>
    Top Layer:            'BWReport/TopLayer',
    Producer ID (FPN):    'null',
    System Alias:         'Sap_bw',
    2.
    The cluster server element 111111 is not added in the EP cluster context,
       because prtbridge on 111111 is stopped  or not yet started (maybe the server is starting or shuting down).
    Please suggest us if the above logs are related to the issue or not
    Kindly provide us any inputs or solutions.

    Hi All,
    We are also having similiar type of error in our portal. 
    com.sap.engine.services.prtbridge##com.sap.engine.services.prtbridge
    #######SAPEngine_System_Thread[impl:5]_13##0#0#Error#1#/System/Server#Plain###
    The cluster server element 125898350 is not added in the EP cluster context,
       because prtbridge on 125898350 is stopped  or not yet started
    (maybe the server is starting or shuting down).
    We have implemented the FPN using RRA.
    This error comes only for few users when they navigate in Portal. After clearing the cache, it works for all. Kindly help us to resolve this issue.
    Regards,
    Venkatesh

  • SAP Business One  8.8Client throughs a .Dmp file

    Hi Experts,
    When we click Set Authorize Button  in Report & Layout Manager  ,SAP Business One  8.8Client throughs a .Dmp file Error and Closes Itself Immediately.
    Then Also When we try To Open Reports Some times It Throughs The .Dmp File Error And Closes Immediately.
    Please Help me to resolve this Problem As Soon.
    Regards,
    M.Senthilnathan .

    Hi Mr.Gordon,
    Our Patch Level is :12
    SAP Business One 8.8 ,SP:000,
    SAP Client Throughs the .dmp error in All our Client Systems.
    And in server System too this error is coming and Closes itself Automatically.
    We have Tried Cleaning Temp File Folders.
    And We Have deleted the .Dmp files generated in Local Settingss\Application Data\SAP folder.
    After Reports are opening normally .Again After Some times this .Dmp is created and Client Closes itself.
    And We couldn't use Set Authorize In Report & Layout for Each Users.
    Client always closes when we click Set Authorise in Report & layout Manager, by generating .dmp file  in Local Settingss\Application Data\SAP folder.
    Regards,
    M.Senthilnathan

Maybe you are looking for

  • External Microphone headset used to work... but no longer works...

    Hi, I have this problem with a Plantronics headset - it works flawless in Yahoo Messenger, Skype, whatever.. both mic & headphones (plugged in sound in / sound out ports) - ON A WIN LAPTOP. But on the macs - the mic just doesn't works, not on a G4, n

  • Cinema Display 30" and MBP - No Picture

    I have a 2.16 Core Duo Macbook Pro 17". Today I purchased a 30" Cinema Display at the Apple store. Because of issues I had heard about I had the Apple employees help me open the box and plug in the monitor to a Macbook Pro on the floor to check for d

  • "Mark as played" for podcasts doesnt work in itunes 11.1.3 and Mavericks

    Ever since updating to Mavricks, iTunes is not keeping track of my podcasts correctly. If I right click a podcast from the "Unplayed" list and choose "Mark As Played," nothing happens. the podcast stays in that list and the blue dot stays next to the

  • Why does my iChat video only run at one frame per second?

    When I connect to anyone on iChat my video runs at only about one frame per second. When others connect to me their video is much faster. This hasn't been a problem in the past - even with other Internet apps running when I'm using iChat. Could this

  • PDF's Exported from Keynote Printing Very Slowly

    My team and I created a text presentation in PPT, imported it to Keypoint, and made a really nice presentation. We have a simple BG slide, 4 graphs, a few shapes, and mostly text on 39 pages. We've exported it to a PDF that is 1.1 MB, and distributed