File extension for: cl_gui_frontend_services= file_open_dialog

Hello,
I would like to set the file extension for cl_gui_frontend_services=>file_open_dialog such that my default extension in the file open dialogue is the .csv (comma-separated value) file. May I know how can I do that?
Thanks!
Regards,
Anyi

Hello,
Thanks for the quick reply.
Howeer, I tried to use the extension of CSV and the file dialogue opened up with .RTF (which is the default extension) instead.
Any comment on that?
Thanks!
Anyi
> HI,
>
> Here is the code
>
  DATA:  l_title TYPE string,
>          l_dfext TYPE string,
> l_dfinm TYPE string,
>          l_file  TYPE string,
> l_path  TYPE string,
>          l_fpath TYPE string.
> le = 'SAVE FILE PATH'.
>   l_dfext = 'csv'.
> l_dfinm = 'Error_Idoc'.
>
> CONCATENATE l_dfinm sy-datum sy-uzeit INTO l_dfinm
>  SEPARATED BY '_'.
>
> CONCATENATE  l_dfinm l_dfext INTO l_dfinm SEPARATED
>  BY '.'.
>
> CALL METHOD
>  cl_gui_frontend_services=>file_save_dialog
>    EXPORTING
>    window_title      = l_title
>    default_extension = l_dfext
>    default_file_name = l_dfinm
>     INITIAL_DIRECTORY = L_DIR
> CHANGING
>       filename          =  l_file
> path              =  l_path
>       fullpath          =  l_fpath
> CEPTIONS
>       cntl_error        = 1
> error_no_gui      = 2
>       OTHERS            = 3.
> s,
> Richa

Similar Messages

  • Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

    I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
    I have updated the FileExtns registry to have my new extension.
    When I issue the following it does not work.
    select [NoName] 
    from openrowset('MSDASQL'
               ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                    DefaultDir=c:\filedir'
               ,'select * from "file.lst"')
    If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
    OLE DB provider "MSDASQL" for linked server "(null)".
    In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
    Any help is appreciated.

    Hi,
    According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
    I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
    In addition, the
    OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
    within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
    BULK INSERT
    and
    BCP .
    Thanks
    Lydia Zhang

  • Default WorkBook file extension for all users of BEx 7 in Offce 2007

    Hi Experts
    We recently started using office 2007 with BEx 7.
    However, many users still has Office 2003 installed.
    I am looking to set the default file extension for all users to be .XLS.
    I know that this option is available in Client level (Global Settings - Use XLS file format ) but I require that the checkbox will be automatically checked.
    Is there a way to do it?
    Thanks,
    Yaniv

    Hello Yaniv,
    Yes, you can maintan them globally.
    this can be done in registry under :   HKEY_CURRENT_USER\Software\SAP\BEx\Analyzer.
       UseXLSFileFormat
       Type: String Value
       Value true or false
    For more information refer to SAP Note 1254112
    Regards,
    Arvind

  • What is the best file extension for import?

    When converting a DVD to another file extension for FCP, what is the best file extension to use? When I was using Adobe products, I would convert the DVD with Stream Clip to an AVI or MPEG and bring it right in. I found these do not work well in FCP. I know I can play it in and make a capture, I was just trying to find what file extension I should use to bring it right into the browser. I receive some DVD's that are quite long and would rather convert them to another extension instead of playing it in to capture.

    In MPEG Streamclip, use the export settings that match your FCP Sequence settings. Typically that would be QuickTime DV/DVCPro (NOT .DV Stream).
    Here's a 2 part tutorial on MPEG Streamclip by Nick Holmes:
    http://discussions.apple.com/thread.jspa?threadID=2059475&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=2070861&tstart=0
    -DH

  • How to set default .PDF file extension for Form Downloads

    I am trying to find a way of setting the PDF file extension when I download forms.
    I author the forms under a Plus subscription and am then downloading the forms under a basic subscription Collaborator account (diffrent person)
    If I don't include .pdf as the file type when downloading a form with a unique name as the Collaborator, it downloads without a file extension.
    Remembering to continually add the pdf file extension is a pain so I'm hoping there is away of setting this as a defaulet for my 'collaborator' account ?

    Firstly, apologies for multiple posts, I received messages saying my comment hadn't posted and also checked my history before re-submitting.
    Okay, the process is
    1. Log in as the Author account and I can rename the file without having to set the extension
    2. Log in as the Collaboartor account - same PC, browser etc and it doesn't save with a default file extension; HOWEVER, I have done this whilst also being logged in on a diffrent browser as the Author
    3 I have just tried logging out as Author and only being in as the collaborator and the form downloaded with a default PDF.
    4. I had someone else log in as the collaborator from thei PC and browser whilst I was still signed inunder my author account and again they were unable to save as PDF by default
    This has me wondering if there is anything at play when you've got multiple Users?

  • No file extensions for attachments?

    Any time I attach a document using Mail, it appears as a .doc file (with that file extension). However, when people receive it (both Mac and Windows users), they always say that there is no file extension, or they even say that it is saved as a .mpeg
    I have no problem sending out the same documents through a webmail server.
    I have "Always Send Windows Friendly Attachments" selected.
    Any suggestions as to how I can ensure it retains the .doc extension in Mail?
    Thanks!

    I'm not sure if I'm having the same issue as you, but when I send attachments through Mail, the recipients tell me that the file name has been truncated. This is especially frustrating when the file name includes important information like date, time, etc. in the file name to help identify what version of the file it is. How do I fix this issue?
    I, like you, have also made sure to check the box for "Windows friendly" attachments, but that still hasn't seemed to fix the issue. This issue also just popped up one day out of the blue. I used to be able to send attachments without the file name being truncated.
    Any suggestions?

  • Changing file extension for Blu-Ray H264 export

    The output is written as .m4v, and my authoring tool will not accept this.
    It must be any of the following: m2v, m2p, mpg, mpeg, avc, 264, h264 bsf or vc1
    Can I simply change the extension - or is there a way to get the correct extension I need?
    (CinemaCraft allows you to define the extension used, for example)

    Any containering around the raw .264 video stream will screw up the embedded information.
    Non-Encore Bluray authoring tools will not accept any file format that is containering that stream.
    Also, if you want your bluray to be "legal" - ie be possible of passing a verification suite for pressing at a repro house - you have to export to raw .264 (thus why high end author tools won't import .m4v, mp4, mov etc).
    So, not you can't just change the extension. a m4v file is a ISO media container that holds a video stream... yes m4v, mp4 and mov are all based on the same standard - and yes you can thus change the file extension and it often works but......
    ... in this case you need a raw h.264 stream as a file (.264).
    The only thing I can think of is that you container it to MPEG-Transport Stream (MPEG-TS) with the file extension .mpg.
    It has the highest chance of import but I'm not sure if it destroys the h.264 stream's ability to pass BD verification.
    Note also that I've heard that the bundled H.264 encoder (made by Main Concept) does not have the mandatory "slice" support for AVC level 4.1 and higher so if you encode at that level it's already an illegal stream that you can guarantee will not play ok in every consumer blu-ray player.
    my 2c,
    Rallymax.

  • What is the file extension for photoshop for the blanks following  the period in "photoshop,___"?    I have  an older desktop which includes older photoshop files which I have asked a technician to extract for me.  He asks for the extension.  I can't

    I ned the extension for the photoshop program, that is, the letters following the period as shown by the blanks in this:  "photoshop.____"   I cannot find the extension in my laptop.  The photoshop program is a couple of years old and my files are in a desktop out of use for a couple years.  I brought the desktop to a technician, asking him to extract the photos.  He asks me for the file extension.

    If you using Windows you can use the control panel Folder options or from Windows File explorer menu tools>Folder options view tab to change what Microsoft hide on you.  Have windows display extension. Apple hide information from users also.

  • UPPER and lower case file extensions for Photo Shop Elements using Windows 7

    How do I persuade WIndows 7 to show both UPPER and lower case file extensions, which is a very useful facility offered by my ancient, 2002, version of Photoshop Elements? When processing large volumes (100 plus) photos it is very useful to be able to spot those that have been processed among those awaiting my gentle touch. The JPEG file extension produced by my camera is UPPER case so by using "Save as" with lower case the modified photos are immediately spotted. This worked fine on Windows XP and the same programme has loaded and works well on my new laptop which came loaded with Windows 7 EXCEPT that it persists in using UPPER case all the time, irrespective of the preference settings in PSE. HELP!
    Camperman1

    In PSE there is a facility "File > process multiple files".
    Using this facility you can actually process multiple files at one go and you can easily rename images.
    Addi

  • Setting file extension for flex download

    Hi, I have a flex/flash download app that I use on my website, but a lot of people have trouble with it because they rename the file and accidentally remove the .zip from the end of the file name.  Is there any way that i can prevent this?  I have noticed that when i click to download, the "Save as Type" drop down is blank.  It looks like this:
    File name: myFileName.zip
    Save as type:
    I'm hoping that im just missing a param that i can set to .zip so that it will look more like this:
    File name: myFileName
    Save as type: .zip
    Thanks!

    Hi,
    You can restrict them to save in any other format by making the check.
    Simply add listner for the Event.OPEN on the fileReference and inside this check for your allowed extension,if the extension is not what you want then
    simply right a line there like:-
    fileReference.cancel();
    And addtionally you can give any alert that your file should be of that particular extension.
    with Regards,
    Shardul

  • Installing twain file extensions for CS5?

    I have downloaded  the optional plug-ins for my Mac, OS10.6.8, to enable the file/import command in CS5.  I want to scan images using my microtek i900 scanner.
    The two plug-ins that I downloaded, CS5 Optional Plug-ins.mxp and CS5 Optional Extension Plug-ins.mxp,   will not open when I double-click them and follow the Mac installers directions that accompany those files.
    What can I do?
    Lucy Karwoski

    Open the Adobe Extension Manager manually and choose to install new extensions from the file menu.
    Mylenium

  • Newbie : what is .fpt file extension for adobe air ?

    Hi all the master,
    Hereby i have attached the printscreen of what i got from my client recently.
    I have already install the .air file, and it prompts to open the .fpt files. So i click on the fpt file. It loads halfway, and automatic close the whole application.
    As im a super newbie to AIR, may i know what is .fpt file extention to air ? and what kind of editor i must use to edit the content in the .fpt ?
    Hope to hear from all the master soon
    thanks
    C.K

    This looks VERY similar to a project I created for a client!
    The .fpt file, as Joe suggests, a custom file type created for the use by the Air app. It's probably just a re-labeled zip file to be honest! Probably contains the slides of the presentation as a guess??
    You shouldn't need to worry about the .fpt files. You should open them from within the Air app and not by opening them outside of the app - the OS might not recognise them unless the Air app has registered the .fpt extension upon it's own installation.
    Hope that helps.
    Dave.

  • Setting proper file extensions for downloadable links?

    I'm trying to create a link on a webpage to download an InDesign file (*.indd) and a PDF.  The link for the pdf works fine, but whenver I try to test the page and download the .indd file from the website, I get a *.indd.html file and the size of the file has changed by a lot.  The link is correctly directed, and the file is correctly uploaded. Here is the website and code snippet used:
    http://www.cheungdesigns.info/MMM.html
    HTML code:
    <p><a href="MeatlessMeals.indd" target="_blank">InDesign file</a></p>
    Can anybody see the problem?

    Zip it.   Providing the file isn't too huge, a zipped file should download OK.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • File extension for keychain

    I see that there is an import function under the file menu in keychain.  I was wondering what the extension needed to be to import into it.  I have been able to export my passwords from firefox into a .xml and .cvs format but neither of those seem to be accepted.
    thanks

    Josh....
    Whether you use Firefox or Safari or Chrome, they all use the same keychain. There's no need to export passwords.

  • What is the file extension for text tones in ios 6.0.1?

    I created a custom tone using the extension .m4r, but it only works as a ring tone, not a text tone.

    The iTunes download size is about 1.2 gigabytes.

Maybe you are looking for

  • How do I share iTunes Library and Playlists

    I had a desktop mac with 2 login accounts, we enjoy having our own spaces, mail, desktops, prefs, etc.. but we do not wish to duplicate nor keep either one out of our digital assests, ie music, photos, etc.. I used to have an alias to the other users

  • A selected row in af:table does not get sorted.

    Hi, When a table supports single selection and the table contains quantity of rows gt it can fit into its viewport, then, on sorting, selected row gets out of the sorting process. But when you move to the end of the table, select a row there and then

  • Black frame around image icon during Web Start start up

    Hi, Sometimes I can see black frame (16 pixels) around my own icon during resource files downloading. My icon resolution is 32*32 pixels. It appears like Web Start assignes size of the icon to 64*64 pixels and all space around my 32*32 icon is filled

  • I can't download "Acrobat" I get a message that Firefox has disabled. How do I get around this?

    I have tried to download "Acrobat" several times to no avail. I need this program for several applications (i.e. bank, etc.) When I tried it today I saw the message that Firefox has disabled. What do I do now?

  • LR 1.4  Virtual Copy Stopped Working...

    or did it?  What I usually do is click on the photo I want to make a virtual copy of, right click on the pic, click on 'create virtual copy' and--viola--virtual copy appears. Not this time! Now I get a grey slate screen and the message "no photo sele