How to Save the  file into R/3 Server Path

Hi Friends,
I have one Query on WDJ. Here I have two requirements.
I have done click on u201CExport Excelu201D Button that data was download into Excel file Now my requirement is click on Save Button that file will save into (/exchange/CED) this path of R/3 System.
CED -
>is R/3 System ID
Under System id we can save this file.
Here EP Server and R/3 Servers in Diff Systems.
I was write codeing
InputStream text =      null;
     int temp = 0;
     try
     File file =      new File(wdContext.currentContextElement().getResource().getResourceName().toString());
//       String File = "abc.xls";
//       String file = "anat" + ".xls";
     wdComponentAPI.getMessageManager().reportSuccess("File::"+file);
     FileOutputStream op =      new FileOutputStream(file);
//       FileOutputStream op = new FileOutputStream("D://usr//sap//BPE//"+file);
//       FileOutputStream op = new FileOutputStream("D://KumarDev-BackUp//"+file);
     wdComponentAPI.getMessageManager().reportSuccess("op::"+op);
     if (wdContext.currentContextElement().getResource()!= null)
     text = wdContext.currentContextElement().getResource().read(false);
     while((temp=text.read())!= -1)
     op.write(temp);
     op.flush();
     op.close();
//        path = file.getAbsolutePath();
     path =      "/exchange/CED/"+file;
     wdComponentAPI.getMessageManager().reportSuccess("path:"+path);
     catch(Exception ex)
          wdComponentAPI.getMessageManager().reportSuccess("ex.printStackTrace()");
My Req is that file will saved in this path (path =      "/exchange/CED/"+file; )
Regards
Vijay Kalluri
Edited by: KalluriVijay on Apr 20, 2010 11:01 AM

Hi Friends,
I have one Query on WDJ. Here I have two requirements.
I have done click on u201CExport Excelu201D Button that data was download into Excel file Now my requirement is click on Save Button that file will save into (/exchange/CED) this path of R/3 System.
CED -
>is R/3 System ID
Under System id we can save this file.
Here EP Server and R/3 Servers in Diff Systems.
I was write codeing
InputStream text =      null;
     int temp = 0;
     try
     File file =      new File(wdContext.currentContextElement().getResource().getResourceName().toString());
//       String File = "abc.xls";
//       String file = "anat" + ".xls";
     wdComponentAPI.getMessageManager().reportSuccess("File::"+file);
     FileOutputStream op =      new FileOutputStream(file);
//       FileOutputStream op = new FileOutputStream("D://usr//sap//BPE//"+file);
//       FileOutputStream op = new FileOutputStream("D://KumarDev-BackUp//"+file);
     wdComponentAPI.getMessageManager().reportSuccess("op::"+op);
     if (wdContext.currentContextElement().getResource()!= null)
     text = wdContext.currentContextElement().getResource().read(false);
     while((temp=text.read())!= -1)
     op.write(temp);
     op.flush();
     op.close();
//        path = file.getAbsolutePath();
     path =      "/exchange/CED/"+file;
     wdComponentAPI.getMessageManager().reportSuccess("path:"+path);
     catch(Exception ex)
          wdComponentAPI.getMessageManager().reportSuccess("ex.printStackTrace()");
My Req is that file will saved in this path (path =      "/exchange/CED/"+file; )
Regards
Vijay Kalluri

Similar Messages

  • How to save image files into SQL Server?

    Hello, All:
    Does anyone know how to save image files into SQL Server? Does the file type have to be changed first?? Please help me! Thank you!

    You need a BLOB field (usually)... Then you can check this tutorial out:
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/exercises/BLOBPut/
    There are other exercises on that site, including one on reading the images back.

  • Uploading the file into XI Appl Server (AL11)

    Hi Guys,
    Iam trying to Upload the file into XI Appl Server (AL11) using SXDA_TOOLS.Can anyone tell me the parameters that i need to pass (Object Type,Program Type,Program  etc...) in SXDA_TOOLS for uploading the file.
    Thanks,
    Kittu.

    Object type     BUS3060
    Program type    DINP
    Program         RCCLBI03
    File type        Phisical file name
    File Name       /tmp/filename.txt
    click on Copy (Ctrl+F5) and enter the source file name by selecting the presentation server from Source frame and target file name by selecting the Application server in the Target Frame.
    Hope it'll help you.
    Regards,
    Eswar.

  • How to save the files to a USB memory plugged into the EVS-1463RT

    I am trying to collect images with EVS-1463RT by running a vi. The EVS has LV Real Time v13.0.1 installed. The vi runs well and save images to a folder ('C:\Images\') in the development PC. But, when I deploy the vi to EVS-1463RT, the vi cannot find the directory and nothing is saved in the folder. I am considering to save the files to a USB drive connected to a port on the EVS. Would it be possible to save the image files to a USB memory plugged into the EVS-1463RT? If so, what would be the file path to the USB connector?

    Thanks for the information.
    Then, the problem becomes where I get this "USB Storage Support". Search in the NI site doesn't tell me much other than something related to LabVIEW Communications System Design Suite. Is that what I need? I am not sure if I have it. If it is not easily available, another option can be using a CompactFlash card as long as I know the file path to use. Thanks.

  • How to save a file into file system from database?

    Hi!
    I am using AppEx 2.2.1.I have created a report showing the filename and id of a table. The table has a blob column containing the file.I want to hyperlink filename, so that I can go ahead and save it into my file system. But I don't know what to give in the URL field of the filename column attributes. How to get the file id of a file already in the database to link it and use? Any ideas please.
    Regards,
    Deepa.

    This is a reference for the file download:
    http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
    I have a demo page showing this as well:
    http://htmldb.oracle.com/pls/otn/f?p=31517:15
    Denes Kubicek

  • Do you know how to save Pages file into PDF?

    Using Pages on iPad I'd like to save what I write into PDF file in order to share it with my friends. Unfortunately I don't see how to do that.
    Even when I send this file via email as a PDF again it is not an attachment but it becomes body of the email itself
    Do you heve any suggestion?
    Appreciate any help on this
    Best Regards and Ciao
    Roberto

    Also, if you're using VB.NET, this is pretty easy ... something like this would work:
    Private Shared Function BitBlt( _
    ByVal hdcDest As IntPtr, _
    ByVal nXDest As Integer, _
    ByVal nYDest As Integer, _
    ByVal nWidth As Integer, _
    ByVal nHeight As Integer, _
    ByVal hdcSrc As IntPtr, _
    ByVal nXSrc As Integer, _
    ByVal nYSrc As Integer, _
    ByVal dwRop As Integer _
    ) As Boolean
    End Function
    Private Shared SRCCOPY As Integer = &HCC0020
    Private Sub SaveFormToFile(ByVal sourceForm As Form, ByVal filename As String)
    Dim formGraphics As Graphics = sourceForm.CreateGraphics()
    Dim
    bufferRect = sourceForm.ClientRectangle
    Dim buffer As Image = New Bitmap(bufferRect.Width, bufferRect.Height, formGraphics)
    Dim bufferGraphics As Graphics = Graphics.FromImage(buffer)
    Dim formDC As IntPtr = formGraphics.GetHdc()
    Dim bufferDC As IntPtr = bufferGraphics.GetHdc()
    BitBlt(bufferDC, 0, 0, bufferRect.Width, bufferRect.Height, formDC, 0, 0, SRCCOPY)
    bufferGraphics.ReleaseHdc(bufferDC)
    formGraphics.ReleaseHdc(formDC)
    bufferGraphics.Dispose()
    formGraphics.Dispose()
    buffer.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg)
    buffer.Dispose()
    End Sub
    If you copied and pasted this to your form, you could then save the form to a .jpg file anytime you want by passing the Me reference in for this first parameter and the filename that you want to save it to. For example, if you wanted to create a .jpg file in the root directory of your C drive called "Test.jpg":
    SaveFormToFile(Me, "Test.jpg")
    - Elton

  • May someone know how to save my file into HTML5?

    Hello, I have Adobe After Effect CC 2014, and I wanted to save or export my files into HTML5 with out errors, does anyone knows how to do it?  Thank you!
    regards
    BI

    Thanks for your answer, but how to export into H.264 in MP4 format since I can only select MOV format.... please advise. 
    I was trying to create some animated logo and use it for website, I export the my file into .MOV but the file size was super large (1180x512pix, 24 films/sc, file size: 452.3MB)  how do I compress the file be able to use it for website?
    regards
    BI

  • One of my Pages documents is corrupted and won't open...how to save the file?

    We have the new iPad 3, and Pages. My friend was working on adding pictures to a document we're writing, and then the next day (or the same day) we tried to re-open the file and the app crashed, every time. We cannot share, send to itunes, email, or do anything with the file, and any attempt to open it crashes Pages. On iCloud.com, the file fails to download every time, whatever the format selected. And I have most of this file (without the pictures/edits) on her PC from the old Word days, but I'm trying to recover the Pages/iPad version with all the pictures in it.
    We have the newest iPad, updated iOS, and the newest Pages update (1.6.1 i think it is).
    I have only two or three guesses as to what the problem could be:
    -My friend sometimes doesn't remember to delete pictures before adding a picture in it's place (you know, if you add a picture in a certain spot and then decide to replace the picture for a better one), so there may be 8 or 9 pictures stacked on top of each other in one place. Maybe all that rendering is jamming up the app on this particular file. Other files we've worked on with/without pictures open fine.
    -The storage is full, so it's acting up like anything else does. We're new with the iPad so we haven't figured out what to do with photos and whatnot. My Mac is configured for my other documents and my appleid/icloud, and this iPad is on my friend's appleid, so I'll have to see about what I can do to back up to her PC.
    -There's a problem with Pages 1.6.1 (which I've seen written around the web).
    Any suggestions as to what the cause, or more importantly, solutions might be? I'm backing up everything else I can externally so restoring is an option. Also, I'm lucky enough NOT to have deleted the old Pages 1.6 file in her Recycle Bin, so I have that app file on her desktop. I'm not sure whether I should try deleting the app out of itunes/the iPad, and then see about dragging the old Pages back in, or what that will do to the important files (especially the corrupted one).
    Any advice would be helpful, even if I have to buy a recovery app of some kind. Advice on how to avoid the issue or report it to Apple would also be helpful!
    P.S. I already called AppleCare and they said something to the effect of they'll try something, eventually, they're not sure, etc etc.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • How to Save the files attached in tasks

    hi experts ,
    i am using a BPM process, one requirement is to send the files across tasks. i know we have a facility in tasks where we can attach the files and send across, my question is where these files are stored during process and is there any way to access these files after the process ends(for future report generation). can we save these files in database too, so we can have the artifacts related to particular process instance available at our disposal.

    Hello,
       In CE 7.2 BPM uses the Enterprise Content Managment (ECM) infrastructure to store documents that are part of a process. ECM can be accessed via API or WebDav (among others). Here's some more information:
    [ECM|http://help.sap.com/saphelp_nwce72/helpdata/en/d7/f06a2108e64ababb6ba7b980376bc0/content.htm]
    O.

  • How to Upload the files into the SiteAssets Library by SharePoint Hosted App Model

    I want to upload the Jquery and supported files in to the Site Assest library by SharePoint Hosted Apps,
    I have created a SharePoint Hosted App, added the files in the Modules
    <Module Name="ZoneTabsFiles" Url="SiteAssets">
    <File Path="ZoneTabsFiles\jquery-1.11.2.min.js" Url="jquery-1.11.2.min.js" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\jquery-ui.css" Url="jquery-ui.css" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\jquery-ui.min.js" Url="jquery-ui.min.js" ReplaceContent="TRUE" />
    <File Path="ZoneTabsFiles\ZoneTabs.js" Url="ZoneTabs.js" ReplaceContent="TRUE" />
    </Module>
    The Apps is successfully getting activated but the files are not visible,
    Similarly I want to upload the .webpart file to webpart catalogs.
    <Module Name="ZoneTabsWebpart" List="113" Url="_catalogs/wp" Path="lists\wplib" RootWebOnly="TRUE">
    <File Url="ZoneTabs.webpart" ReplaceContent="TRUE" />
    </Module>
    The Functionality I can achieve Provider Hosted app, but Can it be done by SharePoint Hosted apps,
    Currently the app has the permission of Full Control on Site and Web 
    Thanks in advance

    Hello Ashok,
    you can use JSOM to provision the webpart files in SharePoint hosted app.
    Please see the below article for more details.
    http://www.sharepointnutsandbolts.com/2013/05/sp2013-host-web-apps-provisioning-files.html
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to save php files w/out testing server?

    Don't shoot me, I'm totally not a techie. I know HTML pretty
    well, but not php. But I did take over maintenance of a site built
    with php. I use DW MX and never installed php. The site doesn't do
    anything dynamic, but it does use includes. This is all fine, but
    here's the problem:
    My client bought DW8 and is now taking over maintenance
    himself. He's less techie than I am, by the way, but he has used
    DW4 without problems. So he's trying to play around with the site,
    creating a new file and saving it with his DW8. But he gets an
    error message saying that he's supposed to define a testing server.
    I told him to go into the edit sites section and specify "none" for
    server model and access (that's how I have it set up with my DW
    MX). He said he tried that and it still won't let him save his
    files.
    So is there some way to tell Dreamweaver that even though
    he's using a .php extension, the files don't need to be tested
    locally? I'm having a tough time helping him with a product I don't
    even have.
    Thanks.

    Have him IGNORE the error message by clicking NO.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "barngirl" <[email protected]> wrote in
    message
    news:el9tr1$br$[email protected]..
    > Don't shoot me, I'm totally not a techie. I know HTML
    pretty well, but not
    > php.
    > But I did take over maintenance of a site built with
    php. I use DW MX and
    > never
    > installed php. The site doesn't do anything dynamic, but
    it does use
    > includes.
    > This is all fine, but here's the problem:
    >
    > My client bought DW8 and is now taking over maintenance
    himself. He's less
    > techie than I am, by the way, but he has used DW4
    without problems. So
    > he's
    > trying to play around with the site, creating a new file
    and saving it
    > with his
    > DW8. But he gets an error message saying that he's
    supposed to define a
    > testing
    > server. I told him to go into the edit sites section and
    specify "none"
    > for
    > server model and access (that's how I have it set up
    with my DW MX). He
    > said he
    > tried that and it still won't let him save his files.
    >
    > So is there some way to tell Dreamweaver that even
    though he's using a
    > .php
    > extension, the files don't need to be tested locally?
    I'm having a tough
    > time
    > helping him with a product I don't even have.
    >
    > Thanks.
    >
    >
    >

  • How to RENAME the file in UNIX-Appl. server, after READING it?

    Hi Experts,
    Following is my requirement,
    What we are wanting here is the functionality added to this program that once the UNIX file is processed, that it can be closed and then renamed on the Application server with the yyyymmdd extension.  For example, the program reads and processes the My_file.csv file today.  Once it's finished, it then closes the file and renames it as My_file20080610.csv.  By doing this, it will prevent the same file from being run the next day in case the new file is not sent. 
    So, pls. let me know that, How to RENAME is file in the UNIX - Appl. server, after reading it? obviuosly I closes it at the end.
    thanq

    Hi Srinivas,
    You can create a My_file20080610.csv. Write the content from My_file.csv into My_file20080610.csv. Then using DELETE DATASET delete the file My_file.csv.
    Thanks
    Romit

  • How to save the USMT logs to MDT server during OSD

    hi ,
    How can i save the USMT logs ( scanstate and loadstate) to MDT  server .
    I am using below swtiches for Scanstate and Loadstate in CS.ini. What switches i have to use to save theses logs to MDT server i.e network location.
    ScanStateArgs=/v:10 /o /c
    LoadStateArgs=/v:1 /c /lac
    Shailendra Dev

    Try setting in your customsettings.ini rule file the following: 
    SLSHARE=\\MDTServer\Logs$\%ComputerName%
    Replace MDTServer with your MDT DNS server name.
    Of course you need to create the Logs$ share and set proper permissions
    It will copy the deployment log files at the end of the deployment to that location.
    Then look in ZTIUserState.log
    If you need real-time debugging consider using the SLShareDynamicLogging
    property
    You can use both:
    [Default] 
    SLShare=\\MDTServer\Logs$\%ComputerName%
    SLShareDynamicLogging=\\MDTServer\Logs$\%ComputerName%

  • Help ...how to get the file size on a server

    Hi.I use this code to parse a file that is on a server.
    The question is: how can i get the file size (bytes size)?
    Thanks.
    //Open the file for reading:
    URL u = new URL(entry);
    InputStream inputXML = u.openStream();
    //Build document:
    DocumentBuilder builder = factory.newDocumentBuilder();
    doc = builder.parse(inputXML);

    Try this instead:
    URL u = new URL(entry);
    URLConnection conn = u.openConnection();
    // get the file size
    int size = conn.getContentLength();
    // open the input stream from the URLConnection (which is functionally the same as opening it directly from the URL)
    InputStream inputXML = conn.getInputStream();
    Shaun

  • How to create the file on a location where user having rights?

    Hi,
    I have requirement, in my application a lot program thatcreating a report in a file and it is written into a user location. Now it specified directly like ( c:\ or d:\......).
    The problem is that the user doesn't have rights to access that directories. What i suggest or feel i want to create that particular reports on a location where the end user having rights.
    Basically in Windows system %userprofiles% having right to do anyting. Suppose the OS installed in C: the %userprofiles% c:\documents and settings\username or D: then D:\Document and settings\username.
    How to achieve this please help me.
    Good help will be appreciated.
    kanish

    Hello,
    The best practice would be to create the file in My Documents for the current connected user to the windows.
    Unfortunately, you did not mention your forms version. In older version like 6.x there is function in d2kwutil library called Read_Registry in win_api_environment section and in latest versions the same function availble in webutil library with client_ name.
    So, you can read the registery for current connected user by using the above mentioned function from the following path of registry.
    My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    There is an entry called Personal. Read the path from that entry at runtime while generating/saving file to the client's location and save the file into that path.
    -Ammad

Maybe you are looking for

  • How to simulate a dml error in order to test try-catch code block inside a stored procedure

    Hi, What would be the easiest way to simulate a dml error in order to test a try catch block. I would like to do it with a simple command from outside the stored procedure if possible. I tried dropping the table that was updated but it hangs Thanks,

  • Unable to BOOT-Windows XP

    Hi,     Just a few days back when i was surfing the net and the computer suddenly restarts and I get this Blue Screen and at the end it says,"Beginning to Dump Physical Memory". I restarted the computer and then no error message. The next day when to

  • T500: Can't get WLAN to work!! HELP

    Hey all, new to the Lenovo community so sorry if I sound like a noob. I just bought a Thinkpad T500- 2056 CTO (Vista Business) from a colleague of mine. I searched the internet for the specs of this notebook and saw that it was equipped with an integ

  • Product ID Compatability

    Can I use: com.democratandchronicle.rochestermagazine.february2012 In the guide it says: Under Details, specify a Reference Name and Product ID. This Product ID must be identical to the Product ID you use when publishing the folio. Use the "com. publ

  • My album didn't download and they charge my credit card

    I need to know how can download my album because it didn't download and appears as bought but i don't have it on my itunes help!!