List of files (for processing using UTL_FILE)

We have an APEX (v2.2) application that needs to load data in from flat files. These files are in a directory on the server that is accessable to code in the UTL_FILE package and are simple csv and fixed format text files.
The problem is the file names change and the users want to see the filenames on screen in the APEX app so they can select which file to load in.
How can we get a list of files in a directory on the server to show on screen ? Once we have a filename, it can be processed by the UTL_FILE package code OK, we just need to be able to get the filenames !

On AskTom there is thread that will answer to you:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584

Similar Messages

  • IU Elim. "No data found for processing using current selection conditions""

    Dear Experts,
    While Executing task of Interunit elimination  in Consolidation Montior  I am getting Message "No data found for processing using current selection conditions"
    Ex. is
    A)
    In Unit X
    GL (399999) Account     Dr. 65000 (Customer Recon. Ac.)   (with Trading Parter X)
    GL (499999) Rev.A/c           65000 (with Trading Parter X)
    In Unit Y
    GL (199999) Exp. A/c     Dr. 65000   (with Trading Parter Y)
    GL (299999).Account           65000 (Vendor Recon. Ac.) (with Trading Parter Y)
    B) GLs in info cube in 0FIGL_C01 are :-
    GL Account---CCode--Trading PartnerDebit--
    Credit
    199999--YY65000-----00000
    299999--YY00000-----65000
    399999--XX65000-----00000
    499999--XX00000-----65000
    In COnsolidation WorkBench
    1) I have created Document Type
    2) Method-
      In  General Tab
       a) Two SIded Selection
        b) Per Transaction Currency Selected
    In Selection Tab
    1St Selection
    GL Account = 299999 (Customer Recon. Account)
    Company    = X
    Trading Partner = X
    1St Selection
    GL Account = 399999 (Vendor Recon. Account)
    Company    = Y
    Trading Partner = Y
    Difference Tab
    a) Post Diff to "Unit from Selection 1"
    b) Key Figure "Period Value GC
    c) Check Limit Per Difference Row
    Other Differnce
    GL Account = 100099 (Other GL)
    Currencyce Diff
    GL Account = 100510 (Other GL)
    Question :-
    1) Is the posting is appropriate and does it attracts IU Elimination?
    2) The Infocube Details are correct?
    3) Any Config issue
    May any one suggest, Why Am I not able to get the data?
    Thanks
    Rakesh Shrivastav

    Dear Sir,
    Following are the View at my end in context to your suggestion
    1. check the BCS totals data to ensure trading partner is included.
    THis is the view of Source Info Cube 0FIGL_C01
    GL Account---CCode--Trading PartnerDebit--
    Credit
    199999--YY65000-----00000
    299999--YY00000-----65000
    399999--XX65000-----00000
    499999--XX00000-----65000
    2. Execute the task for the cons group that includes both cons units X and Y
    The COns Group Is XYZ
    X- Cons Unit
    Y- Cons Unit
    In Cons Monitor I am executing Test run at XYZ level
    3. Although the trading partner for cons unit X should be Y and vice versa, the elimination should still occur with the cons unit X and trading partner X records.
    Same as the query description
    4. make sure that the items 199999, 299999, 399999 and 499999 are included in the elimination method for either selection 1 or selection 2.
    The Method Selection Tab View is
    1St Selection
    GL Account = 299999,199999
    Company = Y
    TP = Y
    2Nd Selection
    GL Account = 399999,499999
    Company = X
    TP = X
    What is your View On That?

  • Help me out to get the jar files for FileUpload using MyFaces.

    hi,
    Can anyone help to get the jar files for FileUpload using MyFaces.
    I want myfaces-extensions.jar and commons-fileupload-1.0.jar.
    Thank you.

    you can't control the speed of a for-loop.
    you can remove your code from a for-loop and use a function to execute the code in your for-loop and you control how frequently you call the function.

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • Reading all files on directory using "utl_file" package...

    I need to read all files in directory via PL/SQL. I don't know
    name files (are data dynamics create for automation system),
    only I know your extensions.
    Can I do this using the package "utl_file" or I need to create
    program in another language (C, C++, for example)?
    Any ideas...
    Thanks.

    Hi,
    you can't do that with the UTL_FILE package (it can't retrieve
    file names).
    A very simple solution would be, if you created on OS-level a
    file which contains the filenames of directory and then read this
    file using UTL_FILE. With the information on all file names you
    can enter a loop which opens and reads all files again using
    UTL_FILE.
    A more mundane solution could be to use the features on the iFS.
    Cheers
    Gerald

  • How to search a .csv file for data using its timestamp, then import to labview

    Hi, I'm currently obtaining density, viscosity and temperature data from an instrument, adding a timestamp and writing it to a .csv file which I can view in Excel. This works fine (see attached code) but what I need to do now is to search that csv file for data which was obtained at a certain time, import the temperature, density & viscosity values at this time back into Labview to do some calculations with them, while the data acquisition process is still ongoing.
    I've found various examples on how to import an entire csv file into labview, but none on how to extract data at a specific time. Also, whenever I try to do anything with the .csv file while my data acquistion VI is running, I receive error messages (presumably because I'm trying to write to and import data from the .csv file simultaneously). Is there some way around this, maybe using case structures?
    If you need to know my skill level, I've been using Labview for a few weeks and prior to that have basically no experience of writing code, so any help would be great. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Lemis VDC-30 read registers MODBUS v5.vi ‏56 KB

    It sounds as if you are going about this a little backwards writing to a data file and then extracting from the file but its the weekend so I can't think of an improved way to do it at the moment. 
    Searching for a specific time with those specific values is quite easy, or if you wanted to select any time then you could interpolate the values to find any value that you want (This is where the contiguous measurement comes in, as you have readings at discrete times you will have to interpolate the values if you want to get the 'measured value' at a time point that is not exactly one of your measured points).
    If you can extract the TDMS time column and the T, D & V then simply thresholding and interpolating each of your array/data sets should allow readings at your desired times.
    Attachments:
    Interpolate.png ‏301 KB

  • ICR - Importing File for process 003 + 001

    Hello sap colleagues,
    We have an issue with ICR and I hope someone can give me a hand with it.
    We have included process 001 into process 003.
    Now we are working in the definition of the file structure so that companies from outside the reconciliation system can send us their documents.
    According to what we have read so far, we understand that if ATYPE is C, the account will go to the field RCUST and if ATYPE is V it will go to the field RVEND.
    Our problem is, What do we do with the GL Accounts Open Items coming from process 001? Which account type shall we use so that when we import the file the system knows is a GL Account and not a Vendor or a Customer?
    We have tried to leave it blank and it doesn't do anything.
    We have also tried to enter ATYPE = G and it doesn't do anything either (er read this in a SAP Note).
    We saw another post where it says the GL Accounts go to the field RCUST but it doesn't work.
    Also, does field HKONT or RACCT has to be added to the ICR tables for Process 003?
    Coudl anyone please tell me how to do it? We a bit desperate to make it work...
    Any help will be very much appreciated.
    Thanks in advance
    Regards
    Isabel

    Hello Isabel,
    It really depends on what you want to do with the information "account number"...
    If you want to differentiate between receivables and payables for G/L open items - do you want to do that based on the account number of based on the amount (positive / negative)?
    What object groups do you currently use and how are they set up?
    I'll give you some examples of what you can do - assuming you use the standard setup with object groups "Payables" and "Receivables" with "Payables" defined as RVEND > SPACE and "Receivables" defined as RCUST > SPACE.
    Minimalistic approach:
    Define your upload structure so that the column is uploaded as field RCUST - now the GL account number will be in the field RCUST and all uploaded G/L OIs will be treated as receivables (if you even differentiate between payables and receivables in FBICR3; if you just have one object group "Open Items" then this is not really an issue). If you upload as RVEND, everything will be treated as payables.
    Distinguishing between AP and AR:
    Define your upload structure so that the column is uploaded as field RCUST. Then implement BADI method CHANGE_DATA_TABLE for event '8' to implement whatever logic you would like to use in order to distinguish between AP and AR. You must have note 1475612 implemented for this event to be used. Then fill fields RVEND and RCUST accordingly. Just make sure that in the end you don't have both RCUST and RVEND filled... You could also prefix the account number with a 'G' so you can see that this is not really a customer/vendor account number but the integrated GL account number.
    If you want to have the unmodified GL account number available in ICR process 003 you should add RACCT as a custom field. Then you can also upload the GL account number into that field and then fill RCUST / RVEND according to your requirements and still have RACCT available to display in FBICR3.
    Hope this helps
    Ralph

  • "dtutil", how to tell which configuration file for packages using after deployment?

    Hello All, 
    Trying to achieve this feature, 
    Using DOS command to automatic my deployment process--glad I found dtutil. However, it doesnt give you any chance to identify which configuration file to be used by SSIS packages after deployment.
    Deployment Method: file deployment
    Configuration sued: XML file and SQL Table. IN XML file, it tells which DB connection for packages to look up the configuration table.
    Who can share some thoughts on this?
    Derek

    It is NOT about sequence.
    It is about how to point which configuration file to be used by deployed packages as during the "dtutil.exe"
    deployment, you dont have chance to identify which physical location confg files to be used.
    Derek
    That you do only at the time of execution of packages. By default it uses configuration settings created at design time within the package. If you want to override it, you can use \Configfile switch of dtexec for that. You can also set explicit values for
    properties using /SET switch
    http://technet.microsoft.com/en-us/library/ms162810(v=sql.105).aspx
    See this to understand how configs are applied in runtime
    http://technet.microsoft.com/en-us/library/ms141682(v=sql.105).aspx
    and this to understand behaviour difference in ssis 2008 
    http://technet.microsoft.com/en-us/library/bb500430(v=sql.105).aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Restricitng XI to pick fixed number of files for processing

    We get close to 4000 files for XI to process(file to File scenario)
    We want XI to pick 500 at a time for processing..
    How do can we restrict the number files picked at a time
    .I increased the polling time form 60 secs to  5 mts..still it picks all files at a time causing the Java stack to crash
    Points will be awarded

    Hi
    I don't think there is a standard option in the file adapter to control the no of picked files .
    Using bpm also won't help.
    May be you can use a temperory file name.
    Before the file pick run an OS script which will rename only 500 files at a time..so that it can be picked by the file adapter.
    run the script using 'Run OS cmd' option before file processing.
    rgds
    Arun

  • How can I export songs with full info (INCLUDING LYRICS) to file for future use? [x]

    Hi everyone,
    I got my new iPod touch 4th gen, and I spend literally all day to edit songs' info like Artist, Lyrics, Album... with like thousand songs.. Then I've tried to export them fully for future use as back up, but I could not find any option to do so. Exporting library and playlist only saves info for basic tags but no lyrics in it. So what should I do? I've tried iTunes Export and mp3Tag but I still could not do it.
    I would appreciate much any help for me to back up full information of songs for future use.
    Regards,
    [x]

    Thanks for the responses.
    I forgot to mention the dimensions I need the file to be at, sorry. Overnight Prints requires that the uploaded file be at 2.13 inches wide by 6.13 inches high (or 638 by 1838 pixels) at 300 dpi. I think I understand what Scott Falkner means by pixels are not a unit of measure. However, I have been using inches in Illustrator, with the file being set to the height and width (in inches) required by Overnight Prints.
    Here is what I have uploaded to Overnight Prints so far:
    - Illustrator file set to 2.13 inches wide by 6.13 inches high – Upload preview on Overnight Prints is correct size, but shows the bookmark as pixelated/blurry.
    - Saved above Illustrator file as copy: “Press Quality Preset” PDF – Upload preview on Overnight Prints is correct size, but the bookmark is still pixelated/blurry.
    - Exported same Illustrator file as a PNG (638 pixels wide by 1838 pixels high - 300dpi) – Upload preview on Overnight Prints is correct size, but shows the bookmark as pixelated/blurry.
    - Creating an Illustrator file at 638 by 1838 pixels makes any file that is uploaded preview on Overnight Prints as too large, but not pixelated/blurry (I think I now understand why, just covering all my bases).
    So, I guess my more specific question would be:
    How can I create a file that I can upload to Overnight Prints (TIF, PDF, JPG, EPS, PNG, or AI) that ends up at the dimensions (in inches) required, while not appearing (at least in the upload preview) as low resolution (pixelated/blurry)?
    Thanks in advance for any responses (especially to such a novice question).

  • Logo Kit help- how to prepare logo files for office use?

    Hi, I need assistance preparing ready-made logo files for our office owners to use. So far, I have the following that I've created in Illustrator:
    1. EPS files with Pantone colors for professional printing (publications, ads, brochures, business cards, etc)
    2. I converted the EPS files into RGB 72 dpi JPEG and GIF files (small, medium, and large sizes) for various online and digital uses (PowerPoint presentations, e-mails, online forms, social media pages, etc.)
    3. I also converted the EPS files into CMYK 300 dpi TIF files for in-house printing (in small, medium, and large sizes)
    #3 is where I need the most assistance. These files are for the office owners to import and arrange into their own publications that will be printed inside their own office. During the test run, I was notified of color variances that were happening- the logo files were being inserted into Word documents that were then converted into PDFs. In a few cases (when the document was saved as PDF, or exported as a PDF in the print preview), the colors appeared pretty accurate (at least on screen, they were not printed) but in a case when the document was being exported as a PDF in the Adobe Standard Add-on, the colors were very off (appeared much more vibrant). During researching the issue, I am starting to lean on provided these types of files with RGB colors (especially if they will be using them in Microsoft Office). Let me know if this is correct - I am still a bit confused though, since I've always thought that files that are to be printed must be in CMYK, not RGB.
    How should I be preparing these types of files?
    Thanks!
    Also, any quick tips for the EPS or online RGB file preparation when saving? I made sure to embed colors in the RGB files for color consistency within browsers. For the EPS, I made sure to embed fonts. Anything else I should be keeping my eye out for?

    if the color conversion would be accurate to the original that way.
    If you worry about that in the context of using Office apps, you might as well shoot yourself or jump out of the next window. You simply won't know and unless they work on calibrated monitors and printers (which is extremely unlikely) your precautions with embedding color profiles and all that mean pretty much nothing. The same for your web stuff - unless there is an active monitor color profile on the system, browsers won't do any color management. That's even more the case for mobile devices. So in summary, you can really only output it based on your calibration and hope it matches their systems and a standard sRGB profile reasonably well.
    Mylenium

  • Converting sequence or QT file for Web use

    I have a short 13-minute sequence that I need to convert to a QT file in order to then convert to flash for posting to our Web site. I've done this multiple times today with no luck in reducing the file size. By exporting using Quick Time Conversion, using my default settings for compression (H.264) type, the file size of the final .mov file was 200-some MB. After changing my settings to a lower quality final product, I now have a file .mov that is 2GB!?
    I have several files that I'll need to convert QT files for posting to the Web. The lengths range from 5 minutes to an hour.
    Can anyone give me any kind of advice on the best way to convert to a QT file resulting in a smaller file size? If I am making something very simple, very difficult, please lend your thoughts!

    Hi there,
    FCP may estimate unusual time remaining but usually that estimate is not accurate. When I export to H.264 very often it appears that FCP hangs on 7% but thing is it eventually will encode within 15 minutes. Circumstances change from case to case (machine specs, length of movie, export settings).
    Set an IN and OUT on a portion of your timeline and export again to test quality and the time your machine require to encode.
    G.

  • Import/export of files for Quickoffice using an USB cable

    Installed Quickoffice App, but cannot import/export files. Windows Explorer recognizes only photos and iTunes does not show office files on iPod and does not tolerate pdf, doc or ppt files from PC.

    Thank you, lllaass,
    this is the way to upload/download files from iPod using USB cable, but it does not work in my case. Following advices of the Apple customer service I have reinstalled iTunes, updated the iPod software and even deleted/reinstalled the Quickoffice app again, but it did not help. In the iPod/Apps menu I see the app thumbnail, but no File Sharing section appears, so I am unable to copy/extract files through the cable. I can do it via WLan, but it is completely impractical, as I do not have any wireless connection at work. It is amazing how poorly compatioble can be non-Apple apps.

  • Resorting to QTInstaller.exe file for PC use

    It's looking like I'll have to resort to asking PC end-users to install Quicktime Player in order to view a .mov file created on my mac. I've downloaded the QuickTimeInstaller.exe file for Windows. It obviously doesn't open on my mac, but if I burn both the .mov file and the .exe file onto the CD/DVD for my end-users, is it safe to assume that they'll be able to install Quicktime pretty easily?
    Again, I hate to have to do it this way, but I'm not getting anywhere yet with the other avenues I've explored.
    *I'D REALLY LIKE TO MAKE A SELF-RUNNING FILE THAT WOULD PLAY ON ANY PC OR MAC*...., but I'm losing hope for that....

    It's looking like I'll have to resort to asking PC end-users to install Quicktime Player in order to view a .mov file created on my mac. I've downloaded the QuickTimeInstaller.exe file for Windows. It obviously doesn't open on my mac, but if I burn both the .mov file and the .exe file onto the CD/DVD for my end-users, is it safe to assume that they'll be able to install Quicktime pretty easily?
    Yes. Click here and read the entire page before you proceed.
    (36223)

  • Flush file before writing using UTL_FILE

    Hi,
    Version: 10g
    I am using the UTL_FILE.PUT_LINE to write some data into a file.
    Now my requirement is to flush this file before every write. Is there a function/procedure which does this?
    Require help ASAP.
    Thanks in advance.

    Why flush before a write? The write buffer will be empty. And there will be nothing to flush.
    You need to flush after a write in order to flush that write buffer to disk.
    You also need to ask yourself why you want to do this? Write caches/lazy writes improve performance. The primary reason for flushing a cache is to ensure that the cache contents are on disk in case the process dies and its dirty unwritten cache is destroyed with it.
    Do you expect your process to crash and die? If not, then what other reasons do you think warrants flushing the cache after each write?

Maybe you are looking for

  • How do I find Outlook identities with all my old emails and contacts?

    I recently had to reinstall the OS on my 27" iMac due to the Mavericks update greyed the screen on start up. I went through all the proceedures with a senior Apple technician so that I now have the OS working fine. All the old data was saved onto ano

  • Error: iTunes Library.itl cannot be read because it was created by a newer version of iTunes" Please please help?

    error: iTunes Library.itl cannot be read because it was created by a newer version of iTunes"  Seriously?? This is the closest I have come in 4 days to reinstalling itunes and now this?? please help. and the Apple solutions? Forget it - done them ALL

  • How to create asynchronous web services in OSB 11g?

    Hi, Using the workbench, when I try to create a web service from an existing WSDL, the workbench automatically uses JAX-WS. JAX-WS does not offer support for asynchronous web services, since it supports only HTTP ports (@WLJmsTransport does not work)

  • How can I shrink my file size to a certain size?

    Hello - I have gotten myself lost and frustrated. I made a sign that we are going to have printed, but in order to upload it to the company, the file can be no larger than 12MB. It was set at 300psi, but found out that it had to be 75psi. So, it went

  • Problem with read count

    I am trying to receive 2500bytes via serial port and plot it on a chart, after sending character "S" to the sender device. I have set the "read count" to 2500 so it is supposed to receive 2500 byte then wait for another "S" but it just receives 101 b