Using opendata set  to output a file

Hi,
I have a query in using open dataset command.
let us consider this scenario as an example.
I need to select 5 fields from mara table and I want to display the output in a flat file.Later, I have to read the data from the flat file and to display the output in sap screen.
Can someone help me on doing this and also if you send me the code , it will be useful for me to understand.
Thanks,
Stal.

Hi Stalin,
Download data to a unix file :
1) Declare parameter p_file LIKE rlgrap-filename OBLIGATORY.
(convert logical file to physical file using FM file_get_name)
2) Declare internal table and work area
3) OPEN DATASET <dsn> FOR OUTPUT
4) Retrieve data and store in internal table
5) For each record use statemet Transfer <f> to <dsn>
Upload data from unix file :
1) OPEN DATASET <dsn> FOR INPUT IN TEXT MODE.
2) Within statement Do... Enddo use READ DATASET <dsn> INTO internal table
3) Using internal table display the data in screen
With Regards,
Gandhi Subramani

Similar Messages

  • How to set an output spool file size

    hi experts,
    now i am run a output spool file transaction, if i run in a small volumn, it is only give one output spool file which is ok for me, but if in a full volumn run, it will give a multiple output spool file which is not what i want, so i was wondering if the output spool file size can be set somewhere and only give me only one output spool file when in the full volum run.
    thanks.

    Hi,
    Have you tried transaction SP01O.
    Regards,
    Atish

  • Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files but still have them on the TC for future reference..

    Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete

    When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete them, FireFox won't open. I tried deleting FireFox and reinstalling it multiple times, and a message pops up sometimes that says FireFox may not have installed correctly, so I follow the steps, but all the extra icons on my desktop don't go away. This has happened every time I have downloaded FireFox. The browser itself works, but I need to know how to get rid of these icons, but still be able to use FireFox. This is on a new computer, with Windows 7.
    == I downloaded FireFox. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    Managed to solve this myself. Just went to properties > hidden.

  • Output Mutiple Files Using htp.p

    Hello,
    I wish to output 3 CSV files from APEX I have the following code
    Declare
    S_FileName VarChar(20);
    S_Counter Number;
    begin
    -- Set the File NAme
    S_FileName :=To_char(sysdate,'yyyymmdd')||'Letters.CSV';
    For S_Counter IN 1..4 LOOP
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="'||S_FILENAME||S_Counter|| '"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    -- Loop through all rows in EMP
    for x in (select MPAN_CORE,ACCOUNT_NO
    from Categoriser.LTNA_LETTER_ONE_OUTPUT@link_to_dqmDevdb )
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x.MPAN_CORE ||','|| x.ACCOUNT_NO ||','||
    x.MPAN_CORE || chr(13));
    END LOOP;
    END LOOP;
    -- Send an error code so that the-- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true;
    end;
    At this stage i only want to output 3 files the content is not a issue
    I it possible to do this with APEX?
    Any help on this is greatly appreciated.
    David

    I take it from the lack of response that this is not somthing that APEX can do?No, it's something that HTTP cannot do. Think about it: if it was possible for a server to send multiple files in response to an HTTP request, then it would be possible to break your computer very easily indeed.
    aww well looks like i will need to find another way..You'd need something in the browser client-side, Java applet, Flash control etc...

  • ADF - Component File Download Listener - Setting the output filename

    Studio Edition Version 11.1.1.2.0
    Hi, I would like to learn how to set the output filename as current data + filename. I have a button with the component File Download Listener that has theses parameters
    Content/Type: application/pdf
    Filename: test.pdf
    Method: fullReportPDF()
    I needed that when the user clicks the button, that he return the current date + filename statically defined.
    How i may to make this?

    In a bean you implement a method which return the filen ame date and static part concatenated and set it as EL into the af:fileDownloadActionListener
    // on the page
    <af:fileDownloadActionListener contentType="application/pdf"
                                             filename="#{XYZBean.filename}"
                                             method="#{XYZBean.fullReportPDF}"/>
    // in the bean
        public String getFilename()
            String fn = (new Date()).toString() + "static_part.xyz";
            return fn;
        public void fullReportPDF(FacesContext facesContext, OutputStream outputStream) { ... }where XYZBean is the bean where you have implmented the method fullReportPDF.
    Timo

  • How to control (the input and output) EXE file after I call it using exec?

    Hi,
    I knew that I can use runtime.exec() to call one EXE file, and this works. But this EXE has two characteristics:
    1. After this exe starts, it asks user to input number such as 1 or 2 onto computer screen, then press return. Then the exe will start the calculation.
    2. after it starts calculation, it prints 3 columns of numbers onto the screen.
    My two questions are:
    1. How to use java to input the number such as 1 or 2 automatically? this EXE can not work like this in DOS command line:
    C:> file.exe parameter
    The parameter is the number such as 1 or 2 that I wanna input.
    2. how to redirect the 3 columns of numbers from computer screen to txt file?
    My colleague can solve these two questions using Mathematica. So I know that definitely there is at least one solution for it. I just can not do it using Java. This wierd exe file bothered me a lot and I really wish that I can get help from someone in java community.
    Thank you!
    Tony

    When you call Runtime.exec, you get a Process object. (I presume something similar happens when you use ProcessBuilder.) Process has methods with names getOutput, getInput, and getError. These correspond to the standard input, standard output, and standard error streams of the spawned process.
    You can read and write to the process on the streams corresponding to input and output that the process writes to the console.
    [add]
    In fact, you should be grabbing and reading the output/error streams anyway, because of the points raised by the Traps article. Google "Java Runtime exec traps" and you'll probably get a link to this JavaWorld article, which describes common Runtime.exec problems and how to solve them.
    Edited by: paulcw on Jun 15, 2010 4:09 PM

  • Set password to PDF file using ADS server

    How to set password to .PDF file using ADS(Adobe Development Service) server?
    Moderator Message: Not enough effort seen from OP. Thread Locked.
    Edited by: kishan P on Jul 14, 2011 11:51 AM

    Thanks for your prompt reply. Well forget about conversion but there should be a way to just password protect any PDF file, correct?
    We have a 3rd party tool which does that for our VB6 apps, I am surprised how come Acrobat SDK doesn't expose those Properties/Methods for VB6 model.
    Andy

  • Using scripts/image processor to output png files

    Hello,
    I need to resize a batch of pngs and would like to use scripts/image processor. My original files are png files. There appears to be no option for outputting pngs -but i must output the files as tranparent pngs.
    I'm using ps cs6 on mac os 10.6.8.
    Thanks!

    Well, I'll be…!   How come Russell Brown gets all the credit for it? ??! 
    Aha! Here are the clues:
    / ImageProcessorNG.jsx
    // $Id: ImageProcessorNG.jsx,v 1.88 2012/03/15 21:24:40 anonymous Exp $
    // Copyright: (c)2012, xbytor, Adobe Systems, Inc.
    // 2011-03-21
    // Written by [email protected]
    // c2007 Adobe Systems, Inc. All rights reserved.
    // Produced and Directed by Dr. Brown ( a.k.a Russell Preston Brown )
    // Written by Tom Ruark and Mike Shaw
    // UI Design by Dr. Brown

  • What do I do with this error message: To use this library, make sure its file permissions are set correctly.

    So I cannot even access the application. It was working fine yesterday and today I get this error message:
    To use this library, make sure its file permissions are set correctly.
    I have changed nothing. All the pictures are there on the computer. Help?!

    Reboot.  Close any programs which open at start-up.  Run Disk Utility (you can type this in the Spotlight search field at the right end of your Menubar).
    In Disk Utility, select your drive from the list on the left, and click "Repair Disk Permissions".  This will take a few minutes, but should be less than ten.
    Reboot.
    Try to open your Library in Aperture.  What happens?

  • I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I don't think that GarageBand can use wmas, but there's always good old conversion, and GarageBand can definitely use mp3s. Personally, I recommend media.io for stuff like this, but of course it depends on the size of your files. Otherwise I don't know that there's anyway to get GarageBand to work with them...

  • Extract XML output to file using PL/SQL

    Hi.
    Since Oracle 8.1.4.7.1 I am using XML output in my applications.
    With that version of Oracle, my method was:
    1. Make the select;
    2. Create a file somewhere in my C drive;
    3. Create the XML file header;
    3. For each row, insert into the file, with the correct format;
    4. Close the file;
    ... and, voilá ... the XML file was made.
    Now, with the Oracle 10g, I know that I have much more ways to do it:
    1. Package DBMS_XMLQUERY
    2. Statements like
    "SELECT XMLELEMENT("USERS", XMLELEMENT("nome_pessoa", e.nome_pessoa ||' - '|| e.login), XMLELEMENT ( "password", e.password)) AS "result"
    FROM pessoa e"
    3. Or finally using XML SQL Utility.
    My question, is that if there is any way that i can make it all of this automatically. If there is any procedure or method that allow me to do all this stuff in just one step:
    1. Select in XML output;
    2. Creation of file;
    3. Insertion of Select output in file and Close of File;
    Thankx,

    I'm assuming that you want to write to the file system of the server that the database is running on...
    you'll have to use utl_file
    See
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96612/u_file.htm

  • Aperture wont op "To use this library, make sure its file permissions are set correctly." error when opening aperture 3.4.5 library.

    Have been using fine up until Wednesday this week and suddenly cannot open file at all.
    I have around 10K images on drive but file size for library says 0bytes. When I use Alt to open it shows file and shows correct number of versions and originals but then gives the  error re permissions when trying to open.
    Have tried the repaire permissions, repair database and rebuild database all give same error about permissions and fail to start.
    HELP!
    Regards
    James.

    I think I set it to keep the images in the library not referenced but the drive did contain many pictures before I started using Aperture so i need to bring them into the library.
    How large is your library now, and how much space can you afford for your Aperture library on your internal drive?
    Or do you have a second exernal drive, that you could format MacOS Extended (journaled) to be able to temporarily host your Aperture library?
    Do you need the "Tuxera NTFS" formatting on your external drive to share image files with other systems, or would it be an option to reformat that drive?
    If you are more comfortable with a managed ibrary, by all means keep the library managed. Only it needs to be on a drive formtated MacOS X Extended (Journaled). It could be your inernal drive, if you have enough space or a locally connected external drive. Connect it to the fastest port you have; Firewire, or Thnderbolt, a fast USB port.
    Move the library there, then import the images, that you now have in separate folders on your externa drive. To prevent Aperture from importing duplicates, enable the option "Do not import Duplicates" in the import panel. If you are lucky, Aperture will recognize many of the duplicates. if you have not changed the filenames.
    I have to sign off for the next couple of hours, but will look in later.
    Regards
    Léonie

  • Aperture cannot access this library" followed by "To use this library, make sure its file permissions are set correctly."

    Hi,
    I am completely confused. I use aperture everyday and today when I tried to open it I got the following message " aperture cannot access this library" then it said to use this library , make sure its file permissions are set correctly"
    So i read a bunch of posts and opened aperture while holding down option and command and repaired the file permissions.  it did nothing, when I tried to open aperture I received the same message.   So then i tried opening it while holding down just the option key. This brought up all of my libraries but when I chose the library i use daily the same message came up.
    Does anyone know how to fix this and/ or why it is happening?
    Thank you

    No idea how to check the format, not familiar with Drobo products. Does the drive show up in Disk Utility? If so you should be able to see how it is formatted there.
    How long has this setup been in use?
    Aperture libraries have to be on locally connected drives formatted as OS Extended as per Apple (see Format external drives to Mac OS Extended before using with Aperture for example). While Aperture may work with other setups there is always the possibility that the library will become unusable at any point in time with no warning.
    Try to find out the format of the drive and post back. Maybe something can be done but from the error messages you are getting I'm thinking the best course of action will be to restore from backups onto a correctly formatted drive.
    regards

  • Using Garageband and I cannot hear previously recorded tracks on headphones.  Prefs are set to output on EMU0404 my audio device - this did work but now is not working.

    I am using Garageband and I cannot hear the previously recorded tracks on my headphones.  I am using an audio input/output device, EMU0404 - this was previously working fine but stopped.  All cables check out OK and so does the unit - I have updated to the latest version of Garageband but this did not help.  Any suggestion?

    Hi Christoph,
    I cannot see anything wrong with the EMU0404.  This is what puzzels me ... Garageband looks OK - headphones are OK - EMU looks OK.
    Thanks anyway
    Paul

Maybe you are looking for

  • What is the best way to implement default values stored in a DB table?

    [JHeadstart 10.1.3 build 78] [JDeveloper 10.1.3 SU4] We are struggling on how to best implement default values that are stored in a DB table. What we have is a database table with (CODE_TYPE, TABLE_NAME, COLUMN_NAME, DEFAULT_VALUE) as columns. This w

  • My plan to get win7 on 2nd hard drive

    Hi all, I recently bought a new 15" MPB with an apple installed 128gb SSD drive. My plan was to install a 2nd hard drive in the DVD spot, a 500gb with a 70ish GB win7 partition. I would like to use Win 7 for screencasting for windows tutorials and fo

  • Sub-report link doesn't work at run-time

    We have a main report and a sub-report linked to main-report. On clicking the sub-report link in the CR 2008 designer, sub-report page with data is rendered properly. Same doesn't work programmatically at run-time using Java SDK library (JRC). Any th

  • Canon EOS D60 CR2 raw images don't open in Photoshop.  Why?

    I know this question has been asked many times but I couldn't find a thread with an answer.  I have just taken my first images with my Canon EOS D60 (upgraded from 1000D) and find that the CR2 raw images aren't recognised by Photoshop.  I remember I

  • OS10.5.8's lost ability to scroll horizontally using scroll wheel & shift key.

    I wonder whether somebody can tell me how I can reinstate my OS10.5.8's ability to scroll horizontally using my mouse's scroll wheel and the shift key.