How to Retrieve a Crystal Report's Unmanaged Destination Filename

Hi all,
I have looked very closely at Robert Twigg's response to the post "[Destination Path and name of a scheduled Report|http://forums.sdn.sap.com/thread.jspa?messageID=9588160#9588160]" dated 9/1/10 and while it does retrieve the unmanaged destination path, the filename retrieved is the managed filename.  How does one go about retrieving an instance's unmanaged filename?
When I look at a Crystal Report instance details, it definitely knows what the unmanaged filename that was populated, here is a sample instance detail:
External Destination: File copy the instance with the filename: "ALOG_Deferred_Clearing_RPT_2011-12-13-11-43-09.pdf" to the folder: "/apps/efs_bobj/IMPL/XX" .
As you can clearly see, the filename consists of report name, date, and time that was specified as "%SI_NAME%_%SI_STARTTIME%.%EXT%" in the destination filename.
Here's the snippet to retrieve the managed filename:
IInfoObject report = (IInfoObject) reports.get(0);
// Get the file name from the instance.
IFiles files = (IFiles) report.getFiles();
IFile file = (IFile) files.get(0);
Any insight on how to retrieve an instance's unmanaged filename would be highly appreciated.
Thanks in advance,
Hart Penn
Edited by: hartpenn on Dec 14, 2011 2:14 PM
Edited by: hartpenn on Dec 14, 2011 2:15 PM
Edited by: hartpenn on Dec 14, 2011 2:19 PM

Thank you for your response.  I am querying for the report instances using the query below:
IInfoObjects iRptObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS " +
                                           "Where SI_KIND='Pdf' AND " +
                                           "SI_INSTANCE>0 ");
Collection<IInfoObject> iRptObjs = iRptObjects;
for (IInfoObject iRptObj : iRptObjs) {
    ISchedulingInfo iSchedInfo = iRptObj.getSchedulingInfo();
    IEvents triggerEvents = iSchedInfo.getDependants();
    if (triggerEvents.size() > 0) {
        for (int j=0; j < triggerEvents.size(); j++) {
            IInfoObjects events = (IInfoObjects)infoStore.query("SELECT * FROM CI_SYSTEMOBJECTS " +
                                                                "Where SI_KIND='Event' AND " +
                                                                "SI_ID=" + (Integer) triggerEvents.get(j));
            if (events.size() > 0) {
                IEvent curEvent = (IEvent)events.get(0);
    IDestinationPlugin destPlugin =
        (IDestinationPlugin) infoStore.query("Select Top 1* from CI_SYSTEMOBJECTS " +
                                             "Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'").get(0);
    IDestinations dests = iSchedInfo.getDestinations();
    Collection<IDestination> destObjs = dests;
    if (dests.size() > 0) {
        // we have a dest set up
        for (IDestination destObj : destObjs) {
            if (destObj.getName().compareTo("CrystalEnterprise.DiskUnmanaged") == 0) {
                // Copy the destination properties to the destination plugin.
                destObj.copyToPlugin(destPlugin);
                // Get the scheduling options for the unmanaged disk.
                IDiskUnmanagedOptions diskUnmanagedOptions =
                    (IDiskUnmanagedOptions) destPlugin.getScheduleOptions();
                // Get the destination files
                List destFiles = diskUnmanagedOptions.getDestinationFiles();
                String pathName = (String)destFiles.get(0);
    IFiles iFiles = (IFiles) iRptObj.getFiles();
    IFile myFile = (IFile) iFiles.get(0);
    logger.debug("Object: " + iRptObj.getTitle() +
                 ", ID: " + iRptObj.getID() +
                 ", Kind: " + iRptObj.getKind() +
                 ", Trigger Event: " + curEvent.getEventName());
    logger.debug("Dest: " + pathName);
    logger.debug("Filename: " + myFile.getName());
while this is not efficient, it does retrieve the instances. However, the file name returned is not what was specified in the destination filename. Here is some info returned and displayed:
Object: ALOG_Deferred_Clearing_RPT, ID: 128776, Kind: Pdf, Trigger Event: EVT_121311_114308
Dest: /apps/efs_bobj/IMPL/XX/%SI_NAME%_%SI_STARTTIME%.%EXT%
FileName: ~ce46086dd492ac788.pdf
As you can see, the filename is clearly the managed filename.
Edited by: hartpenn on Dec 14, 2011 3:43 PM
Edited by: hartpenn on Dec 14, 2011 4:02 PM
Edited by: hartpenn on Dec 14, 2011 4:03 PM
Edited by: hartpenn on Dec 14, 2011 4:17 PM
Edited by: hartpenn on Dec 14, 2011 4:26 PM
Edited by: hartpenn on Dec 14, 2011 4:27 PM
Edited by: hartpenn on Dec 14, 2011 4:28 PM

Similar Messages

  • How to Call a Crystal Report from Form 6i?

    Dear All,
    Can anybody tell me how to call a crystal report, designed using Crystal Report 9, in form 6i? I tried one solution by using the host command but it was not working properly. The code I was tried is like:
         f_name varchar2(240);
         f_name :='C:\Program Files\Crystal Decisions\Crystal Reports 9\crw32.exe D:\Form16\Form16_Rep\bin\Debug\Form_16_character_emp.rpt';
                   host(f_name);
    This open the crystal report in design view. So how we call a report which run automatically like in .Net. How to pass the connection info of the database schema?
    Thanks & Regards
    Sunil

    Hi
    First see the built in run_product function.
    You can create a parameter list, add the
    "MAXIMIZE" paramter in it and then call your
    report with run_product passing your parameter list in it.
    hence the called report will be maximized.
    null

  • How to create a crystal Report using C# and SQL Server

    Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
    but i got an error on the adding of server name and database portion.. thanks a lot in advance

    Hello,
    Crystal Reports are supported on
    http://scn.sap.com/community/crystal-reports.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to get a Crystal report as an iview in Portal

    Hi,
    Please let me know how to get a crystal report to Portal.
    Regards,
    Pradeep

    Hi,
    I used URL iview option to get the crystal report in portal and am able to view it. Thank you all for your inputs.
    But as of now SSO is not configured between BOE and BI system, so when i click on URL iview initially it asks me for credentials to BOE InfoView and after entering that it again asks for BI login as the data has to be picked from BI server.
    We are going to configure SSO mean while i just want to know whether it is possible to pass the id and passw as parameters to this url iview, if so what are the parameter id's i need to maintain to pass id and passw.
    Let me know on this.
    Regards,
    Pradeep
    Edited by: pradeep balam on Jul 29, 2011 8:34 AM

  • How to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0

    Hi All,
    Can you please let me know how can migrated the crystal reports from BO XI 3.1 to SAP BO 4.1 and after migrate how to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0.
    can you please help on this and if document please share.
    Thanks,
    Rajesh

    Use the upgrade management tool to move from 3.1 reports to BO 4.1. After migration, open the report in crystal enterprise 4.0, you will get a message saying that the report will be converted to latest version, will not be able to view from older version after converting. (Similar words- not sure exact words).

  • How to publish a Crystal Report in Business One

    Hi
    Please can anyone tell me how I publish a Crystal report (which is now inbuilt in SAP B1) so it is available to all users?  I have full administrator/manager user rights. I have so far created the report and saved it to my SAP server machine on it's C:drive.
    Thank you very much for any help and info.
    Matt

    Hi, I worked out how to do it. I had to first enable the Crystal Add on from within SAP and then open the Crystal Reports Administration menu under Administration and then select "Manage Crystal Reports". From there you can browse to the report you have created and select the module for where you want it to appear under in SAP.
    Edited by: matth76 on Jun 25, 2009 4:14 PM

  • How Can I call Crystal report from R3?

    Hi experts,
      How Can I call Crystal report from R3?

    Hi Bill,
    Can you please be specific and could you please provide the steps
    Thank you

  • FTP error when trying to send crystal report to FTP destination

    Hello experts.
    I am trying to send a crystal report to a FTP destination. I have enabled the FTP destination on all servers that have a destination option. I am able to connect to the FTP site manually from the server that is running crystal reports server. However every time I try to run the report in CMC, it fails with the following message:
    Error Message: connection error. CrystalEnterprise.Ftp: WSA11004
    Any ideas on what this message means and how to fix the issue?

    Here's the details of the Note
    Symptom:
    Scheduling of the Crystal Report to FTP destination prompts the Error: Connection error, CrystalEnterprise.Ftp: WSA0.
    Cause:
    Every time when Crystal Report is scheduled to FTP destination, a connection is made to FTP server from server where job server is installed. If there is limitation on connection being made to FTP server then this error occurs.
    Resolution:
    For FTP sites in IIS:
    - Open IIS Manager
    - Go to Properties
    - Click on the FTP site tab
    - In FTP site connections, check for Connection limited to :
    - When report is long running do check how much time it takes to complete scheduling. - Accordingly change the connection time out setting in Properties of FTP site.
    - For FTP sites created using FTP Server applications, setting for Connection limited to and connection timeout will remain same.

  • How to create a crystal report using secured web service as a datasource?

    Hi All Expert,
    I having some challenges on how to create a report using secured web service as a datasource in crystal report designer (CR11 R3).
    Secured Web Service including the certificate trusting, token authentication, header and/or body encryption. All web services running on https protocal.
    Could you please suggest me on the solution?
    Thank you and Best Regards,
    Cherr

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to print a crystal report in Tally MT691 line printer?

    I have recently developed a crystal report with version 8.5 in windows-based operation system (windows xp). My client today told me that the report has to be able to print to a network printer - line printer (Tally MT691); otherwise, the crystal report I developed becomes useless. I have no experiences with line printer. Could you please give me some instructions on how to make it happen?
    Any help is greatly appreciated. Thanks again.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 7, 2009 11:05 AM

    Hi
    Unfortunatelly you need to worry about the printer, please don't consider the last replies.
    As far I can see this model is a dot matrix printer, only the following models are supported for SAP B1:
    For 2005A those are the supported models:
    - Citizen PROdot 300    
    - Epson FX-880          
    - OKI MICROLINE 320 Elite
    - Epson FX-890          
    For the 2007
    - Citizen PROdot 300    
    - Epson FX-880          
    - OKI MICROLINE 320 Elite
    Please note that some workaround can be found to use different printer but only the mentioned devices are supported. Those workarounds may work in one patch but may stop to work after patch or version upgrade.
    Also a multipurpose (combine fax, printer, scanner) devices are also note supported (SAP Note 925841).
    Paulo Calado
    SAP Business One Forums Team

  • How to get one crystal report to work with two different backends?

    We have a software that can work with either SQL2008 or Visual Fox Pro backend.  We are trying to compile One Crystal report that will work with either of the two backends.  How to you make sure that your Crystal Report is compiled so that it will work with both backends?
    Right now my reports were originally created using the SQL2008 backend and are retaining the DBO reference in the statement, which then will not allow the Crystal report to work with the VFP backend.

    You can write your data sets as a command using hand coded SQL. As long as "dbo" is the only schema used in your SQL Server database, you don't need to specify it in the SQL. SQL Server will automatically assume the dbo.
    The 2nd thing... The SQL needs to be 100% compatible with both SQL Server 2008 AND VFP.  This will limit the list available functions to those that are common to both platforms AND work exactly the same in both platforms.
    The other part is to make sure you are using an ODBC type connection instead of OLD/DB. That way all of the connection properties are set on the local machine and the report is simply looking for the System DSN name.
    HTH,
    Jason

  • How to create a Crystal Report to connect to Oracle

    Hi,
    When I create a Crystal report to connect to SQL Server, I create a stored procedure to get all data I need and connect to it from Crystal Report.(In the stored procedure, I created temp tables, used cusor etc to run data.) But now I need to use a Oracle database. I heard I need to create a package and put this stored procedure in this package. Questions:
    1. if I need to create a package, how can I call the stored procedure from it?
    2. Can I create temp table in this procedure too? I need to create some temp tables to join together to get complex data.
    3. if I want the return data from stored procedure, do I still "select ... from ..." or there is another other ways?
    I am so desperated. Please help. I know this are very silly questions. But please.

    Hi Jenny,
    We are also using Crystal Reports for our Oracle Database, we normally just select the tables we want to use or create our own SQL query.
    However, if you really want to use Oracle stored-procedure (which performs faster than a SQL query because the stored procedure is compiled in advance), you can look at this document:
    http://support.businessobjects.com/communityCS/TechnicalPapers/scr_oracle_stored_procedures.pdf
    Hope this will answer your questions.

  • How to bulid a Crystal report based on Bex query as source

    Hi,
    I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
    Thanks,

    Hi
    The Crystal Reports are integrated with BW such that the query built in BW can be used to bulit Crystal Reports on them.
    After launching the Crystal Reports, you will have and option : "Open reprt from BW" whcih will help you in opening the BW Queries and create Crystal Reports.
    Also in the Menu there is an optin SAP-->Create New Report from a Query
    Regards, Hyma
    Edited by: Hymavathi Yanamadala on Aug 13, 2009 5:52 AM

  • How to create a crystal report based on SAP R3 Tables????????????

    Dear All!!!!!!!!!!!
    I am new to SAP BO crystal reports.
    I want to extract the data from SAP R3 tables and design the crytal report. When i tried to make a new connection;
    We have lot of connection as OLAP;OLE DB and etc, I am not sure how to establish a connection between R3 tables and crystal reports. I cannot able to find documents too...
    Is there any documents available to make the connection or can anyone help me out to figure this..........
    Thanks in advance.
    Regards,
    Suman.

    Dear Efstratios Kara,
    I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
    I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
    But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
    If CR going to support SAP Table connectivity on specific version, what is that version.
    Waiting for your reply.
    Regards,
    Suman

  • How to run a crystal report in SAP Crystal Reports 2011

    I've installed SAP Crystal Reports 2011. I can't figure out how to run a crystal. What replaces the lightning bolt used in previous versions of crystal? I'm I missing something?

    Hi Tim,
    You may:
    1) Press F5
    2) Go to Report > Refresh Report (Notice the icon beside the label)
    3) Go to View > Print Preview
    4) Or, click the refresh button on the toolbar
    5) The icon on Point#2 is also available on the toolbar
    -Abhilash

Maybe you are looking for

  • HT4539 How do I listen to my purchases music?

    How do I listen to my purchased music on my I pad 2?

  • DAD and Database Authentication with db link

    I have a report that access a table via dblink and displays the result set. I am trying to implement the database authentication for this using DAD. I created the new DAD without the plsqlusername and password. When I run this application with the va

  • HP Probook 4530s Bluetooth drivers problem

    Hi, I need some help. I want to know if my laptop is equipped with a bluetooth adaptor. I'm running Windows 7 Home Premium 64-bit, and these are the specifications: HP ProBook 4530s Notebook PC (ENERGY STAR)  Serial Number:   {Private Information Rem

  • Safari Is Constantly Crashing (2)...

    Safari cannot stay operating for more than a minute. I had to install Firefox to post this. The report is: Process: Safari [278] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 3.2.1 (5525.27.1) Build Info:

  • ITunes installer package not opening up on Windows XP.

    I have Windows XP Pro, and an iPhone 3G. I've tried downloading iTunes a countless number of times. But before the installer opens up, the following message comes up. 'This installation package could not be opened. Verify that the package exists and