Save a csv file on local host, executing a DTP Open hub in a Process chain?

Hi All,
my client has asked me to try if there is a way to save in the local host c:\  a .CSV file generated from an Open HUB executed by a DTP in a Process chain.
when i execute my DTP it work correctly and it save the .csv file on my c:\ directory.
my client doesn't want to give th users authtorization on RSA1 and want to try if there is a way to put the DTP in a process chain
and when executing the process chain every user can have the file on his own local c:\ directory.
i tried this solution but it doesn't work i get an error on executin the process chain:
Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
Except.                     CX_SY_REF_IS_INITIAL
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
     caught in
    procedure "FILE_DELETE" "(METHOD)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "CL_GUI_FRONTEND_SERVICES=>HANDLE").
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
can you give some advices please?
Thanks for All
Bilal

Hi Bilal,
Unfortunately, DTPs belonging to Open Hubs wich are targeted to a local workstation file, can't be executed through a process chain. 
The only way of including such DTP in a process chain is changing the Open Hub so that it writes the output file in the application server.  Then, you can retrieve the file -through FTP or any other means- from the application server to the local workstation.
Hope this helps.
King regards,
Maximiliano

Similar Messages

  • Simple save as .csv file

    Hi,
    is it possible to simplyfie the save as .csv file dialog? etc. by using filedialog in vba?
    each time i save as .csv i need to say yes to save in older format, select wich map i want to use...
    if i in VBA could have som file dialog brosing to the file i want to use etc.:
    stringtosave = "c:\testfiles\test.csv"
    and then call:
    FileSaveAs Name:=stringtosave , FormatID:="MSProject.CSV", map:="MapiwillUse"
    Regards
    Toni

    Hello Toni,
    I haven't had time to test this myself (it's Saturday!), but i suspect if you bracket your FileSaveAs command turning the MS Project alerts off and back on again, the alert box you're seeing will be suppressed:
    Application.DisplayAlerts = False
    FileSaveAs Name:=stringtosave , FormatID:="MSProject.CSV", map:="MapiwillUse"
    Application.DisplayAlerts = True
    If you wanted to get a dialogue to browse for the folder, you'll need to use an API call. Chip Pearson has posted a how to guide on how to browse for a folder using the API call "SHBrowseForFolderA". His website focusses on MS Excel VBA, but I've
    used this code myself in MS Project and can confirm it works the same.
    http://www.cpearson.com/excel/browsefolder.aspx
    ####Update####
    Rereading your question after posting my response, I think you'll want to browse for a file rather than a folder, which is a different api call - "ahtCommonFileOpenSave".
    I did a quick google search and the clearest example I came across was this one - again, not written for MS Project, but the code is the same:
    http://access.mvps.org/access/api/api0001.htm
    Andrew

  • How to save a csv file in a local directory

    I am trying to save a regular csv file in a local directory. Any suggestions of how I should approach it. And also I was wondering how I would email that csv file to multiple users

    Use a PrintWriter and a FileOutputStream. Look in javax.mail.* for API's to do mailing, or open a socket connection to a pop server and post it.
    Posting these kind of questions to "new to java" might be more appropriate...

  • Uploading Large csv file from Local File

    I have a 6GB csv file which I created on my local machine which is named TrainDF.csv.  I can't upload it directly as it exceeds the 1.95GB size limit uncompressed.  However, I tried saving it as an RData file (as well as a zip file of the RData
    file) and uploading that, however my R code throws an "unable to open connection" error when I try to load this data with an R Script with this code.
    load("src/TrainDF.RData"); maml.mapOutputPort("TrainDF");
    I have even tried:
    load("/src/TrainDF.RData");
    load("./src/TrainDF.RData");
    load("~/src/TrainDF.RData");
    TrainDF <- load("/src/TrainDF.RData");
    TrainDF <- load("./src/TrainDF.RData");
    TrainDF <- load("~/src/TrainDF.RData");
    Same error for everything.  What would be the simplest most straight-forward way to get a 6GB csv file usable as an input for an experiment from my local machine?  I may need step by step instructions on this one depending on the answer. 
    Also, if a complete step by step answer to this question can be found somewhere please post a link to it.
    Thanks in advance,
    Bob
    P.S.  I know the data is actually there,  I am able to download it.

    Yes, all appears to work now.  I have a bad habit of interchanging a csv file with a dataframe in R when I talk because they are so trivial to interchange.  I meant a saved (RData) object containing a dataframe that was originally loaded from
    a csv file.  My problems were not knowing specifically how to write the path to the src folder and I didn't even think about using a different input.  Hopefully documentation should be coming out in the future which clarifies these things. 
    In my opinion information on how to get info in and out of Azure ML is somewhat lacking.  Although, I must say this is truly impressive work you guys are doing and not only that you are getting it done at a mind-boggling pace.  So good job on that. 
    Thanks for your great help and fast response!

  • How to save a .csv file to database server

    Hi every body,
    I need to upload a .csv file from the client machine and save it to a directory in a database sever.
    I could do the uploading part. Can anyone tell me how to save the file?
    Another option is save the file as a CLOB in a database column. But I'm not aware of doing that too.
    Please guide me.
    Thanks in advance.
    Surangi.

    See Steve Muench's Not Yet Documented Example #85 at http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#85. While this is for 10.1.3, this is still relevant for 11g. Steve's example is for uploading to a BLOB - same thing for a CLOB. Once your data is in the database, you can use the DBMS_LOB package to write the file to a directory on the database server, if you like.
    Also the Developers Guide is your friend - Chapter 9.9 in the Fusion Web User Interface Developers Guide for Oracle ADF 11g, or 19.6 in the ADF Developers Guide for Forms/4GL Developers for JDeveloper 10.1.3.

  • BO 4.0 save as csv file format issue

    Hi All,
    We are using BO 4.0 Webi for reporting on SAP BW 7.3 system. Some of our reports have to be scheduled to bring the output in CSV file format. When I schedule the report in CSV format, the final output has data in two sets. The first set has the list of columns which I have selected in my report. Starting on the next row I get to see the second set of data with all the objects selected in the query panel including the detail objects.
    We only need the data for the columns which is selected in the report, but it is bringing the dump from all the objects in the dataprovider.
    Can anyone tell me how to get rid of the second set of data in the same csv file ?
    Thanks,
    Prasad

    Hi,
    CSV format is reserved for 'data only' dataprovider dumps. it exports the entire webi microcube (query results)
    You don't get that option when going 'save as' - which preserves the report formatting - in which case you should consider .xls
    regards,
    H

  • Copy file from local host to remote host

    Hello,
    I need to copy a simple file from local file system , to another computer on the same network.
    How should i do that in a simple java program ?
    Thanks !

    Well , I tried that from winXP to winXP on another machine and it worked great :
           InputStream in = new FileInputStream(new File("C:\\temp\\myFile.txt"));
            OutputStream out = new FileOutputStream(new File("\\\\9.143.85.143\\c$\\tmp\\myFile.txt"));
            // Transfer bytes from in to out
            byte[] buf = new byte[1024];
            int len;
            while ((len = in.read(buf)) > 0) {
                out.write(buf, 0, len);
            in.close();
            out.close();
      BUT, in order to copy to a linux machine, I tried to put this as the new File :
    OutputStream out = new FileOutputStream(new File("\\\\9.143.86.145\\root\\tmp\\myFile.txt"));
      and it doesn't work. How should I format the new File path in order to copy to a linux FS ?
    Thanks !

  • File Open failed Error in Process Chain

    Hi,
    Our process chains are failing at the last step of event trigger.The file is not getting created in the directory as a result of which the BO reports are not getting triggered.Kindly help.
    Regards,
    Shalaka

    Pl find the below code:
    DATA mesg(80) VALUE 'BW load complete. Ready for BOBJ Refresh. File Created on : '.
    DATA fname(60).
    DATA pc_flag TYPE rspc_state.
    * Get the folder and file name from parameter
    PARAMETERS p_fname TYPE string LOWER CASE.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
       fname = p_fname.
    *Add the system date into the file.
       CONCATENATE mesg sy-datum INTO mesg.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
       EXPORTING
    * PROGRAM =
      activity = 'DELETE'
      filename = fname
      EXCEPTIONS no_authority = 1
             activity_unknown = 2
             OTHERS   = 3 .
       IF sy-subrc = 0.
    *Delete the file if it is already existing
         DELETE DATASET fname.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ELSE.
         MESSAGE i051(rsar) WITH 'No Authorizations to delete the file'.
       ENDIF.
       WAIT UP TO 65 SECONDS.
    *Set the flag for the process chain to read if file deletion fails.
       IF sy-subrc <> 0." The ABAP program failed
         pc_flag = zcl_abap_bobj_event_trg=>failed.
       ELSE. " The ABAP program was successful
         pc_flag = zcl_abap_bobj_event_trg=>success.
       ENDIF.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
         EXPORTING
           activity         = 'WRITE'
           filename         = fname
         EXCEPTIONS
           no_authority     = 1
           activity_unknown = 2.
       IF sy-subrc <> 0.
         MESSAGE i051(rsar) WITH 'No Authorizations to Write to file'.
       ELSE.
    *Create the file based on the input from variant including folder and file name.
         OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *Set the flag for the process chain to read if file creation fails.
         IF sy-subrc <> 0.
           MESSAGE i051(rsar) WITH 'File open failed.'.
           pc_flag = zcl_abap_bobj_event_trg=>failed.
         ELSE. " The ABAP program was successful
           TRANSFER mesg TO fname.
           pc_flag = zcl_abap_bobj_event_trg=>success.
         ENDIF.
         CLOSE DATASET fname.
       ENDIF.
       EXPORT e_state FROM pc_flag TO DATABASE indx(bo) ID
       zcl_abap_bobj_event_trg=>status_idx_id.

  • How do I prevent Save as .csv file alwways appending .txt to the filename if I choose the "Open with" action?

    My ASP csv download page is calling:
    Response.Clear
    Response.AddHeader "content-disposition","attachment; filename=filename.csv"
    Response.ContentType = "Content-Type: text/csv; charset=utf-8"
    When I click on the link to this ASP page the Firefox "Opening filename.csv" dialog appears:
    filename.csv
    which is a: Text Document
    If I choose "Open with <Any Application name>" the file is always opened by the application with a .txt appended to the filename, which in this particular case prevents my spreadsheet software from correctly opening it.
    a) How do I prevent the .txt being appended to the file name if OpenWith is used?
    b) Is there a way to add a CSV type to the Tools->Options Applications Content Type list to prevent the "which is a: Text Document" message?
    This behaviour does not happen in Chrome, Opera, Safari or IE.

    Is there no entry in Application Options for text/csv?
    orange Firefox button ''or'' classic Tools menu > Options > Applications
    In the search box, type csv and pause while Firefox filters the list.
    If you have Microsoft Office installed, the dialog typically lists "Microsoft Office Excel Comma Separated Values File (text/csv)" (you need to display the mouseover tooltip to see all of it).
    I assume Firefox extracts this information from the registry. If you want to reset the Application Options and have Firefox rebuild them, the method is described in this article:
    https://support.mozilla.org/en-US/kb/cant-download-or-save-files#w_reset-download-actions-for-all-file-types ("Reset download actions for all file types")

  • Could not save *.* because file is in use or was left open...

    OK, I mentioned this when it happened with .eps files, and rather than get a single useful tip(Except for 'choose a new file name'), I got a series of responses from people telling me how I should be saving in .tiff and 'eps files aren't any good anyway, etc., etc... IN other words, no help, just a bunch of opinions on what I was doing wrong in the first place.
    Well, now I have had it happen with a .tiff file. I opened the file, did some work, and went to re-save it, and I got the error that it could not save the file because it was in use, or had been left open.
    Anybody got any suggestions on why this is happening?
    Mac OS 10.4.1
    Dual 2.66 GHz Dual core Intel Processors
    2 Gb RAM
    Photoshop CS3

    OOPs I forgot to paste the Adobe help message so here it is;
    understand that you receive an error when you try to edit Lightroom
    images in Photoshop® CS3.
    If you have not already done so, update to Photoshop Lightroom 1.3. In
    Photoshop Lightroom, choose Help > Check For Updates. You can also
    download the update from the Product Updates page on the Adobe website.
    Try specify Photoshop CS3 as the Additional External Editor in your
    Lightroom preferences:
    - Click the Lightroom menu and choose Preferences.
    - Click the External Editing tab.
    - Click the Choose button under the Additional External Editor
    section.
    - Browse to the Photoshop CS3 application file and click Choose. If
    Lightroom gives you a warning, select Use Anyway.
    - Select an image in the Lightroom Library module, click the Photo
    menu and choose the second option for Edit In Adobe Photoshop CS3.
    If this does not resolve your issue, it is possible that files from
    Photoshop CS2 are interfering with your workflow. To completely remove
    Photoshop CS2 files from your computer, follow the instructions in the
    following document on our website:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=331404
    <(>&<)>sliceId=2
    If this does not resolve your issue, it is possible that your Lightroom
    catalog is damaged. To test the integrity of your catalog:
    - Launch Lightroom while holding the Ctrl key on your keyboard.
    - Check Test integrity of this catalog
    - Click the Select button.
    If you have a large number of photos in the catalog, Lightroom may take
    some time to complete the testing process and finish launching.
    If that does not resolve the issue, quit Lightroom, launch it the same
    way and create a new catalog in the Select Catalog window.
    If you continue to experience the issue, try the steps in this general
    troubleshooting guide on our website:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=333653
    <(>&<)>sliceId=1

  • Error on Windows 7 RC 64bit - "Could not save because the file is already in use or left open."

    This is constantly happening when I try to save and replace a JPG in the same folder or save as a copy in the same folder. Sometimes it seems to happen when I even save to another folder, though I've also been able to workaround this by doing that (though it's inconvenient and messes with my folder structure).
    A tmp file is saved successfully every time, and I can manually rename the tmp file to the desired filename (as another very inconvenient workaround).
    I see on these Forums that this save error is somewhat common in Adobe products, but I don't see a report of this consistently happening on this particular platform. I appreciate it's a beta (RC) of Windows 7 and therefore may not be technically supported (yet?).
    Any ideas or fixes please?

    Try resetting the editor preferences by pressign alt + ctrl + delete key on start and clicking edit on welcome screen.
    -Garry

  • I want to save a html file to server and then want to open it.

    Requirement: I'm having an applet which is having a button named letter. When a user clicks on the button, following should happen --> An event will occur which will read some data from backend system(mainframe) and will store that in a string variable. A html file is created using this data in the body part, and then it should open in a browser.
    My problem is how can I launch(open in a browser) this html file.
    1) Is it possible to launch this file without storing it on hard drive.
    2)To use Runtime.getRuntime.exec(cmd.exe /c start filepath) , I need to store this file somewhere. How can i store this on server?

    1) Can you please give me an example showing how i can use Jtextpane.For html, JEditorPane (instead of JTextPane is better)
    For examples, go through these tutorial trails:
    [http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html]
    [http://java.sun.com/docs/books/tutorial/uiswing/components/text.html]
    2)Also please tell me how to save the file on user's machineSee this trail:
    [http://java.sun.com/docs/books/tutorial/essential/io/index.html]
    and how can i delete the file from user's machine once it is closed by the user?Very simple, read the api docs: [http://java.sun.com/javase/6/docs/api/java/io/File.html#delete()]
    Thanks!

  • How to create  a datasource for 0COSTCENTER to load data in csv file  in BI

    how to create  a datasource for 0COSTCENTER to load data in csv file  in BI 7.0 system
    can you emil me the picture of the step about how to  loaded individual values of the hierarchy using CSV file
    thank you very much
    my emil is <Removed>
    allen

    Step 1: Load Required Master Data for 0CostCenter in to BI system
    Step 2: Enable Characteristics to support Hierarchy for this 0Cost Center and specify the External Characteristic(In the Lowest Node or Last Node) while creation of this Characteristic InfoObject
    Step 3: On Last Node of Hierarchy Structure in the InfoObject, Right Click and then Create Hierarchy MANUALLY by Inserting the Master Data Value as BI dosent Support the Hierarchy load directly you need to do it manually....
    Step 4: Mapping
    Create Text Node thats the first node (Root Node)
    Insert Characteristic Nodes
    Insert the Last Node of the Hierarchy
    Then you need to create a Open hub Destination for extracting data into the .csv file...
    Step1 : Create the Open Hub Destination give the Master Data table name and enter all the fields required....and create the transformations for this Open Hub connecting to the External file or excel file source...then give the location on to your local disk or path of the server in the first tab and request for the data...It should work alright let me know if you need anything else...
    Thanks,
    Sandhya

  • Open Hub Services, Format of files

    Hi everybody
    Does anybody knows how to create a CSV file in ascii format using an open hub in a process chain ?
    On my system which is a unicode it seems to be as if I could only produce unicode file when I use the process chain.
    Thank you for your help
    Alex

    Hi,
    Load the data into cube as normal process of process chain, then the second step is u should create an info spoke using RSBO, dran and drop the info spoke after the cube data load, there while u r creating the Info spoke it will give u the option of file transfer whethere u want to tansfer it as a CSV , ASCII file.Hope this helps.

  • How do i save and access a csv file on my ipad when filling in a smartform. Currently only option goes to photos

    Trying to save a csv file on my ipad so I can auto populate into a SmartForm. It will only allow me to access photos when I hit the import button

    search the app store for PDF Writer. I've found a lot that will convert documents to PDF, but none yet that will write within the PDF. One thing you want to avoid are cloud based apps. Any of them that talk about editing on the cloud, etc, aren't going to be as standalone as you want.
    It's possible, if you can take your template PDF, turn it into a word document that you can edit, you can then convert that to PDF...kinda a workaround way to do what you want. And apps that convert to PDF are much easier to find

Maybe you are looking for

  • I recently found my old Ipod 4, I cant download apps

    I restarted it and removed all restrictions and it still refuses to work -.-, ive looked up EVERYTHING i have searche dover and over and it doesnt work WHAT THE **** IS WRONG WITH THIS STUPID ******* THING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :'(

  • How do you assign the user who has logged in current session ?

    Hello, in oracle forms , you could assigned user who has logged in to any field , e.g field_name := USER_ID; I need to assign the user who has logged to a field in jdeveloper 12 . How do you do that please ? Thanks.

  • Creating an xml file - urgent

    hi ! i want to create an xml file frim hierarchical data (n depth) . please advise me how to create xml file using dom and how to write dom elements to disk...

  • How to change Bulk Insert statement from MS SQL to Oracle

    Hi All, Good day, I would like to bulk insert the content of a file into Oracle db. May I know how to change the below MS SQL syntax to Oracle syntax? Statement statement = objConnection.createStatement(); statement.execute("BULK INSERT [TBL_MERCHANT

  • EXTERNAL microphone not working on T61, Colleagues with T61s having same problem

    I am unable to get any external micophone to work with my T61.  A colleague of mine spent hours with Lenovo support trying to get his to work but was never able to.  The internal microphone works but the quality is low.  I have tried several external